Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Do VPN services & connections autoreconnect upon failure?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Do VPN services & connections autoreconnect upon failure? (Read 786 times)
wotcha
Newbie
Posts: 32
Karma: 3
Do VPN services & connections autoreconnect upon failure?
«
on:
February 25, 2023, 07:09:10 pm »
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
Logged
bartjsmit
Hero Member
Posts: 2017
Karma: 194
Re: Do VPN services & connections autoreconnect upon failure?
«
Reply #1 on:
February 26, 2023, 09:43:15 am »
for WireGuard add PersistentKeepalive to the config. For OpenVPN use these:
persist-tun
persist-key
keepalive 10 60
Logged
wotcha
Newbie
Posts: 32
Karma: 3
Re: Do VPN services & connections autoreconnect upon failure?
«
Reply #2 on:
February 26, 2023, 12:31:56 pm »
thank you so much
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Do VPN services & connections autoreconnect upon failure?