Tailscale
Everyday WireGuard mesh VPN — your machines join a private network (a tailnet) and reach each other by name, wherever they are.Source of truth
Site: tailscale.com
Docs: tailscale.com/kb
Why use it here
Once a machine is on the tailnet you stop caring about NAT, port forwarding, and public IPs. SSH, a DDEV site, Storybook on :6006, a database port — all reachable by hostname from any other device you own, including a phone.
| Mechanism | Scope |
|---|---|
tailscale up | Machine joins the private mesh |
tailscale serve | Share a local port inside the tailnet |
tailscale funnel | Share a local port on the public internet |
tailscale set --ssh | SSH authenticated by Tailscale identity, not keys |
Install & join
# Linux / WSL
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up# Windows
winget install Tailscale.Tailscale# macOS — cask token is tailscale-app (renamed from tailscale)
brew install --cask tailscale-appThen check where you are:
tailscale status
tailscale ip -4 # this machine's tailnet IPv4Devices get a name like https://YOUR-MACHINE.YOUR-TAILNET.ts.net.
Tailscale SSH
Instead of distributing keys, let Tailscale authenticate the connection. On the destination host:
tailscale set --sshThen from any other tailnet device:
ssh YOU@YOUR-MACHINEThe tailnet policy file needs both a network grant and an SSH rule:
{
"grants": [{ "src": ["*"], "dst": ["*"], "ip": ["*"] }],
"ssh": [{
"action": "accept",
"src": ["autogroup:member"],
"dst": ["autogroup:self"],
"users": ["autogroup:nonroot", "root"]
}]
}Revoking access is a policy edit — it applies within seconds, no key purge across hosts.
Caveats
- Server side is Linux and macOS (open-source variant) only — not Windows, not Synology/QNAP.
- Port 22 only; there is no way to move it.
- Restarting
tailscaleddrops active SSH sessions. - On a multi-user client machine, any OS user can use the connection — use check mode (
"checkPeriod": "always") if that matters. - Uses a custom
known_hostskeyed by hostname, so broken DNS shows up as SSH errors.
Share a port: serve vs funnel
# Tailnet only — includes identity headers
tailscale serve 3000
# Public internet — no identity headers
tailscale funnel 3000Serve prints something like:
Available within your tailnet:
https://YOUR-MACHINE.YOUR-TAILNET.ts.net
|-- / proxy http://127.0.0.1:3000A port can be on serve or funnel, not both. Serve requires HTTPS certificates enabled for the tailnet — the CLI prompts you the first time.
Use funnel deliberately: it is a public URL. For a short-lived share with a third party, Dev Tunnels is usually the better fit.
Related
- Remote access overview
- T3 Code — pairs over Tailscale Serve
- SSH