Connect openvpn using config file failed with route issue

Use this forum to share your VPN or network disasters. Show diagrams, traffic graphs, or whatever else you need (a video of you letting the 'smoke' out of our network gear).

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

Post Reply
skabariya
OpenVpn Newbie
Posts: 1
Joined: Sat Aug 28, 2021 12:23 pm

Connect openvpn using config file failed with route issue

Post by skabariya » Sat Aug 28, 2021 12:45 pm

I am trying to connect VPN using openvpn config (.ovpn file)

The 103.215.159.254/32 via 192.168.43.1 is trying to add two time and it fails second time as route was already added

Here you can see the log,

Sat Aug 28 17:49:06 2021 TUN/TAP device tun0 opened
Sat Aug 28 17:49:06 2021 TUN/TAP TX queue length set to 100
Sat Aug 28 17:49:06 2021 /sbin/ip link set dev tun0 up mtu 1500
Sat Aug 28 17:49:06 2021 /sbin/ip addr add dev tun0 10.81.234.10/24 broadcast 10.81.234.255
Sat Aug 28 17:49:10 2021 /sbin/ip route add 103.215.159.254/32 via 192.168.43.1
Sat Aug 28 17:49:10 2021 /sbin/ip route add 0.0.0.0/1 via 10.81.234.5
Sat Aug 28 17:49:10 2021 /sbin/ip route add 128.0.0.0/1 via 10.81.234.5
Sat Aug 28 17:49:10 2021 /sbin/ip route add 103.215.159.254/32 via 192.168.43.1
RTNETLINK answers: File exists
Sat Aug 28 17:49:10 2021 ERROR: Linux route add command failed: external program exited with error status: 2
Sat Aug 28 17:49:10 2021 /sbin/ip route add 103.215.159.254/32 via 192.168.43.1
RTNETLINK answers: File exists

Sat Aug 28 17:49:10 2021 ERROR: Linux route add command failed: external program exited with error status: 2
Sat Aug 28 17:49:10 2021 Initialization Sequence Completed

Please suggest solution for this,
Thanks in advance

Post Reply