OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: crt333 on December 07, 2017, 02:27:35 pm

Title: Problems with multiple openvpn tunnels
Post by: crt333 on December 07, 2017, 02:27:35 pm
I thought this would be easy, but I'm having problems that I don't understand. I have a Qotom q355g4 with 4 ethernet ports. My goal is to have one port for wan, and each of the 3 remaining ports dedicated to an openvpn connection (different locations of a popular vpn service). I have the 3 lan ports working, and I have 3 openvpn cients that work individually, but they don't all run at the same time (errors appear in the route add command).

I'd also like to make each of the vpn connections act like a kill switch, so if the tunnel goes down no traffic passes.

I've read articles on various aspects of this, but can't seem to put it all together.

Advice would be appreciated...

I'm using version 17.7.8

Thanks
Title: Re: Problems with multiple openvpn tunnels
Post by: robvh on December 08, 2017, 07:21:01 pm
Each ovpn client creates a gateway with address 10.8.8.1.  So when the 2nd client starts, it cannot create this route for itself.  I got around this by mapping each gateway to a unique address with the dnat command.  https://forum.opnsense.org/index.php?topic=5921 (https://forum.opnsense.org/index.php?topic=5921)