Skip to content
← All work
GoTypeScriptReactDockerOpenVPNWireGuard

transmission-vpn

A Docker appliance that keeps each Transmission behind its own OpenVPN or WireGuard tunnel, run from one secure web console.

The problem

A torrent client behind a VPN is only as safe as the moment the tunnel drops. Routing a whole machine through a VPN breaks everything else it does, and a setup tied to one NAS can't move anywhere else. Most people end up reading container logs to find out whether they're actually protected.

What I built

One Docker container that runs several VPN connections at once, each with its own Transmission and its own OpenVPN or WireGuard tunnel behind a fail-closed firewall. Torrent profiles decide each torrent's download folder and VPN connection, an opt-in HTTP and SOCKS5 proxy lets other devices pick a connection, and remote apps get their own logins. A React console shows which connections are protected and handles providers, endpoint pools, settings, backups and alerts.

How it works

s6-overlay supervises everything, and only the startup steps and the VPN controller run as root. The Go control plane serves the console and API and talks to the controller over two narrow sockets. Each Transmission sends from a fixed private address that the firewall lets out only through its own tunnel, so a dropped VPN blocks traffic instead of leaking it. The console is protected by passkeys, an authenticator app with recovery codes, and sign-in limits.

The outcome

A multi-architecture image on Docker Hub and GHCR that replaces a NAS-only script with something portable, with seven built-in VPN providers plus custom profiles and alerts to services like ntfy, Telegram and email.

transmission-vpn started in 2015 as a Shell script for Synology NAS boxes. It connected one of the NAS’s VPN profiles and bound Transmission to the VPN address, then fell back to 127.0.0.1 when the tunnel went down. Over the years it picked up L2TP, PPTP and OpenVPN, a repair command and a few retry settings. It did one thing, but only on one kind of machine.

In 2026 I rebuilt it from scratch as a Docker appliance. Instead of one Transmission behind one VPN, it now runs several connections side by side, each with its own daemon, tunnel and peer port, and WireGuard sits next to OpenVPN. The console is where everything lives now: profiles, labels, endpoint pools that fail over to the next server, and a status card that tells you in one word whether you’re protected.

The part I care about most is still the original promise. If a tunnel isn’t verified, its Transmission can’t talk to the outside world, and you can see that in the console without opening a log.