OPNsense Forum

English Forums => Virtual private networks => Topic started by: aringking on September 04, 2024, 02:42:15 PM

Title: wireguard "client" hang
Post by: aringking on September 04, 2024, 02:42:15 PM
wireguard "client" connects to wireguard "server".

the server reboots and isp assigned a new ipv6 address, server updates the dynamic dns

the client hangs, still pointing to the "old" address

what options/switch do i need to adjust/set so the client will timeout, requery the dns and reconnect to the server with the "new" address?

thanks
Title: Re: wireguard "client" hang
Post by: chemlud on September 04, 2024, 02:46:56 PM
I use a cron job named "Renew DNS for WG on stale connections" under

System -> Settings -> Cron

run every min or so. Works just fine.
Title: Re: wireguard "client" hang
Post by: Bob.Dig on September 04, 2024, 04:32:12 PM
Quote from: chemlud on September 04, 2024, 02:46:56 PM
run every min or so. Works just fine.
Usually the problem is with the client, not OPNsense. I don't think that there is an easy solution for always-on connections.
Title: Re: wireguard "client" hang
Post by: aringking on September 06, 2024, 06:32:14 AM
Quote from: chemlud on September 04, 2024, 02:46:56 PM
I use a cron job named "Renew DNS for WG on stale connections" under

System -> Settings -> Cron

run every min or so. Works just fine.

thanks much! am not well-versed in opnsense, i thought there was some switch/option/parameter that i have to set. cron it is. thanks again