Do VPN services & connections autoreconnect upon failure?

Started by wotcha, February 25, 2023, 07:09:10 PM

Previous topic - Next topic
Sorry couldn't google foo find an answer anywhere...

For OpenVPN & Wireguard, what if the connection fails or stops (for any reason), is there any auto reconnect feature in OPNsense?

Is it possible to create a monit script that is called when pings fail, that will restart the VPN connections?

Btw, I have in System: Gateways: Single, in each interface:
- Disable Gateway Monitoring -- uncheck


for WireGuard add PersistentKeepalive to the config. For OpenVPN use these:

persist-tun
persist-key
keepalive 10 60