Recommended
Set up WireGuard with wg-quick
Works the same on servers and desktops. Interface names are limited to 15 characters, so keep file names short.
Download the config
Add the machine under Dashboard, VPN with WireGuard as the protocol, save the .conf and give it a short name such as sv-de.conf.
Install the tools
Ubuntu and Debian:
sudo apt install wireguard-tools resolvconf
On Fedora
The equivalent package:
sudo dnf install wireguard-tools
Place the file and lock it down
sudo install -m 600 sv-de.conf /etc/wireguard/sv-de.conf
Bring the tunnel up
sudo wg-quick up sv-de
Check the handshake
A recent handshake time means the server answered.
sudo wg show
Start at boot (optional)
sudo systemctl enable --now wg-quick@sv-de
Option 2
Import into NetworkManager
Use this on GNOME, KDE and other desktops to toggle the VPN from the system menu.
Import the config
nmcli connection import type wireguard file sv-de.conf
Connect from the panel
The connection appears in the network menu as sv-de. Turn it on there, or run:
nmcli connection up sv-de
Option 3
Use OpenVPN on Linux
For networks that block UDP, download the TCP 443 .ovpn and run it with the openvpn package.
Install and run
sudo apt install openvpn sudo openvpn --config sv-de-tcp.ovpn
Or import it on the desktop
With network-manager-openvpn installed:
nmcli connection import type openvpn file sv-de-tcp.ovpn
Kill switch on Linux
wg-quick can reject every packet that does not leave through the tunnel. Add these two lines to the [Interface] section of your config; they are the rule from the wg-quick manual.
Add PostUp and PreDown rules
PostUp = iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT PreDown = iptables -D OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
Repeat for IPv6
Add the same two lines with ip6tables in place of iptables.
Restart the tunnel
sudo wg-quick down sv-de sudo wg-quick up sv-de
The rules are removed when the tunnel is brought down on purpose, so you get normal internet back with wg-quick down.
Split tunneling on Linux
On Linux, split tunneling is controlled by the AllowedIPs line.
Let the dashboard write it
Tick Skip local network, or paste your own bypass list when adding the device, and download the new file.
Or edit AllowedIPs yourself
List only the networks that should use SwitchVPN. Everything else uses your normal connection.
Switch city on Linux
Keep one file per city and switch with two commands.
Bring down the current city
sudo wg-quick down sv-de
Bring up the next one
sudo wg-quick up sv-jp
Each file you keep ready is a separate device in the dashboard. Alternatively, move one device to a new city and replace its file.
Linux VPN troubleshooting
resolvconf: command not found
wg-quick needs resolvconf (or openresolv) to apply the DNS line. Install it, or on systemd-resolved systems link resolvectl as resolvconf.
No handshake after wg-quick up
Check that outbound UDP 51820 is allowed by your firewall or cloud provider. If not, use the OpenVPN TCP 443 profile.
Interface name too long
Rename the file so the part before .conf is 15 characters or fewer.
SSH to the server dropped after connecting
Full-tunnel configs route replies through the VPN. On a remote server, exclude your own IP from AllowedIPs or use a config without default routing.
Linux setup questions
Do I need to compile anything?
No. Every current distribution ships WireGuard in the kernel; you only install wireguard-tools.
Can I run SwitchVPN on a headless server?
Yes, with wg-quick and a systemd unit. Remember the SSH routing note in troubleshooting before you bring it up remotely.
Is IKEv2 available on Linux?
strongSwan supports it, but WireGuard is simpler and faster on Linux, so the dashboard focuses on WireGuard and OpenVPN files there.
Plans that cover Linux
Basic
$2.51 a month
6 devices at once, $60.29 for 24 months
Plus
$3.64 a month
10 devices at once, $87.29 for 24 months
Pro
$6.22 a month
12 devices at once, $149.39 for 24 months
