1
Virtual private networks / Re: Wireguard client disconnect in Opensense 24.1
« on: March 10, 2024, 10:16:41 pm »
I have the same problem and figured out, that a stale state is the problem. OPNsense doesn't kill/reset all states when WAN goes down/up. Manually clearing all states/the VPN connection states (Firewall->Diagnostics->States) is resolving this for me. But this is just a bad workaround and not a fix.
This also helps me in my dual WAN failover setup. When the backup connections kicks in, I get the same problem. The WireGuard client doesn't reconnect automatically, because it is in a stale state.
I tied to automate the state resetting with Monit and gateway alerts, but couldn't get it working.
This also helps me in my dual WAN failover setup. When the backup connections kicks in, I get the same problem. The WireGuard client doesn't reconnect automatically, because it is in a stale state.
I tied to automate the state resetting with Monit and gateway alerts, but couldn't get it working.