OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: packetSniffer on January 27, 2024, 11:21:58 PM

Title: Wireguard clients behind gateway reconnect when WAN connection is interrupted
Post by: packetSniffer on January 27, 2024, 11:21:58 PM
I'm running Wireguard on clients (raspbian, Windows, iOS) connecting to a remote server in a hub and spoke configuration.

I'm running 23.7.12 on amd64 .

If I loose my WAN connection for a bit or move to a different WAN connection (cellular modem) - while on the cell connection and when I move back to the cable modem the Wireguard tunnels don't come back. 
I can make them come back by:
    Stopping and starting the wireguard service on the client
     Changing the listen port on the client without stopping/starting
    Manually clearing the entire state table on the firewall

Do folks have suggestions on tuning this so that manual intervention is not required?

What else can I check?