Home/Research/Post

How to Set Up a VPN on Linux: App, NetworkManager or Terminal (Without DNS Leaks)

The easiest way to use a VPN on Linux is your provider’s own app. It brings the kill switch and leak protection that a connection you set up by hand doesn’t have.

Of the eight VPNs we re-reviewed in November 2026, seven have a Linux app with a proper window. CyberGhost’s runs in the terminal only. No app for your distro? You can still import the provider’s WireGuard or OpenVPN file into NetworkManager, or start it with one command. Then two gaps are yours to close: there is no kill switch, and DNS or IPv6 traffic can slip past the tunnel.

Three ways to get a VPN running on Linux
Route
What you do
Kill switch
DNS
Best for
The provider’s Linux app
Install a package or installer, sign in
Built in
Handled by the app
Most people, on a distro the app supports
Import into Network­Manager (WireGuard or OpenVPN file)
Download a file, import it in Settings or with nmcli
None
Network­Manager uses the VPN’s DNS server
No app for your distro, or a provider without one
Terminal (wg-quick or openvpn)
Install the tools, run one command
Only rules you add
wg-quick needs resolv­conf; OpenVPN 2.6 needs a helper script
Servers, minimal installs, full control
Sources: the providers’ Linux help pages; the wg-quick(8) and openvpn(8) manual pages; NetworkManager documentation. Checked November 29, 2026.

Checked on the providers’ and projects’ own pages on 29 November 2026. New to VPNs? Start with what a VPN does and doesn’t hide.

Source: Privacy Affairs · 2026-11-29