Skip to main content

Leak protection

Leak protection keeps every Transmission and web proxy request inside its selected VPN connection. There is no direct mode.

What protects each connection

Each VPN connection has its own Transmission, private address, and tunnel. Transmission sends from that private address, and the container routes it only through the matching tunnel.

The container translates the private address to the provider address at the tunnel boundary. This keeps two connections separate even when a provider gives them the same WireGuard address.

If a tunnel is down, its private route ends inside the container. Traffic from that connection's Transmission fails there and never reaches Docker's normal network.

A separate firewall boundary is the backstop. It drops every new connection the container opens outside a VPN tunnel, whichever service opens it. Only the VPN controller's own traffic and replies to incoming connections leave over Docker's normal network.

The rules don't depend on which account sends a packet, so they also work on NAS kernels that leave out iptables' owner match, such as Synology's.

What happens during a drop

  • Only the Transmission attached to the failed connection is blocked. Transmissions on protected connections keep working.
  • Torrents stay in the library, but they cannot reach peers or trackers until their connection is protected again.
  • OpenVPN exits, WireGuard handshake failures, route failures, DNS failures, and outside connection failures all enter the same blocked recovery path.
  • Automatic reconnects use the connection's endpoint pool and retry interval.
  • Web proxy requests using the failed connection return a failure instead of using another route.

The firewall is installed before Transmission, the web proxy, or the VPN controller starts. It stays installed until those services stop.

Protection states

The app combines the state of all enabled connections:

StateMeaning
ProtectedEvery enabled connection is protected.
PartialAt least one enabled connection is protected and at least one is not.
BlockedConnections exist, but none of the enabled connections is protected.

With no connections, the app shows setup is required. The container health check can still be healthy because the control page is available for setup.

Each row on the VPN page shows that connection's state. Open the connection to see its endpoint, interface, firewall state, and any error.

Sidebar protection card reading 2 of 3 VPNs protected and Contoso Frankfurt is blocked
Partial protection in the sidebar
VPN page on a phone with the header reading 2 of 3 VPNs protected, Contoso Frankfurt blocked in the list, and the Torrents, VPN, Apps, and More tabs below
Partial protection and navigation on a phone
Northwind Toronto connection details showing a protected OpenVPN tunnel, its interface, provider, endpoint, pool, firewall, and state time
Status details for an OpenVPN connection
Fabrikam New York connection details showing a protected WireGuard tunnel, its interface, provider, endpoint, last handshake, pool, firewall, and state time
Status details for a WireGuard connection

DNS protection

Every Transmission uses DNS through the default connection. The container routes those lookups from the default connection's private address through its tunnel.

When the default connection is down, Transmission DNS lookups stop. They do not fall back to the container's normal resolver.

Web proxy logins use the DNS servers of their selected connection. A login set to Default follows the default connection.

The control plane downloads provider catalogs and sends configured notifications through the VPN controller, which opens those connections over the normal network. They keep working while every VPN connection is down.

Tunnel checks

A connection becomes Protected only after its checks pass:

  1. OpenVPN reports that it is ready, or WireGuard receives a handshake.
  2. The connection's tunnel interface exists.
  3. The connection's private address routes through that interface.
  4. DNS works through the protected route.
  5. An outside TCP connection works through the protected route.

The controller keeps checking WireGuard handshakes and outside connections. It blocks and reconnects a WireGuard connection when those checks fail.

IPv6 and private networks

  • Transmission's IPv6 address is bound to ::1, the container's loopback address.
  • VPN tunnels carry the protected IPv4 traffic. IPv6 cannot provide a fallback route for Transmission.
  • The web interface and compatible RPC route remain reachable from the private network while VPN traffic is blocked.
  • The web proxy accepts private-network clients but connects only to allowed public IPv4 destinations.

Startup failures

If the firewall cannot be installed, protected services do not start. A common cause is a missing NET_ADMIN capability or TUN device. The firewall also stops startup when the host's kernel lacks a match its rules need, and the log names the missing match.

Health and logs explains the overall state, per-connection status, Transmission readiness, and useful log lines.