File exists when adding peer

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
SomeUserAgain
OpenVpn Newbie
Posts: 1
Joined: Tue Jul 11, 2017 2:12 pm

File exists when adding peer

Post by SomeUserAgain » Tue Jul 11, 2017 2:13 pm

Hi!
I'm trying to connect to a vpn but I get the following error

Code: Select all

Tue Jul 11 10:38:38 2017 /sbin/ip addr add dev tun0 local 192.168.99.14 peer 192.168.99.13
RTNETLINK answers: File exists
Tue Jul 11 10:38:38 2017 ERROR: Linux route add command failed: external program exited with error status: 2
I read the other posts about people having this problem and they solved by checking the route table and seeing that they had repeated routes, but after checking mine and deleting all that is involved with 192.168.99.13 on tun0 I still couldn't add the route. This is my routing table:

Code: Select all

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.52.44.1      0.0.0.0         UG    100    0        0 enp0s31f6
0.0.0.0         192.168.252.1   0.0.0.0         UG    600    0        0 wlp1s0
10.38.192.13    10.52.44.1      255.255.255.255 UGH   100    0        0 enp0s31f6
10.38.192.13    192.168.252.1   255.255.255.255 UGH   600    0        0 wlp1s0
10.52.44.0      0.0.0.0         255.255.254.0   U     100    0        0 enp0s31f6
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 br-846a2b655049
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.18.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-846a2b655049
192.168.99.1    192.168.99.13   255.255.255.255 UGH   0      0        0 tun0
192.168.99.13   0.0.0.0         255.255.255.255 UH    0      0        0 tun0
192.168.252.0   0.0.0.0         255.255.252.0   U     600    0        0 wlp1s0
How can I solve this?

Thanks!
Last edited by SomeUserAgain on Tue Jul 11, 2017 2:23 pm, edited 1 time in total.

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

Re: File exists when adding peer

Post by TinCanTech » Tue Jul 11, 2017 2:18 pm

Contact your VPN administrator.

Post Reply