Two LXC Config Lines Enable Tailscale Kernel TUN Without Privileged Containers
Developers running Tailscale in unprivileged LXC containers on Proxmox often default to userspace networking mode, which causes silent failures including broken inbound SSH, unreliable UDP, and proxy-dependent outbound traffic. Userspace mode works by bypassing the kernel TUN device entirely, running a gVisor-based TCP/IP stack inside the Tailscale process, but this means no real network interface is created and inbound connections to native daemons like OpenSSH do not function. A lesser-known alternative involves adding just two lines to the LXC configuration file, enabling kernel TUN access while keeping the container unprivileged. This gives each container its own Tailscale identity, a direct 100.64.0.0/10 address, and a kernel-visible network interface, making it a full tailnet peer rather than a proxied endpoint. The post positions this as an upgrade over subnet router setups, where a single node handles routing on behalf of all containers instead of each one maintaining its own direct WireGuard path.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in