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>
Sun, 22 Jul 2018 20:52:20 +0000 (21:52 +0100)
commit20c4819c7baf6f9b91420849caf30e5137bd75d6
treec3d34348936ceae6f750b0e53fab22d7af710844
parent2dcd955aea1ab715d048910322b05d1af0b69748
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>
package/network/services/wireguard/Makefile
package/network/services/wireguard/files/wireguard_watchdog [new file with mode: 0644]