How Can You Tell Whether NetworkManager or Another Service Controls Your Linux VPN?
Before you fix a Linux VPN, find out who owns it. A short set of read-only commands shows whether NetworkManager, systemd-networkd, a unit file or a desktop app controls the tunnel.
11 min readUpdated Nov 11, 2026By XPASS Editorial Team

Almost every Linux VPN problem gets easier once you know which program is in charge of the tunnel. Linux does not have a single network manager. A desktop may use NetworkManager, a server may use systemd-networkd, a script may call wg-quick, and a vendor app may start its own background service. Each of these can add routes, rewrite DNS settings and bring an interface up or down. When two of them are active at the same time, the symptoms look strange: the VPN says connected but pages do not load, a setting you changed reverts after a minute, or the tunnel disappears when Wi-Fi reconnects.
This article is about the first step only: finding the owner. It gives you a short, read-only sequence of commands, a table to interpret the output, and a few typical conflicts. It does not repeat how to add a profile, which is covered in adding a VPN in NetworkManager, and it does not try to cover every distribution. Wording and file paths differ a little between systems, so treat the examples as a guide and check your own output.
Why ownership matters
A VPN on Linux is not one thing. It is a virtual network interface such as tun0, wg0 or ppp0, a set of routes that decide which traffic enters it, and a DNS arrangement that decides who answers name lookups. Something has to create the interface, start the helper program, install the routes and tell the resolver what to use. That something is the owner.
Knowing the owner tells you three practical things:
- Where to change settings. If NetworkManager owns the tunnel, editing a file in
/etc/wireguardwill not change what it does, because NetworkManager keeps its own copy of the profile. - Where to read logs. NetworkManager writes to its own unit in the journal. A hand-started tunnel writes to a different unit, or only to a terminal window.
- What to stop before you test. If you start a second copy of a tunnel while the first is still running, you can end up with two interfaces and competing default routes.
Think of it like a house with two thermostats wired to the same heater. Turning one up while the other is set low does not give you a warm room. First work out which thermostat is the real one.

Step 1: List the services that could be involved
Begin with what is running. These commands read information only.
systemctl is-active NetworkManager
systemctl is-active systemd-networkd
systemctl is-active systemd-resolved
systemctl list-units --type=service --state=running | grep -i -E "vpn|wireguard|wg-quick|openvpn|strongswan|openconnect|xl2tp"
Read the answers like this:
activefor NetworkManager means the service is running. Many desktop distributions use it for Wi-Fi and Ethernet.activefor systemd-networkd means that service is running. Servers, minimal installs and some containers use it. It is possible, though unusual, to have both active, with each handling different interfaces.activefor systemd-resolved tells you about DNS handling, not about the VPN. It is a resolver front end that several tools talk to.- Lines from the last command show units that look VPN-related. A name such as
wg-quick@wg0.serviceoropenvpn-client@work.servicemeans someone configured the tunnel as a system service.
If none of the last command's lines match, the VPN may still be started from a desktop menu, a panel applet or a launcher. Go on to the next steps.
Step 2: Ask NetworkManager directly
If NetworkManager is active, ask it what it knows.
nmcli general status
nmcli connection show
nmcli connection show --active
nmcli device status
nmcli connection show lists every saved profile with a type column. Look for vpn or wireguard in the TYPE column. --active limits the list to what is connected right now. If your VPN name appears in the active list, NetworkManager is running that tunnel.
nmcli device status lists network devices with a STATE column. A value of connected means NetworkManager has an active connection on it. A value of unmanaged means NetworkManager has been told not to touch it. A tunnel interface that appears here as unmanaged is a strong hint that something else created it.
Do not conclude too much from absence alone. A VPN started by another tool can still appear in nmcli device status as unmanaged, and NetworkManager may hide some virtual devices by default. Use this step to confirm ownership when you see a match, and keep looking when you do not.
Step 3: Look at the interface and who created it
Next, look at the tunnel itself.
ip -br link
ip -br address
ip route
The brief link listing shows interface names and their state. Common tunnel names are tun0 and tap0 for OpenVPN, wg0 for WireGuard, ppp0 for older dial-style tunnels, and names such as vpn0 or tailscale0 for other tools. The name often follows the profile name, but it does not prove who made it.
For WireGuard you can ask the kernel side directly:
ip link show type wireguard
sudo wg show
If wg show lists a tunnel that nmcli connection show --active does not, the interface was probably created outside NetworkManager, for example by wg-quick or a systemd unit. If both list it, NetworkManager created it, because its built-in WireGuard support uses the same kernel interface.
For OpenVPN, a quick process look is useful:
ps -eo pid,user,args | grep -i -E "openvpn|openconnect|strongswan|charon|vpnclient" | grep -v grep
Read the full command line. A process started by NetworkManager usually shows paths and options that belong to its plugin, often running as a helper under the system. A process started by a unit shows the configuration path you chose. A process started by a desktop app may show the app's own binary. The command line is evidence, not proof, so combine it with the other checks.
Step 4: Find out who is writing your DNS and routes
Two services quarrelling over DNS is the most common cause of confusing symptoms. Check the resolver.
ls -l /etc/resolv.conf
resolvectl status
ls -l /etc/resolv.conf shows whether the file is a link to a systemd-managed file, a link to a NetworkManager-generated file, or a plain file edited by hand or by a script. resolvectl status (present when systemd-resolved is in use) lists DNS servers per interface. Look at the tunnel interface. If it has its own DNS servers and a setting that lets it handle all domains, name lookups should go through the tunnel. If the tunnel interface has no DNS servers, lookups follow the physical link. For background on what the resolver does, see the RFC 1034 reference below.
Then compare the routes:
ip route
ip route get 1.1.1.1
ip route get shows which interface the system would choose for a particular destination. If the output names the tunnel, traffic to that address enters it. If it names your Wi-Fi interface, it does not. For a deeper explanation of what routes decide, see routing and the default route in a Linux VPN.
A decision table
Combine the evidence in one place.
| What you see | Most likely owner | Where to change settings | Where to read logs |
|---|---|---|---|
Name appears in nmcli connection show --active |
NetworkManager | nmcli connection modify, a settings program, or nm-connection-editor |
journalctl -u NetworkManager |
wg show lists it, not in nmcli, and a wg-quick@name unit is running |
systemd unit running wg-quick |
The file in /etc/wireguard, then restart the unit |
journalctl -u wg-quick@name |
Interface exists, wg-quick not in the unit list, and wg show lists it |
wg-quick run by hand, or by a script |
The same .conf file; bring down and up again |
The terminal, or your script's output |
openvpn process with a --config path, a unit with that name |
systemd unit for OpenVPN | The .conf or .ovpn file named in the unit |
journalctl -u for that unit |
Interface listed as unmanaged in nmcli and networkctl list shows it configured |
systemd-networkd | Files in /etc/systemd/network |
journalctl -u systemd-networkd |
| A process from a vendor or desktop app, no profile in nmcli | The app itself | The app's settings screen | The app's log view, if it has one |
Rows overlap, and a computer can mix more than one. Treat the table as a way to form a hypothesis, then confirm it by changing one thing and watching what happens.
Step 5: Check systemd-networkd and netplan
On systems that use systemd-networkd, ask it about its own devices.
networkctl list
networkctl status wg0
The SETUP column shows configured for devices it manages and unmanaged for ones it ignores. Files in /etc/systemd/network with the suffixes .netdev, .network and .link define devices and settings.
On some distributions, a tool called netplan sits above both. Its YAML files in /etc/netplan choose a renderer, either NetworkManager or networkd, and generate the real configuration at boot or when you apply it. If you edit the generated files directly, netplan can overwrite them later. Look at the netplan files to find which renderer is selected.
ls /etc/netplan
If the file says renderer: NetworkManager, the desktop manager owns the physical links, and a VPN profile added there is in its care. If it says renderer: networkd, NetworkManager may still be installed but should not be managing the same interfaces. This is a typical setup that surprises people after a system upgrade.

Typical conflicts and what to do
Two copies of the same tunnel. A WireGuard profile is imported into NetworkManager, and a wg-quick@wg0 unit is also enabled. Both try to create wg0, and one fails with a message that the interface already exists. Choose one owner. Disable the unit you do not want with sudo systemctl disable --now wg-quick@wg0, or delete the NetworkManager profile with nmcli connection delete NAME. Both commands change the system, so write down the profile name first.
DNS reverting. You set a DNS server by editing /etc/resolv.conf, and a minute later it changes back. A service regenerated the file. Change DNS in the tool that owns the connection, not in the generated file.
Kill switch rules from a second tool. A firewall rule written by one tool can block the tunnel that another tool creates. When a tunnel connects but nothing loads, list firewall rules with the tool your system uses and see whether something drops traffic that leaves a physical interface. The idea is the same as a kill switch: traffic is only allowed through the tunnel.
Auto-connect fighting a manual start. A profile set to connect automatically and a command you type yourself will compete after every network change. If you want manual control, turn off auto-connect in the profile.
A desktop app and NetworkManager both running a VPN. If you use an app that has its own background service, do not also enable a similar profile in NetworkManager for the same purpose. Two default routes into two tunnels cause confusing paths for traffic.
A plain example
Mira has a laptop with a Linux desktop. Her VPN says connected, yet some sites will not open. She runs systemctl is-active NetworkManager and gets active. She runs nmcli connection show --active and sees only her Wi-Fi profile, no VPN. She then runs ip -br link and finds wg0 is up. sudo wg show lists it, and systemctl list-units | grep wg-quick shows wg-quick@wg0.service. The owner is a systemd unit, not NetworkManager.
Her next check is resolvectl status. The wg0 interface has no DNS servers, so lookups go through her Wi-Fi network's resolver, which cannot reach the names she needs. Because the unit owns the tunnel, she adds a DNS line to the .conf file under /etc/wireguard, restarts the unit, and checks resolvectl status again. Had she edited a NetworkManager profile, nothing would have changed. Knowing the owner saved her from changing the wrong file.
Limits and what to watch for
- The output varies. Different distributions, versions and desktop environments change names, defaults and paths. If a command is missing, install the package that provides it or skip to another check.
- Absence of evidence is not proof. NetworkManager can hide virtual devices, and a process list can be incomplete. Use more than one check.
- Some apps run in a way you cannot read easily. A vendor app may start its own helper with a name that does not mention VPN. If you cannot tell, check the app's documentation, or ask the provider's support instead of killing unknown processes.
- Do not stop services you do not understand. Stopping NetworkManager on a Wi-Fi-only laptop drops your connection. Do it only when you can reconnect another way.
- This is diagnosis, not a guarantee. Finding the owner narrows the search. It does not by itself fix a blocked network, a wrong password or an expired account.
- Test with a harmless check. After any change, confirm the result with an IP check or a DNS leak test rather than assuming it worked.
Summary
To find out who controls your Linux VPN, start with which network services are active, ask NetworkManager what it has saved and connected, look at the tunnel interface and the process behind it, then check which tool is writing DNS and routes. Match what you find to the decision table, change settings only in the tool that owns the tunnel, and avoid running two owners for the same interface. A few minutes spent identifying the owner usually saves much longer guessing.
If you need the Linux installer steps for VPNclient, the Linux setup guide covers them, the VPN not connecting guide helps when a connection fails, and the pricing page shows the prepaid options.
Frequently asked questions
How do I quickly see whether NetworkManager is running?
Run systemctl is-active NetworkManager. If it prints active, the service is running. Then run nmcli connection show --active to see whether your VPN appears in its list. Running does not mean it owns the VPN, so check the list as well.
Can two services manage the same VPN at once?
They can try, and that is a common source of trouble. Two tools may each add routes or rewrite DNS settings, and the result is a tunnel that connects but behaves oddly. Pick one owner for each tunnel and stop the other.
What does unmanaged mean in nmcli device status?
It means NetworkManager has been told to leave that device alone, often because another tool such as systemd-networkd or a manual configuration handles it. It is not an error by itself, but it tells you where to look.
Does this article apply to the VPNclient app?
The checks are generic and work for any VPN on a Linux desktop. For installing VPNclient on Linux, use the Linux setup guide. If you are unsure how the app starts its connection on your system, ask support rather than guessing.
Is it safe to run these commands?
The commands in the diagnosis sections only read status and change nothing. Commands that stop or disable a service are marked clearly. Note your current setup before changing anything on a computer you rely on.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

Device Guides
How to Add a VPN in Linux NetworkManager
How NetworkManager stores VPN profiles, how to add one in GNOME, KDE or nmcli, and which settings (routes, DNS, auto-connect, secrets) decide whether it behaves well.
10 min read

Device Guides
Linux VPN Routing Tables Explained
A VPN on Linux is mostly a set of routing decisions. Learn to read ip route, understand the half-default trick and policy tables, and diagnose why traffic goes the wrong way.
9 min read

Device Guides
How to Connect to a VPN from the Linux CLI
A terminal-first guide to running a VPN on Linux: what to check, three ways to connect, the SSH lockout trap, keeping a tunnel alive with systemd and proving it works.
10 min read