Import an OpenVPN, OpenConnect or other VPN profile into NetworkManager
nmcli's connections.c contains Error: failed to find VPN plugin for %s.. The Arch wiki NetworkManager VPN section lists WireGuard as native and the rest as plugins. All named packages exist in extra (networkmanager-openvpn 1.12.5, which pulls networkmanager-vpn-plugin-openvpn, networkmanager-openconnect, networkmanager-vpnc, networkmanager-strongswan, networkmanager-l2tp, nm-connection-editor). quattro install/omarchy-base.packages has no VPN plugin and no nm-connection-editor, and neither is installed on this 4.0.4-1 machine. Issue #8528 is open, and the quattro shell/plugins/panels/network Model.js and Panel.qml contain no VPN handling, so the panel claim holds. BBS 253111 shows the GUI import error fixed by installing networkmanager-openvpn. The nmcli import, vpn.user-name, --ask and WireGuard import commands match nmcli usage. Not exercised: no profile was imported here.
Symptom
The company or provider sent a .ovpn file, and there is nowhere in Omarchy's network panel to add it. From the terminal, nmcli connection import type openvpn file client.ovpn fails with Error: failed to find VPN plugin for openvpn. (or the same for openconnect, vpnc, l2tp). In GUI connection editors the import says The file could not be read or does not contain recognized VPN connection information.
Cause
NetworkManager supports only WireGuard natively. Every other VPN type is a separately packaged plugin (networkmanager-openvpn, networkmanager-openconnect, networkmanager-vpnc, networkmanager-strongswan, networkmanager-l2tp and others), and nmcli cannot parse or create a profile for a plugin that is not installed. Omarchy 4 ships NetworkManager without any VPN plugin and without nm-connection-editor. Its network panel does not list or toggle VPN profiles yet (open feature request #8528), so the panel gives no hint that a plugin is missing.
Fix
Install the plugin for your VPN type:
sudo pacman -S --needed networkmanager-openvpn # .ovpn files
sudo pacman -S --needed networkmanager-openconnect # Cisco AnyConnect, GlobalProtect, Fortinet via OpenConnect
sudo pacman -S --needed networkmanager-vpnc # Cisco IPsec .pcf
Import and connect from the terminal:
nmcli connection import type openvpn file ~/Downloads/client.ovpn
nmcli connection show # note the new profile's name
nmcli connection modify client vpn.user-name 'you@example.com'
nmcli --ask connection up client # prompts for the password in the terminal
nmcli connection down client
WireGuard needs no plugin:
nmcli connection import type wireguard file ~/Downloads/wg0.conf
On Omarchy, bind nmcli connection up client and nmcli connection down client to keys, or install nm-connection-editor for a GUI editor. The bar panel will not show VPN state until #8528 lands.
Verify
nmcli connection show lists the profile with TYPE vpn (or wireguard). nmcli connection up <name> reports Connection successfully activated. ip addr shows a tun0 (OpenVPN) or the WireGuard interface.
Sources
- https://wiki.archlinux.org/title/NetworkManager
- https://wiki.archlinux.org/title/OpenVPN
- https://bbs.archlinux.org/viewtopic.php?id=253111
- https://github.com/omacom/omarchy/issues/8528
- https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/nmcli/connections.c
- https://github.com/omacom/omarchy/blob/quattro/install/omarchy-base.packages