From d054855bea23d446ab770707202428ba4aa4b5a3 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Tue, 15 Sep 2020 10:50:30 +0200 Subject: [PATCH] Added server setup instructions --- wireguard/deploy-wg-clients.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wireguard/deploy-wg-clients.sh b/wireguard/deploy-wg-clients.sh index 7f29871..4cb18d2 100755 --- a/wireguard/deploy-wg-clients.sh +++ b/wireguard/deploy-wg-clients.sh @@ -38,6 +38,12 @@ echo -n "Public key : " cat /etc/wireguard/keys/public.key echo "Now you should read https://wiki.altinea.fr/doku.php/wireguard#cote_concentrateur_wireguard" +echo "" +echo "[Peer]" +echo "# "`hostname -f` +echo -n "PublicKey" +cat /etc/wireguard/keys/public.key +echo "AllowedIPs = $IP4/32, $IP6/64" read -n1 -r -p "Press space only AFTER configuration is done ..." # Enable and start interface (systemctl needed)