wireguard-tools: add wireguard_watchdog script
authorAleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
Sun, 1 Jul 2018 12:40:31 +0000 (15:40 +0300)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Wed, 25 Jul 2018 10:23:35 +0000 (11:23 +0100)
commitf91a0f3b1aba95bcf3b248e02a89709ce0274fa7
tree88791075a47a725ef05066ea705f148848250386
parentf1dbfa193768993e0c00faf9ca62e33c23f32938
wireguard-tools: add wireguard_watchdog script

This watchdog script tries to re-resolve hostnames for inactive WireGuard peers.
Use it for peers with a frequently changing dynamic IP.
persistent_keepalive must be set, recommended value is 25 seconds.
Run this script from cron every minute:
echo '* * * * * /usr/bin/wireguard_watchdog' >> /etc/crontabs/root

Signed-off-by: Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
[bump the package release]
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(cherry picked from commit 20c4819c7baf6f9b91420849caf30e5137bd75d6)
package/network/services/wireguard/Makefile
package/network/services/wireguard/files/wireguard_watchdog [new file with mode: 0644]