diff options
author | Patrick Spek <p.spek@tyil.nl> | 2024-01-05 12:10:17 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2024-01-05 12:10:17 +0100 |
commit | 76ec6dd2c3a56fac5f09943a9f7af9f4e2d17682 (patch) | |
tree | 2bd72013c7cb8215f804514152e98e922fcd6083 /data.d | |
parent | dad6d287dbb30f0984bfab7be9b489e27dcfefc5 (diff) |
Update vpn-wireguard playbook
Diffstat (limited to 'data.d')
-rwxr-xr-x | data.d/vpn-wireguard/hooks/post-up | 10 | ||||
-rw-r--r-- | data.d/vpn-wireguard/peers/caeghi.tyil.net (renamed from data.d/vpn-wireguard/caeghi.tyil.net) | 0 | ||||
-rw-r--r-- | data.d/vpn-wireguard/peers/qohrei.tyil.net (renamed from data.d/vpn-wireguard/qohrei.tyil.net) | 0 |
3 files changed, 10 insertions, 0 deletions
diff --git a/data.d/vpn-wireguard/hooks/post-up b/data.d/vpn-wireguard/hooks/post-up new file mode 100755 index 0000000..948a9a8 --- /dev/null +++ b/data.d/vpn-wireguard/hooks/post-up @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Ping all known hosts, as it seems that the wireguard interface comes up when +# only after it gets used on the machine itself. +while read -r addr; +do + ping -c 1 -q -w 1 "$addr" & +done < <(awk -F= '/vpn-wireguard.ip/ { print $NF }' /etc/bashtard/hosts.d/*) + +wait diff --git a/data.d/vpn-wireguard/caeghi.tyil.net b/data.d/vpn-wireguard/peers/caeghi.tyil.net index 2838c02..2838c02 100644 --- a/data.d/vpn-wireguard/caeghi.tyil.net +++ b/data.d/vpn-wireguard/peers/caeghi.tyil.net diff --git a/data.d/vpn-wireguard/qohrei.tyil.net b/data.d/vpn-wireguard/peers/qohrei.tyil.net index a0a2224..a0a2224 100644 --- a/data.d/vpn-wireguard/qohrei.tyil.net +++ b/data.d/vpn-wireguard/peers/qohrei.tyil.net |