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: autogroup:self lets every Tailscale user reach only their own devices

Network and access
~/tips/tip-tailscale-autogroup-self

"grants": [

Let people reach their own devices without seeing anyone else's on a shared tailnet.

On a family or team tailnet, people mostly need their own devices: phone to own laptop, laptop to own desktop. autogroup:self says exactly that in one rule.

"grants": [
  {
    "src": ["autogroup:member"],
    "dst": ["autogroup:self"],
    "ip": ["*"]
  }
]

Every member can now reach every device they own, and nothing that belongs to someone else. You add shared things, like the NAS, as separate rules.

Some limits from the docs. It only works as a destination. It only covers devices owned by a user, so tagged devices are never part of anyone’s self; your tagged server needs its own rule. And it cannot be combined with autogroup:tagged.

The same idea works for Tailscale SSH, where the docs use autogroup:self as destination together with autogroup:nonroot as allowed users.

I like this as the base rule for any tailnet with more than one person, because adding a new user does not mean editing the policy at all.

Further reading: Tailnet policy file syntax

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