ERROR: Linux route add command failed: external program exited with error status: 2

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
asillisa
OpenVpn Newbie
Posts: 2
Joined: Wed Jan 08, 2020 11:50 pm

ERROR: Linux route add command failed: external program exited with error status: 2

Post by asillisa » Wed Jan 08, 2020 11:59 pm

Hello community.
I'm having an error connecting from the client machine.

Thu Jan 9 00:51:52 2020 /sbin/ip route add 172.16.0.0/16 via 172.16.5.101
ip: RTNETLINK answers: File exists
Thu Jan 9 00:51:52 2020 ERROR: Linux route add command failed: external program exited with error status: 2
Thu Jan 9 00:51:52 2020 /sbin/ip route add 172.16.0.0/16 via 172.16.5.101
ip: RTNETLINK answers: File exists
Thu Jan 9 00:51:52 2020 ERROR: Linux route add command failed: external program exited with error status: 2
Thu Jan 9 00:51:52 2020 Initialization Sequence Completed


client.conf:

client
dev tun
proto udp
remote xxxxxxxxxxx 3504
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/clients/ca.crt
cert /etc/openvpn/clients/dmxxxxxx.crt
key /etc/openvpn/clients/dmxxxxxxx.key
cipher DES-EDE3-CBC
keepalive 3 10
ping-timer-rem
verb 3

route:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 0 0 0 eth0
172.16.0.0 172.16.5.101 255.255.0.0 UG 0 0 0 tun0
172.16.5.101 * 255.255.255.255 UH 0 0 0 tun0
192.168.178.0 * 255.255.255.0 U 0 0 0 eth0
192.168.178.1 * 255.255.255.255 UH 0 0 0 eth0

ip a:
4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 100
link/[65534]
inet 172.16.5.102 peer 172.16.5.101/32 scope global tun0
valid_lft forever preferred_lft forever

Please tell me how can I fix this error?
Thanks!!

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: ERROR: Linux route add command failed: external program exited with error status: 2

Post by TinCanTech » Thu Jan 09, 2020 1:39 am


asillisa
OpenVpn Newbie
Posts: 2
Joined: Wed Jan 08, 2020 11:50 pm

Re: ERROR: Linux route add command failed: external program exited with error status: 2

Post by asillisa » Thu Jan 09, 2020 6:55 am

i cannot fine solution......do you have an idea?
Thanks!!!

Post Reply