-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reducing filter rules breaks exit node access #1786
Comments
Some options to improve this:
|
headscale/hscontrol/policy/acls.go Line 262 in 7a920ee
I believe expanded and routeableIP might have to be switched here |
Can't we just check if a node is considered an exit node and allow exit nodes to accept all routable IPs? Or am I missing something here? |
Yes, but that leaves the same issue for things that arent exit nodes but have some sort of overlap. So instead we want to use the overlaps function |
Sorry, I've missed this, I think it makes sense to expand this to ensure it doesnt remove the routes, I think both I've added this to the 0.23.0 milestone |
There is a way to fix this problem without: |
Can you elaborate on this a little more? I don't get how you think you solved this? |
Signed-off-by: Kristoffer Dalby <[email protected]>
Updates juanfont#657 Updates juanfont#1786 Signed-off-by: Kristoffer Dalby <[email protected]>
This issue should now have been addressed in https://github.com/juanfont/headscale/releases/tag/v0.23.0-alpha10, please let me know |
Bug description
When setting up an ACL to allow access to a exit node, the access rules can be reduced because the ips defined are not in use by the network or routes.
Environment
To Reproduce
Logs and attachments
Trying to create the following setup:
If I just use the following ACL, the "team" members are able to successfully access all "internal" devices. However when trying to use a exit node inside "internal" it is not possible to ping/access any devices outside the tailscale network.
{ "action": "accept", "src": ["group:team"], "dst": ["internal:*"] },
The text was updated successfully, but these errors were encountered: