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: autoApprovers saves you the clicks in the admin console

Network and access
~/tips/tip-tailscale-auto-approvers

"autoApprovers": {

Approves advertised subnet routes and exit nodes automatically for the users or tags you name.

Advertising a route and then logging in to approve it gets old fast.

The policy file can approve routes and exit nodes by itself. You list who may advertise what, and Tailscale approves matching advertisements when it first receives them.

"autoApprovers": {
  "routes": {
    "192.0.2.0/24": ["tag:router"]
  },
  "exitNode": ["tag:router"]
}

An approval for a range also covers subnets of that range. Approvers can be a user, a group, an autogroup or a tag. The docs suggest a tag, because advertising stops if a different user re-authenticates the device or the advertising user is suspended or deleted.

Caveat that bites: approval only happens when the advertisement first arrives. Editing the policy does not approve routes that are already waiting. To trigger it, remove the route on the subnet router and advertise it again.

Tags must exist in tagOwners before you use them here. I would keep the list short, since this is a quiet way to hand out reach into a network.

I would pair this with a tag and nothing else, because approval for a whole group of people is easy to forget about.

Further reading: Tailnet policy file syntax, Subnet routers, On this site: an exit node needs a grant to autogroup:internet, not to itself, On this site: advertise the more specific route too when subnet routes overlap

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