OpenVPN failover
-
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? -
@depam
Did you set the failover gateway group at System > Routing > Gateways > Default Gateway? -
@viragomann It is set to automatic. Should I set it to something else?
-
@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?
-
@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.