wg-manager
wg-manager copied to clipboard
Server is set to /24 subnet mask, which clients inherit
Shouldn't clients be given a /32 subnet mask in their configs? Or, at the very least, could the admins have the option to set that? Right now, I set my server to have a 192.168.42.1/24
subnet, and clients each inherit successive 192.168.42.x/24
values for the Address
directive in their configs. Assuming we want clients to stay on the same IP (we certainly do), shouldn't that be a /32
on each client config, and not /24
?
Only the mask on AllowedIPs
on the server matters for that IP restriction, as it will reject any traffic not originating from a matching IP, and that's set to /32
. The /24
in the clients Address
will only result in a direct route to the 192.168.42.0/24
network being created on the client.