OpenVpn client multi wan failover
-
I need some help for openvpn failover. I have a pfsense with 2 WAN connections and I need for the vpn connection to stay up all the time, but I have not found an option for the pfsense to failover correctly. I have tried setting the client interface to a gateway group and the solution from https://forum.netgate.com/topic/29983/openvpn-client-multi-wan-failover/2 did not work for me. Is there a way to set it up that when my main WAN connection fails, the pfsense will reestablish the VPN connection through the second WAN.
-
@kevin-chan-aebc
Configure the server to listen on localhost and forward the VPN packets on both WANs to it.In the client config file add an additional remote line for the second WAN.
In the client export utility you can enter the second remote line into the advanced options box, so that it is added to exported config files:
With server-poll-timeout you may define the timeout, the client tries to connect to the first remote address before switching to the second. The default value is 10 seconds.