Client can access extra IPs by modifying AllowedIPs even when not intended #2351
rohan-sirohi-spraxa
started this conversation in
General
Replies: 1 comment 2 replies
-
|
The tooltips for Allowed IPs: "Which IPs will be routed through the VPN" The naming doesn't have anything to do with actually enforcing said IPs, its not a allowlist in the traditional sense. This is also mentioned in the docs: https://wg-easy.github.io/wg-easy/v15.1/guides/clients/#allowed-ips This could be fixed in a PR that modifies the Firewall to enforce it (see #2238, which is not merged because of code quality) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I want to understand if this behavior is expected in WireGuard / wg-easy or if I’m missing something.
Example scenario
On my WireGuard server, I have access to multiple IPs/services:
212.168.13.1478.78.78.7838.38.38.38What I want
When creating a VPN profile for a specific client, I want to restrict the client so that it can access only one IP, for example:
212.168.13.14And nothing else, even if:
What I configured
On the server side (wg-easy), I set the client
AllowedIPsto:On the client WireGuard config,
AllowedIPsis also:With this setup, everything works correctly.
The problem
If the client edits their own WireGuard config and adds:
Then:
212.168.13.14for that clientExpected behavior (from my side)
I expected that:
Questions
Is this the expected WireGuard behavior?
Does wg-easy not enforce per-client IP restrictions on the server side?
Is there any way to force server-side enforcement, so that:
78.78.78.78or38.38.38.38If this is not possible today, should this be considered a feature request?
Version I am using : WireGuard Easy (v15.1.0)
Thanks in advance for any clarification or best practices.
Beta Was this translation helpful? Give feedback.
All reactions