Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tromlet opened this issue Feb 10, 2021 · 1 comment
Open

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

tromlet opened this issue Feb 10, 2021 · 1 comment

Comments

@tromlet
Copy link

tromlet commented Feb 10, 2021

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?

@WolleTD
Copy link

WolleTD commented Nov 11, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants