Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
wireguard dynamic WAN IP
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: wireguard dynamic WAN IP (Read 7672 times)
chemlud
Hero Member
Posts: 2488
Karma: 112
Re: wireguard dynamic WAN IP
«
Reply #15 on:
November 06, 2022, 01:47:26 pm »
A cron job might be in reach for me, coding GUI not... :-(
Thanks for the info anyways...
PS: Ok, I had a look in System -> Settings -> Cron, is this the "Renew DNS for Wireguard on stale connections" entry in the drop-down?
Does it really check for stale connections? Or should I simply run it every 3 min or so?
Many thanks in advance!
«
Last Edit: November 06, 2022, 01:53:26 pm by chemlud
»
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
chemlud
Hero Member
Posts: 2488
Karma: 112
Re: wireguard dynamic WAN IP
«
Reply #16 on:
November 06, 2022, 03:26:20 pm »
PPS: My local networking nerd evaluated that the underlying script of this cron job mentioned above checks for handshakes and if too long ago it restarts the wg instance. Hope I got it correct...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
meyergru
Hero Member
Posts: 1769
Karma: 172
IT Aficionado
Re: wireguard dynamic WAN IP
«
Reply #17 on:
November 06, 2022, 05:30:20 pm »
Correct. The script checks if the last handshake was longer than 135 seconds ago and if so, restarts the connection, resulting in a new DNS lookup if name-based endpoints are used.
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
chemlud
Hero Member
Posts: 2488
Karma: 112
Re: wireguard dynamic WAN IP
«
Reply #18 on:
November 06, 2022, 06:25:43 pm »
Thanks for confirming!
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
Print
Pages:
1
[
2
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
wireguard dynamic WAN IP