ERROR: Linux route add command failed

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
sabrina2020
OpenVpn Newbie
Posts: 1
Joined: Mon Sep 25, 2017 7:59 am

ERROR: Linux route add command failed

Post by sabrina2020 » Mon Sep 25, 2017 8:08 am

Hello,

I am having this error:

Code: Select all

Mon Sep 25 07:46:43 2017 /sbin/ip link set dev tun0 up mtu 1500
Mon Sep 25 07:46:43 2017 /sbin/ip addr add dev tun0 local 10.8.0.10 peer 10.8.0.9
Mon Sep 25 07:46:43 2017 /sbin/ip route add 192.168.1.0/24 via 10.8.0.9
ip: RTNETLINK answers: File exists
Mon Sep 25 07:46:43 2017 ERROR: Linux route add command failed: external program exited with error status: 2

My client configuration is :

Code: Select all

dev tun
tls-client
remote myRemoteServer_IP <myRemoteServer_Port>

pull

proto udp

script-security 2

comp-lzo
reneg-sec 0

cipher AES-256-CBC

auth SHA1
auth-user-pass /etc/openvpn/auth.txt

log /etc/openvpn/openvpn.log
verb 3


<ca>
# the certificate...
</ca>
I am not the server adminastrator so I can't change the server configuration..
I tried the same configuration on my ubuntu and it is working...

My operating system is a costumized distribution of linux, the architceture is ARM (armv5tejl), the kernel is 3.10


Any idea how to fix this? thanks!

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

Re: ERROR: Linux route add command failed

Post by TinCanTech » Mon Sep 25, 2017 12:52 pm

Talk to your server admin.

Post Reply