Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    OpenVpn client multi wan failover

    OpenVPN
    2
    2
    118
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kevin.chan.aebc last edited by

      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.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @kevin.chan.aebc last edited by

        @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:
        10a55872-912a-48fa-811e-ab481a57c677-grafik.png

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post