wireguard dynamic WAN IP

Started by yhq_34, February 22, 2021, 02:05:20 AM

Previous topic - Next topic
November 06, 2022, 01:47:26 PM #15 Last Edit: November 06, 2022, 01:53:26 PM by chemlud
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!
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....

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...
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....

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.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 770 up, Bufferbloat A

Thanks for confirming! 8)
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....