brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: an exit node needs a grant to autogroup:internet, not to itself

Network and access
~/tips/tip-tailscale-exit-node-grant

"acls": [

Lets chosen users route internet traffic through an exit node when your access rules are customised.

This one is easy to get wrong the moment you customise your policy.

By default every user in the tailnet can use a configured exit node. Once you write your own access rules, that stops being true. The part people miss is the destination. Allowing access to the exit node device does not allow internet routing through it.

"acls": [
  {
    "action": "accept",
    "src": ["group:family"],
    "dst": ["autogroup:internet:*"]
  }
]

The docs say to add a grant or ACL whose destination is autogroup:internet. The :* port part is the ACL notation. For the exit node itself, the setup on Linux is:

sudo tailscale set --advertise-exit-node
sudo tailscale up

Then an admin approves it under the machine’s route settings, unless autoApprovers does it for you.

Caveat: on a Linux exit node you also need IP forwarding enabled, and the docs say to keep the firewall denying forwarded traffic by default. macOS and Windows exit nodes use userspace routing, so stop them from sleeping.

If you never touched the default policy you can ignore all of this. It matters the first time someone says the exit node worked yesterday and not today, right after you edited your access rules.

Further reading: Exit nodes, Tailnet policy file syntax, On this site: autoApprovers saves you the clicks in the admin console, On this site: keep your printer reachable on an exit node with –exit-node-allow-lan-access

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link