Tailscale
NetworkingReach your homelab from anywhere without opening a single port.
Tailscale connects your devices into one private network, called a tailnet, built on WireGuard. Your phone, laptop and homelab containers can reach each other from anywhere without opening a single port on your router. A Proxmox host can act as a subnet router so the whole LAN is reachable, and Tailscale Serve gives any local web app an HTTPS address with a real certificate that only your own devices can open.
What Tailscale is good for
- Open your self-hosted apps from your phone or laptop while away from home, with no port forwarding.
- Turn the Proxmox host into a subnet router so every device on the home LAN is reachable over the tailnet.
- Give a web app such as Open WebUI an https://name.ts.net address with a real certificate, visible only to your devices.
- SSH into the server from a phone over the tailnet instead of exposing port 22.
Before you deploy
- The client is open source, but the coordination server (login, device list, access rules) is Tailscale's hosted service. Tailscale offers a free Personal plan for home use. For a fully self-hosted control server, look at Headscale.
- Inside an unprivileged LXC container tailscaled will not start without two lines that pass /dev/net/tun through, or without userspace mode.
- The first request to a new Serve address can take around half a minute while the certificate is issued. Later requests are fast.
- Device keys expire after a few months by default. Disable key expiry for servers such as a subnet router, or they drop off until you log in again.
- tailscale logout does not remove a device from the admin console. Remove old test devices there by hand.
Compatibility
Proof of Work Gallery
- Machines
- Subnet route
- HTTPS with Serve
- Missing TUN error
Deployment
# Official image. We installed Tailscale natively (apt) in our LXC containers,
# so this Docker variant is untested by us.
# Create an auth key in the admin console (Settings > Keys) first.
services:
tailscale:
image: tailscale/tailscale:latest
container_name: tailscale
hostname: homelab-docker
restart: unless-stopped
environment:
- TS_AUTHKEY=tskey-auth-change-me
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
volumes:
- tailscale-state:/var/lib/tailscale
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- NET_ADMIN
- NET_RAW
volumes:
tailscale-state:
Alternative to
Port forwarding, OpenVPN, TeamViewer
Guides featuring Tailscale
Related apps
Get new apps and guides by email
One short email when we test a new app or publish a guide. No spam, unsubscribe any time.