wg-manager icon indicating copy to clipboard operation
wg-manager copied to clipboard

Server is set to /24 subnet mask, which clients inherit

Open tromlet opened this issue 4 years ago • 1 comments

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?

tromlet avatar Feb 10 '21 18:02 tromlet

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.

WolleTD avatar Nov 11 '21 22:11 WolleTD