diff --git a/wireguard/deploy-wg-clients.sh b/wireguard/deploy-wg-clients.sh index d5be915..88c6f79 100755 --- a/wireguard/deploy-wg-clients.sh +++ b/wireguard/deploy-wg-clients.sh @@ -25,12 +25,14 @@ PostUp = ping -c1 10.17.25.1 [Peer] PublicKey = iu3I09FtiVDIOuiU83JvpfJkg4yiCxolqcFsXbz5Ixc= -AllowedIPs = 10.17.24.0/22, fd42:42:42::/48 +AllowedIPs = 10.17.24.0/22, fd42:42:42::/48 # All Wireguard address space +AllowedIPs = 172.16.5.0/24, fc00:db8:f00:bebe::/64 # OpenVPN Admin tunnel + Endpoint = vpn.altinea.fr:58212 -PersistentKeepalive = 25" > /etc/wireguard/wg0.conf +PersistentKeepalive = 25" > /etc/wireguard/vpnaltinea.conf # Enable and start interface (systemctl needed) -systemctl enable wg-quick@wg0.service && systemctl daemon-reload && systemctl start wg-quick@wg0 +systemctl enable wg-quick@vpnalinea.service && systemctl daemon-reload && systemctl start wg-quick@vpnaltinea # Run a ping to make the interface usable ping -c1 192.168.25.1