Skip to content

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.

MechanismScope
tailscale upMachine joins the private mesh
tailscale serveShare a local port inside the tailnet
tailscale funnelShare a local port on the public internet
tailscale set --sshSSH authenticated by Tailscale identity, not keys

Install & join ​

bash
# Linux / WSL
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
powershell
# Windows
winget install Tailscale.Tailscale
bash
# macOS — cask token is tailscale-app (renamed from tailscale)
brew install --cask tailscale-app

Then check where you are:

bash
tailscale status
tailscale ip -4          # this machine's tailnet IPv4

Devices 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:

bash
tailscale set --ssh

Then from any other tailnet device:

bash
ssh YOU@YOUR-MACHINE

The tailnet policy file needs both a network grant and an SSH rule:

json
{
  "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 tailscaled drops 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_hosts keyed by hostname, so broken DNS shows up as SSH errors.

Share a port: serve vs funnel ​

bash
# Tailnet only — includes identity headers
tailscale serve 3000

# Public internet — no identity headers
tailscale funnel 3000

Serve prints something like:

Available within your tailnet:
https://YOUR-MACHINE.YOUR-TAILNET.ts.net
|-- / proxy http://127.0.0.1:3000

A 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.