FreeBSD route add command failed (OpnVPN)

Started by Jalau, December 05, 2019, 08:12:05 PM

Previous topic - Next topic
Hey guys,
I setup multiple VPNs (NordVPN) alongside a fallback group/gateway group. Now the problem is that all of them show up as online however some just can't connect to the internet. Using one at a time seems to work everytime, but with two or three running this error shows up:
"Dec 5 19:01:53 openvpn[26344]: ERROR: FreeBSD route add command failed: external program exited with error status: 1
Dec 5 19:01:53 openvpn[26344]: /sbin/route add -net 10.8.3.0 10.8.3.1 255.255.255.0"


So those that error out after restarting them show up as online but if selected as a gateway they can't connect to the internet at all and the amount of data send or received doesn't change either.
The biggest problem is that the VPNs sometimes restart themselves, then this error occurs and thus like half of my connections just time out. I really wanna get this solved because right now I am just using one single VPN as a gateway because this is the only way I can guarantee that I have a stable connection. However I would like a round robin like system which is already setup and sometimes work if all VPNs behave friendly that day. This seems to happen at random. If I restart them they sometimes work and sometimes this error shows up in the log instead. Any help is appreciated.

Here is my full (all I could gather) log btw:
https://hastebin.com/utiticiwix.log



Quote from: mimugmail on December 13, 2019, 08:02:11 PM
Maybe this tunnel network is already in use somewhere?

That would be 10.8.3.1? Or 10.8.3.0?

Can I check that in the console? And what part of opnsense could use such as mask? I didn't set anything regarding that.


December 13, 2019, 08:18:38 PM #5 Last Edit: December 13, 2019, 08:22:54 PM by Jalau
Quote from: mimugmail on December 13, 2019, 08:04:46 PM
Just post a ifconfig

Just restarted a VPN and this is the current IP it tried to bind:
Dec 13 19:14:59 openvpn[14215]: ERROR: FreeBSD route add command failed: external program exited with error status: 1
Dec 13 19:14:59 openvpn[14215]: /sbin/route add -net 10.8.1.0 10.8.1.1 255.255.255.0


Here is my ifconfig:

https://hastebin.com/sogexuvawu.log


Just restarted again and now it worked with this log output:
Dec 13 19:21:09   openvpn[69428]: Initialization Sequence Completed
Dec 13 19:21:06   openvpn[69428]: /usr/local/etc/inc/plugins.inc.d/openvpn/ovpn-linkup ovpnc1 1500 1584 10.8.3.4 255.255.255.0 init
Dec 13 19:21:06   openvpn[69428]: /sbin/route add -net 10.8.3.0 10.8.3.1 255.255.255.0

This is my new ifconfig (after I restarted the VPN):
https://hastebin.com/unefimivov.log


Quote from: mimugmail on December 13, 2019, 09:07:58 PM
As you can see you had two interfaces with same IP

And how does this happen? Like what ip range do I need to change to avoid this?