Various ACL rules not working #328

Closed
opened 2025-12-29 01:27:05 +01:00 by adam · 2 comments
Owner

Originally created by @madjam002 on GitHub (Sep 15, 2022).

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 - https://github.com/juanfont/headscale/issues/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 a0a463494b
  • Version of tailscale client 1.30.0
  • OS NixOS 22.05
  • Kernel version 5.15.67
Originally created by @madjam002 on GitHub (Sep 15, 2022). 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 - https://github.com/juanfont/headscale/issues/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 a0a463494b0160c12098ae436cf453f15861e155 - Version of tailscale client 1.30.0 - OS NixOS 22.05 - Kernel version 5.15.67
adam added the bug label 2025-12-29 01:27:05 +01:00
adam closed this issue 2025-12-29 01:27:05 +01:00
Author
Owner

@kradalby commented on GitHub (Apr 19, 2023):

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

@kradalby commented on GitHub (Apr 19, 2023): I have addressed some of these, at least IPv6, I think `dst`. Would be great if you can try upstream and report back :)
Author
Owner

@juanfont commented on GitHub (May 10, 2023):

Please reopen if you are still facing issues.

@juanfont commented on GitHub (May 10, 2023): Please reopen if you are still facing issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#328