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

Various ACL rules not working #809

Closed
madjam002 opened this issue Sep 15, 2022 · 2 comments
Closed

Various ACL rules not working #809

madjam002 opened this issue Sep 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@madjam002
Copy link
Contributor

There are various scenarios that I've found where ACL rules are not working in Headscale as expected:

  • IPv6 addresses or prefixes are not supported in dst (error Could not load the ACL policy error="invalid port format") unless they are in the hosts alias map and an alias is used instead.
  • dst: *:* (existing bug report - dst:"*:*" not working in ACLs #699)
  • Using src/dst rules with subnet router CIDRs does not send the subnet router peer itself. A dummy rule e.g subnetrouterip:0 must be defined in the ACLs to make it work.
  • If a node is tagged with headscale nodes tag, no peers are sent to the node even if the packet filter allows for it. Untagging the node then correctly sends the peers.

Context info

  • Version of headscale used a0a4634
  • Version of tailscale client 1.30.0
  • OS NixOS 22.05
  • Kernel version 5.15.67
@madjam002 madjam002 added the bug Something isn't working label Sep 15, 2022
@kradalby
Copy link
Collaborator

I have addressed some of these, at least IPv6, I think dst. Would be great if you can try upstream and report back :)

@juanfont
Copy link
Owner

Please reopen if you are still facing issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants