|
@ -34,14 +34,11 @@ Endpoint = vpn.altinea.fr:58212 |
|
|
PersistentKeepalive = 25" > /etc/wireguard/vpnaltinea.conf |
|
|
PersistentKeepalive = 25" > /etc/wireguard/vpnaltinea.conf |
|
|
|
|
|
|
|
|
# Display the public key to add it on the wireguard concentrator |
|
|
# Display the public key to add it on the wireguard concentrator |
|
|
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 "Now you should read https://wiki.altinea.fr/doku.php/wireguard#cote_concentrateur_wireguard" |
|
|
echo "" |
|
|
echo "" |
|
|
echo "[Peer]" |
|
|
echo "[Peer]" |
|
|
echo "# "`hostname -f` |
|
|
echo "# "`hostname -f` |
|
|
echo -n "PublicKey" |
|
|
|
|
|
|
|
|
echo -n "PublicKey = " |
|
|
cat /etc/wireguard/keys/public.key |
|
|
cat /etc/wireguard/keys/public.key |
|
|
echo "AllowedIPs = $IP4/32, $IP6/64" |
|
|
echo "AllowedIPs = $IP4/32, $IP6/64" |
|
|
read -n1 -r -p "Press space only AFTER configuration is done ..." |
|
|
read -n1 -r -p "Press space only AFTER configuration is done ..." |
|
|