::.2026.11.04 . writing
Reaching the Proxmox lab from anywhere with no forwarded ports
My last Proxmox post ended with an unproven NAT, because no VM existed yet to prove it with. This post is the proof, and the thing that proves the NAT is also how I get into the lab from anywhere: a Tailscale subnet router in a Debian 13 LXC on each node. Zero inbound ports forwarded, nothing exposed to the internet, and the hypervisors never touch Tailscale.
The goal
From outside the house I want the Proxmox web UI on each node and the lab VM subnets behind them. Not the home LAN, I don’t need it on the tunnel at all. The trick that makes that work: Proxmox answers :8006 on every address the node has, including the vmbr1 lab address, so putting the 10.10.N.0/24 subnets on the tailnet covers the UIs and every future VM without ever sharing the home LAN.
I’m learning this stuff, not teaching it, so treat everything here as my build notes rather than advice.
Why Tailscale and not Headscale
Headscale got the honest first look, self-hosting the control plane is the same instinct that makes me want to run my own DNS. But Headscale needs a server remote clients can reach, and with no port forwarding the only ways in are a VPS or a tunnel of its own, which is cost and another box to patch, for a three-node lab with no uptime commitment. Tailscale’s free tier covers this easily, and I already run their client on every device I own, so the extra trust in the coordination server is marginal for me.
One router per node, not one router for the lab
One unprivileged Debian 13 LXC per node, attached to vmbr1 only, advertising just its own 10.10.N.0/24. Three small routers beat one big one here: no cross-node routing to debug, losing a node only takes its own subnet off the tunnel, Tailscale stays off the hypervisors entirely (leaving me free to reboot and reconfigure those whenever), and each LXC’s outbound traffic is the first real test of that node’s vmbr1 NAT.
Security homework first
Before installing anything I read the Tailworm report from October 2026. Short version: the flaws were in Tailscale’s SSH server and Tailscale 1.104.4 fixes them. My build doesn’t use Tailscale SSH at all, plain sshd stays the way in, the nodes get patched like everything else in the lab, and I keep clients updated too (my MacBook was sitting on 1.104.2, so it got bumped the same day).
pve1, by hand
I looked at the community-scripts Tailscale add-on first. It only installs into an existing LXC from the host shell, it doesn’t create the container, enable forwarding, or advertise routes. Any of that you’re doing yourself. Since I was doing it myself anyway, pve1 got built by hand, and pve2 and pve3 got a script (end of the post).
First, templates, so the create command can’t fail on a name I guessed:
pveam update
pveam available --section system | grep debian
pveam list localThen the container. CTID 101 on pve1, 102 and 103 on the other nodes. The net0 line is the whole network story: eth0 on vmbr1, an IP inside the lab subnet, gateway pointing at the host’s vmbr1 address:
pct create 101 local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst \
--hostname ts-pve1 --unprivileged 1 \
--cores 1 --memory 512 --swap 0 \
--rootfs local-lvm:4 \
--net0 name=eth0,bridge=vmbr1,ip=10.10.1.2/24,gw=10.10.1.1 \
--nameserver 1.1.1.1 --onboot 1Tailscale needs /dev/net/tun, and systemd in a modern Debian wants keyctl and nesting:
pct set 101 --dev0 /dev/net/tun
pct set 101 --features keyctl=1,nesting=1
pct config 101
pct start 101Prove the NAT before installing anything
This is the test the last post deferred. Before Tailscale touches the container, does a plain guest on vmbr1 get out?
pct exec 101 -- ping -c 3 1.1.1.1
pct exec 101 -- getent ahostsv4 pkgs.tailscale.comPing answers through the masquerade rule, getent comes back with IPv4 addresses, the NAT config is real with a guest on it. The “unproven” line in the previous post is now closed.
Tailscale itself
Repo, install, then forwarding and the subnet:
pct exec 101 -- bash -c "apt-get update && apt-get install -y curl"
pct exec 101 -- bash -c "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"
pct exec 101 -- bash -c "apt-get update && apt-get install -y tailscale"IPv4 forwarding goes in sysctl.d so it survives a reboot, then advertise the node’s own subnet and nothing else:
pct exec 101 -- bash -c "echo 'net.ipv4.ip_forward = 1' > /etc/sysctl.d/99-tailscale.conf && sysctl -p /etc/sysctl.d/99-tailscale.conf"
pct exec 101 -- tailscale up --advertise-routes=10.10.1.0/24 --accept-dns=false
pct exec 101 -- tailscale status--accept-dns=false because 1.1.1.1 is already on the interface and the last thing a lab needs is the tunnel rewriting its DNS.
Two clicks in the admin console
The route advertises fine and does absolutely nothing until someone approves 10.10.1.0/24 in the Tailscale admin console. Same console, second checkbox: disable key expiry on the node, unless you enjoy remote access quietly dying some random morning in three months.
Testing it, twice
From the Mac on the tailnet:
ping -c 3 10.10.1.1And the point of the whole exercise:
https://10.10.1.1:8006Then again from a phone hotspot, because “works from the couch” and “works from outside” are different claims and only one of them was the goal. TTL 63 on the ping told me the path too, exactly one router hop, the LXC handing the packet to the host’s vmbr1 address.
Gotchas, one line each
pct createwarned “Systemd 257 detected. You may need to enable nesting.” That’s what the--featuresline in the create was for, I just didn’t know it at the time.getent hostsreturned only IPv6 addresses for pkgs.tailscale.com. vmbr1 is IPv4-only, sogetent ahostsv4is the honest check.tailscale upwarned about IPv6 forwarding and UDP GRO. Both ignored: the lab is IPv4-only and GRO is throughput tuning, not correctness.- Ping TTL of 63 from the Mac to 10.10.1.1 is the one router hop through the LXC.
- The route doesn’t work until it’s approved in the admin console, no exception.
The other two nodes
After pve1 the pattern was written once and reused. I wrapped the same steps in a script that takes the node number, checks it’s actually running on that node, downloads the template if needed, builds the LXC, installs Tailscale, and stops at the login URL for me to authenticate:
bash /root/build-ts-lxc.sh 2Then the console clicks again per node, approve the route, disable key expiry.
Result
All three nodes answer over the tunnel, ping and the :8006 UI, including from the phone hotspot. Zero ports forwarded on the router. And the side effect mattered as much as the goal: those three LXCs were the first guests ever on vmbr1, so their outbound traffic is what proved the NAT on every node, which retroactively makes the bridge post’s config trustworthy rather than hopeful.
Next up I’m building routing and overlay labs on top of this, vmbr2 labs where I have to be the network’s brain, reachable from anywhere because this post exists.
Recap
- Problem: Reach the Proxmox UI and lab subnets remotely with zero inbound ports forwarded.
- Design: One unprivileged Debian 13 LXC per node on vmbr1, each a Tailscale subnet router advertising only its own
10.10.N.0/24. - Build: Created LXCs, enabled IPv4 forwarding, installed Tailscale, approved routes, disabled key expiry.
- Tradeoffs: Trusts Tailscale’s control plane; lab is IPv4-only; needs admin-console clicks per node.
- Results: All three nodes answer over the tunnel, including from a phone hotspot; NAT proven.
- Reproduce: Proxmox cluster + Tailscale account; script for pve2/pve3.
- Takeaway: Zero forwarded ports, and the LXCs doubled as the first NAT proof.