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

Add Excluded IPs to client peer specification #158

Open
nicksimonov opened this issue Jan 5, 2025 · 0 comments
Open

Add Excluded IPs to client peer specification #158

nicksimonov opened this issue Jan 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@nicksimonov
Copy link

nicksimonov commented Jan 5, 2025

Right now the only way to control which IPs are going through a tunnel is with an AllowedIPs list of networks.

However, the most typical need is to allow everything except a certain private range. If we want to create a list of all IPs except, say 192.168.0.0/24, the list is going to be very long and for some people not easy to create or understand. It would be much easier for the user and more efficient for processing if we add an ability to specify something like:

[Peer]
AllowedIPs = 0.0.0.0/0
ExcudedIPs = 192.168.0.0/16

The logic would be to check first that the IP is in Allowed list and then if it is not excluded

@nicksimonov nicksimonov added the enhancement New feature or request label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant