FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
154 views 0 comments
by anonymous
The RUT log message is:

"daemon.err openvpn(client_teltonika)[15169]: Linux ifconfig failed: external program exited with error status: 1"

..and the tun interface, obviously, not up.

Client config (RUT)

======================================================

client

nobind

persist-key

auth sha1

ca /lib/uci/upload/cbid.openvpn.client_teltonika.ca

cert /lib/uci/upload/cbid.openvpn.client_teltonika.cert

cipher AES-128-CBC

dev tun_c_teltonika

keepalive 10 120

key /lib/uci/upload/cbid.openvpn.client_teltonika.key

port 1194

proto tcp-client

remote 83.211.XXX.YYY

resolv-retry infinite

verb 5

auth-nocache

script-security 2

down /etc/openvpn/updown_dns

up /etc/openvpn/updown_dns

=======================================================

Server config (Centos 8 openvpn)

=======================================================

port 1194

proto tcp-server

dev tun0

ca keys/holisticlab_ca/ca.crt

cert keys/holisticlab_ca/holisticlab_maincert.crt

key keys/holisticlab_ca/holisticlab_maincert.key

dh keys/holisticlab_ca/dh2048.pem

topology subnet

server 172.16.20.0 255.255.254.0

crl-verify keys/holisticlab_ca/crl.pem

cipher AES-128-CBC

user nobody

group adm

status servers/holisticLab_CertKey_TCP/logs/openvpn-status.log

log-append servers/holisticLab_CertKey_TCP/logs/openvpn.log

verb 3

mute 20

max-clients 300

# tun-mtu 1500

# mssfix 1450

local keys.holisticlab.it

management 127.0.0.1 30000

keepalive 10 120

client-config-dir /etc/openvpn/servers/holisticLab_CertKey_TCP/ccd

# comp-lzo

persist-key

persist-tun

ccd-exclusive

#

route 192.168.190.0 255.255.255.240

=========================================================

Can you hel me ?!?

Thanks in advance

1 Answer

0 votes
by anonymous
Hi,

Try running the OpenVPN server on your CentOS as root.

Also, could you upload a full log of OpenVPN error? Most of the time when you get a return code of "1" it's probably a routeing issue somewhere. something not pushed on the server side or the subnets are not right..

EB