angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.96k stars 1.3k forks source link

Subnetmask for client check /24 #259

Closed dawdad closed 1 year ago

dawdad commented 3 years ago

in line 249 : IPV4_EXISTS=$(grep -c "$CLIENT_WG_IPV4/24" "/etc/wireguard/${SERVER_WG_NIC}.conf") is it correct that you check for /24 and not for /32, in line 310 you create user entrys for wg0.conf withs static /32.

angristan commented 1 year ago

Fixed by https://github.com/angristan/wireguard-install/commit/0a612774ac0fe2af6a6ce2f0ab8c70ec27702ae8