OPNsense Forum

English Forums => Virtual private networks => Topic started by: Gauss23 on February 15, 2021, 04:14:26 pm

Title: MultiWAN OpenVPN recover after failover
Post by: Gauss23 on February 15, 2021, 04:14:26 pm
Hi,

I have a question regarding a Multi-WAN setup and outgoing OpenVPN client connections. As it is not possible to choose the right gateway group as interface with an OpenVPN client, I' ve selected "any" as interface. I configured my gateways with the correct priority and monitoring. In System: Settings: General I've checked "allow default gateway switching".
If the main connection is going down, fallback is working and the OpenVPN connections are coming back up on the failover line.
After the main line is recovered new traffic is again routed through the main connection. The OpenVPN connections however are not reconnecting via the main connection. They keep using the failover connection. If I'm forcing a reload of that connection it's coming up via the main connection. How can I trigger that automatically?

Under Firewall: Settings: Advanced
in Gateway Monitoring I have unchecked: Kill states (Disable State Killing on Gateway Failure)
and in Multi-WAN I have sticky connections checked. Should this be unchecked? Has this any effect on OpenVPN client connections?

Thanks for reading :)