Playbook 02 · Security & Architecture

Tailscale-Only Home Server Access: Reach Your NAS Anywhere With Zero Open Ports

Port forwarding exposes every admin panel to automated internet scanners within minutes. Bind your containers to loopback once, layer Tailscale Serve + MagicDNS on top, and eliminate public attack surface completely.

Open router ports required: 0 Works behind CGNAT & dynamic home IPs Updated: 2026-12-05

1. The access-boundary decision table

Default every service to Tailnet-only. Promote a service to a public reverse proxy only when non-tailnet family members genuinely need access.

Boundary When to use it Examples from the 9 picks
LAN only Hardware controls, initial setup wizards, or anything never needed away from home. Scrutiny collector config, router/NAS vendor panels, Dockge during setup
Tailnet only Daily drivers reached from your own phone & laptop over MagicDNS. Backrest UI, FileBrowser Quantum, Navidrome, Kavita, FreshRSS, Glance
HTTPS on Tailnet Browser APIs or native apps that strictly require valid TLS certificates. Vaultwarden (Bitwarden clients refuse plain HTTP) via tailscale serve

2. Two clean ways to bind Docker containers

Pattern A: Loopback + Tailscale Serve (recommended for HTTPS)

Keep the container strictly bound to 127.0.0.1 so it never listens on 0.0.0.0, then let Tailscale terminate TLS automatically for your tailnet devices:

docker-compose.yml + tailscale serve
# In docker-compose.yml:
    ports:
      - "127.0.0.1:8081:80"   # Vaultwarden never leaves loopback

# On the host shell:
tailscale serve --bg --https=8443 http://127.0.0.1:8081
# Reachable ONLY by your tailnet devices at:
# https://<nas-name>.<your-tailnet>.ts.net:8443

Pattern B: Direct Tailscale IP binding

Find your host's Tailscale IPv4 address using tailscale ip -4 (always in the 100.x.y.z range) and bind the container directly to that interface:

Tailnet IP binding example
services:
  backrest:
    image: garethgeorge/backrest:latest
    restart: unless-stopped
    mem_limit: 512m
    ports:
      - "100.x.x.x:9898:9898"   # replace with tailscale ip -4
Critical reminder: Putting a service behind a Glance dashboard link is not access control. Access control is the actual host IP binding shown by docker ps.

3. Seven-point security verification audit

  • Disable Wi-Fi on your phone (mobile data only) and open each service via its MagicDNS name — it must load cleanly.
  • From the same phone, try your home public IP + service port — it must time out and refuse connection.
  • Run docker ps --format "table {{.Names}}\t{{.Ports}}" and confirm zero admin UIs bind to 0.0.0.0.
  • Confirm your home router has zero port-forwarding rules pointing at the NAS.
  • Verify Vaultwarden responds over valid HTTPS, never plain HTTP.
  • Test from a device signed out of Tailscale: MagicDNS names must not resolve.
  • Review Tailnet ACLs so only your personal devices (or a tagged admin group) can reach NAS ports.