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

    OpenVPN failover

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 2 Posters 591 Views
    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.
    • D
      depam
      last edited by

      Hi,

      I am having some issues with OpenVPN failover. I have configured Multi WAN Failover gateway group and on OpenVPN configuration, i have set the interface to this gateway. The intention is for OpenVPN Clients to reconnect to other endpoints using the secondary links. When WAN1 goes down, I can confirm that all other clients are routing successfully to WAN2. However, for the OpenVPN clients, it seems to not able to connect back. From the logs, I see the following:

      Feb 18 08:52:02 	openvpn 	70550 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:57 	openvpn 	20527 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:54 	openvpn 	74931 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:46 	openvpn 	70550 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:41 	openvpn 	20527 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:38 	openvpn 	70550 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:38 	openvpn 	74931 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:33 	openvpn 	20527 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:33 	openvpn 	70550 	write UDPv4: No route to host (fd=7,code=65)
      Feb 18 08:51:31 	openvpn 	70550 	write UDPv4: No route to host (fd=7,code=65) 
      

      I have tried to restart the VPN clients but still stuck on pending.
      Does anyone face the same issue?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @depam
        last edited by

        @depam
        Did you set the failover gateway group at System > Routing > Gateways > Default Gateway?

        D 1 Reply Last reply Reply Quote 0
        • D
          depam @viragomann
          last edited by

          @viragomann It is set to automatic. Should I set it to something else?

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @depam
            last edited by

            @depam
            It should be set to tufailover group if you want it use this way.

            Did you enable the gateway monitoring and are the gateway states correct in Status > Gateways?

            D 1 Reply Last reply Reply Quote 0
            • D
              depam @viragomann
              last edited by

              @viragomann Thank you so much. Yes. I did setup the gateway monitoring and indeed that was the fix. Need to set the default gateway to the multiwan gateway group i created.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.