Hacker News new | ask | show | jobs
by raggi 41 days ago
(tailscalar here): it's been a long day working on this, and we will have more details to follow. quickly though, on this point about enumeration, some of this may be a difference in headscale. the tailscale control plane performs what we colloquially refer to as "netmap trimming" - if node a has no acls that allow it to do anything with node b, then neither a or b would see each other in their netmap.
2 comments

appreciate your hard work and ts in general.

trimming is a neat feature - thanks for that - thought the ACLs are often not there to begin with because configuring off the full node level access defaults of the vpn is difficult, at least at scale.

not specific to ts - all vpns and firewalls have the same intrinsic issue.

I am not sure if it is actually true for TS. From what I understand the nodes advertise themselves in a different mechanism than what provides access. ACLs are set globally and the nodes fetch them.

So even with 0 access ACLs for node-to-node communication, nodes can advertise themselves to the control plane and change their config as the ACLs are updated.

The following are from my own adventures in heavily customizing headscale and interacting with tailscale client:

Nodes get "NetMap" streamed to them from control plane, which contains information about nodes accessible to them. Without a node showing up in netmap, you can't start discovery to connect to that node - discovery protocol follows once you get information for given node, and allows continued connection in case NetMap gets stale (but if ACLs are changed and reach the other node, it's going to filter you out, and you're not going to know about it without initial info from NetMap)

Pretty sure only accessible nodes are present in netmap given to a node from headscale.

... Because I had triggered more than one alarm recently messing with a headscale upgrade and permissions involved :D