Sample Header Ad - 728x90

How to let Networkmanager disregard wireguard connections?

0 votes
0 answers
46 views
I recently upgraded from linux mint 21.0 to 21.3. After upgrading Networkmanager has seem to imported my existing wireguard connections (*/etc/wireguard/wg0.conf*) which results in it being displayed in the tray icon. This results in not seeing if I am connected to a wifi or previously if I am connected to a vpn. I tried the following: 1 Removing the connection nmcli connection delete wg0 2 Add the following to */etc/NetworkManager/NetworkManager.conf* [keyfile] unmanaged-devices=interface-name:wg0 After a restart the wg0 connection reappears in the tray icon. I bring up my wg0.conf via a systemd unit file and I don't want Networkmanager to manage or display my wireguard connections. How to accomplish this?
Asked by devunder (101 rep)
Jun 13, 2025, 06:50 AM