From a999f58405b1a1df2973e893630a2eb7f5481b8c Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Tue, 21 Apr 2020 18:33:27 +0200 Subject: [PATCH] Add first ping to enable tunnel --- wireguard/deploy-wg-clients.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wireguard/deploy-wg-clients.sh b/wireguard/deploy-wg-clients.sh index 7a69997..56d5863 100755 --- a/wireguard/deploy-wg-clients.sh +++ b/wireguard/deploy-wg-clients.sh @@ -24,6 +24,8 @@ PersistentKeepalive = 25" > /etc/wireguard/wg0.conf systemctl enable wg-quick@wg0.service && systemctl daemon-reload && systemctl start wg-quick@wg0 +ping -c1 192.168.25.1 + echo -n "Clé publique : " cat /etc/wireguard/keys/public.key exit 0; \ No newline at end of file