headscale
headscale copied to clipboard
Various ACL rules not working
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(errorCould not load the ACL policy error="invalid port format") unless they are in thehostsalias 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:0must 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