faid.alani
← all posts

> homelab · build 01

Remote Access to My Lab With Zero Open Ports

Tailscale as a subnet router and exit node in an unprivileged Proxmox container, and the four problems I hit getting it to route.

Faid Al-Ani3 min read

I'm rebuilding my home SOC lab from scratch, and remote access is the first piece. Every later step (firewall, SIEM, Active Directory) is easier when I can manage the lab from anywhere. I wanted that without opening a single port on my home router, so nothing is exposed to the internet.

What I built

ItemSetup
ContainerUnprivileged Debian 12 LXC on Proxmox VE 9.2
Resources2 vCPU, 512 MB RAM, 8 GB disk, static IP
Subnet routerReach any device on my home LAN by its normal IP
Exit nodeSend my traffic out through home when I'm on untrusted Wi-Fi
Inbound ports openedZero
Tailscale admin console with the 192.168.50.0/24 subnet route and Use as exit node both enabled
The end state: home LAN route approved and exit node enabled.

The four problems

Installing Tailscale was the easy part. Making it actually route is where the work was:

  1. The console had nothing to enable. The admin page said the machine exposed no routes. It can only switch on what the node advertises, and I hadn't told it to advertise anything yet.
  2. tailscale up refused my change. Once a setting like --ssh is on, you have to restate every non-default flag. That's a safety feature that stops you silently dropping a setting.
  3. IP forwarding was off. A router has to forward packets, and Linux blocks that by default. The documented fix used sudo, which the minimal container doesn't have because you're already root.
  4. No TUN device. Unprivileged containers don't get /dev/net/tun. I granted it from the Proxmox host by adding two lines to the container's config, following Tailscale's own LXC guide.
Terminal output showing Tailscale warnings about IP forwarding and the error requiring all non-default flags
Problems 2 and 3 in one screen. The error even prints the exact command to run.
Proxmox LXC config file with the two lines granting access to /dev/net/tun added at the bottom
The fix for problem 4: the last two lines give the container the TUN device.

What I took away

  • Unprivileged containers make you ask for what you need. TUN access and IP forwarding both had to be granted on purpose. That's least privilege doing its job.
  • Read the error before searching. Every fix here came from a message Tailscale printed or from its own docs.
  • Remote access doesn't need open ports. It's the setup I'd recommend to any small business.

The full walkthrough, every command and all 35 screenshots are on GitHub.

Read the full write-up →