diff --git a/wireguard/deploy-wg-clients.sh b/wireguard/deploy-wg-clients.sh index 88c6f79..2b56fac 100755 --- a/wireguard/deploy-wg-clients.sh +++ b/wireguard/deploy-wg-clients.sh @@ -11,6 +11,7 @@ fi mkdir -p /etc/wireguard/keys umask 077 && wg genkey > /etc/wireguard/keys/private.key && wg pubkey < /etc/wireguard/keys/private.key > /etc/wireguard/keys/public.key && umask 0022 + # Calculate IPv4 and IPv6 address IP4="10.17.25.$IP" IP6="fd42:42:42:25"`printf '%.2x\n' $IP`"::"