Tailscale on Proxmox: LXC containers, a subnet router and HTTPS with Serve
Tailscale is how we reach our homelab from a phone, a laptop and even a car head unit, without a single port forwarded on the router. This guide shows the setup we actually run on one Proxmox box: the host as a subnet router for the whole LAN, Tailscale inside LXC containers, HTTPS addresses with Tailscale Serve, and a userspace mode for containers where you cannot touch the host config.
Every step was run again on 2026-11-28 in a fresh, throwaway LXC container (Debian 13, Tailscale 1.104.7), which we deleted afterwards. The memory numbers are our own measurements.
What you get
Tailscale builds a private network, a tailnet, out of your own devices. Each device gets a 100.x address and a name, and the connections between them are WireGuard tunnels. Devices find each other through Tailscale's coordination server and talk directly when they can, so nothing on your router has to be opened.
On Proxmox there are three ways to use it, and we use all three: on the host as a subnet router (one install makes the whole LAN reachable), inside an LXC container (the container gets its own tailnet name and can serve HTTPS), and in userspace mode (no changes to the host at all, with some limits).
Step 1: give the LXC container a TUN device
Tailscale needs /dev/net/tun to create its tailscale0 network interface. An unprivileged LXC container does not have it, and the container cannot load the tun module itself.
On the Proxmox host, add two lines to the container's config file in /etc/pve/lxc/ and restart the container. The first allows the device (character device 10:200), the second bind-mounts it into the container.
Our test container was tiny: 1 core, 512 MB of RAM, a 4 GB disk, Debian 13 template, unprivileged, DHCP. Tailscale itself needs no more than that.
Install from Tailscale's official apt repository. Tailscale also has a one-line install script, but the repository is easier to read and gets updates with the rest of the system through apt.
Run tailscale up. It prints a login URL. Open it in a browser where you are signed in to your Tailscale account and approve the new device. The command then prints Success.
Check with tailscale status and tailscale ip -4. Our container got a 100.x address at once, and tailscale ping to the Proxmox host answered in 2 ms over a direct LAN path, not through a relay.
Inside the container (Debian 13 "trixie")
apt-get update && apt-get install -y curl ca-certificates
curl -fsSL https://pkgs.tailscale.com/stable/debian/trixie.noarmor.gpg \
-o /usr/share/keyrings/tailscale-archive-keyring.gpg
curl -fsSL https://pkgs.tailscale.com/stable/debian/trixie.tailscale-keyring.list \
-o /etc/apt/sources.list.d/tailscale.list
apt-get update && apt-get install -y tailscale
tailscale up --hostname=ts-test # open the printed URL, approve
tailscale status
tailscale ip -4
Step 3: HTTPS for a web app with Tailscale Serve
Tailscale Serve puts a local port behind an https://<device>.<tailnet>.ts.net address with a real Let's Encrypt certificate. Only devices in your tailnet can open it. This is how we open Open WebUI and ComfyUI from a phone, and it means no browser certificate warnings.
MagicDNS and HTTPS certificates must be on for your tailnet (admin console, DNS page). If they are off, the serve command tells you and links to the setting.
Our test served a small web page on 127.0.0.1:8000. The very first request took 38 seconds, because that is when the certificate is issued. Every request after that took about 47 ms. Do not give up on the first slow load.
The app can keep listening on 127.0.0.1 only. Serve reaches it locally, so the app is not exposed on your LAN at all.
Serve commands
tailscale serve --bg 8000 # https://<device>.<tailnet>.ts.net -> 127.0.0.1:8000
tailscale serve --bg --https=8443 8081 # a second app on port 8443
tailscale serve status
tailscale serve --https=443 off # stop one
tailscale serve reset # stop all
Step 4: the Proxmox host as a subnet router
Installing Tailscale in every container is not necessary. With one subnet router, every device on the home LAN (other containers, the router, a NAS, a printer) is reachable over the tailnet by its normal 192.168.x.x address.
We run the subnet router on the Proxmox host itself (Debian 13 based, same apt repository as above). Turn on IP forwarding, then advertise your LAN range.
Approve the route in the admin console: Machines, the host's menu, Edit route settings, tick the range. Until you approve it nothing is routed.
Clients must accept routes. On a phone, turn on Use Tailscale subnets in the app. A Linux client needs tailscale set --accept-routes. We leave this off on devices that already sit on the same LAN, such as other containers on the same host, because they reach the LAN directly anyway.
Turn off key expiry for the host (same menu, Disable key expiry). By default device keys expire after about six months, and an expired subnet router cuts off remote access to the whole LAN until someone logs it in again.
On the Proxmox host (use your own LAN range)
cat > /etc/sysctl.d/99-tailscale-forward.conf <<'EOF'
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
EOF
sysctl -p /etc/sysctl.d/99-tailscale-forward.conf
tailscale up # first time only, log in
tailscale set --advertise-routes=192.168.1.0/24
# then approve the route in the admin console
Option: userspace mode, without touching the host
If you cannot or do not want to edit the container config on the host, run tailscaled in userspace networking mode. It needs no TUN device. We use it in the container that runs Claude Code, where we keep the host untouched.
Add a systemd drop-in that changes the start command, then restart tailscaled. In our test there was no tailscale0 interface afterwards, Serve still worked, and tailscaled used about 37 MB instead of about 40 MB.
The limit: programs in the container cannot open tailnet addresses directly. Incoming connections and Serve work, but outgoing traffic to other tailnet devices has to go through the SOCKS5 proxy from the drop-in, or through tailscale nc.
tailscaled fails to start in the container, and the log says: CreateTUN("tailscale0") failed; /dev/net/tun does not exist, after modprobe: FATAL: Module tun not found. We removed the two TUN lines on purpose to get this. The fix is the two lines from step 1, or userspace mode.
The first HTTPS request to a new Serve address hangs for half a minute. That is the certificate being issued. Wait, then it is fast.
Phone or laptop cannot reach 192.168.x.x addresses although the subnet router is up: the route is not approved in the admin console, or the client does not accept routes (Use Tailscale subnets / --accept-routes).
tailscale status on a LAN device warns: Some peers are advertising routes but --accept-routes is false. On a device that is already on the same LAN this is expected and harmless.
A device you logged out with tailscale logout still shows in the Machines list. Logout only expires its key. Remove it in the admin console (the device's menu, Remove).
What it costs (measured 2026-11-28, Tailscale 1.104.7)
Fresh test container, TUN mode: tailscaled about 40 MB of RAM; the whole 512 MB container showed 41 MB used.
Same container in userspace mode: about 37 MB.
Our Ollama container, which also serves two HTTPS sites with Serve: about 42 MB.
The Proxmox host as subnet router for the whole LAN: about 53 MB.
Disk: a bare Debian 13 template with curl and Tailscale installed came to about 0.8 GB.
CPU: near zero when idle. Speed is limited by your upload bandwidth when you are away from home, not by Tailscale.
Tailscale, Cloudflare Tunnel or Headscale?
Tailscale keeps everything private: only your own logged-in devices can reach your apps. That is what we want for admin panels, AI chat and files. The catch is that every device needs the Tailscale app, so it is not the right tool for a website you want strangers to open.
Cloudflare Tunnel is the usual answer for that second case. It publishes an app on your own domain through Cloudflare, to the whole internet, still without opening router ports. We have not run it in this homelab, so we only note the difference: public access through Cloudflare versus private access between your devices.
Headscale is a self-hosted replacement for Tailscale's coordination server. The Tailscale clients talk to your server instead of Tailscale's. It is an option if you do not want any part of the setup to depend on a hosted service, at the cost of running and updating one more service yourself. We use the hosted coordination server.