Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Outbound VPN

Route your server’s outbound Internet traffic through a VPN for privacy. An outbound VPN is like sending your mail through a proxy — the recipient sees the proxy’s return address, not yours. Common reasons to use one:

  • Hide your IP address from external services your server connects to.
  • Prevent ISP monitoring of your server’s traffic.
  • Route sensitive services differently — for example, send Bitcoin traffic through Mullvad while leaving everything else on the default gateway.

Add a VPN Gateway

To add an outbound VPN, add a gateway using a WireGuard configuration file. There are two options:

Commercial VPN (Mullvad, ProtonVPN, etc.)StartTunnel
Gateway typeOutbound onlyInbound/outbound
Also serves as—Inbound VPN and clearnet gateway
IP anonymityHigh — your traffic blends with thousands of other users on shared IPsLower — the VPS IP is dedicated to you, so all traffic from it can be correlated
CostMonthly subscriptionVPS hosting cost
SetupPaste provider’s WireGuard configSee StartTunnel

Both options hide your home IP address, and in both cases the provider knows who you are. The difference is that a commercial VPN shares IPs across thousands of users, making it harder for external observers to correlate traffic to a specific person. With StartTunnel, the VPS IP is yours alone, so all traffic from it can be linked together. The advantage of StartTunnel is that a single gateway handles both inbound and outbound traffic.

Use the VPN

Once the gateway is added, select it on System > Outbound Traffic to route the whole server through it, or on a service’s Outbound Traffic tab to route that service alone. See Outbound Traffic for how the two interact and how StartOS prevents traffic from leaking around the VPN.