KDE, OpenVPN, Wireguard: cannot import config file

Tags: openvpn, networkmanager, wireguard, kde-plasma, unstable

I am trying to get a VPN setup working.

The VPN provider has an app which is kinda broken so I want to use the native Wireguard implementation instead. They allow creating a config file which looks like this:

[Interface]
Address = 1.1.1.1,2.2.2.2
PrivateKey = abc
MTU = 1320
DNS = 3.3.3.3, 4.4.4.4

[Peer]
PublicKey = xyz
PresharedKey = 123
Endpoint = domainname:port
AllowedIPs = 0.0.0.0/0,::/0
PersistentKeepalive = 15

This is a typical Wireguard config file isnt it?

But importing it in KDE Plasma gives me the error “Network-Manager does not support OpenVPN”

Weird, but manual Wireguard setup also confuses me so I instead tried to enable OpenVPN.

# installed packages
openvpn3 networkmanager-openvpn

# enabled option
programs.openvpn3.enable = true

No change.

What is the issue here? Are these configs for the server or client? Might it be something in my kernel?

Really appreciate the help

yes, that looks like a typical wireguard config file (technically, wg-quick, if you’re looking for the manpage with details).

The error is weird, openvpn should have nothing to do with it. My only real guess is that you saved the file with an extension like .vpn, and it has some association with that vpn provider from there?

As for the interface address in the manual config, it’s the Address line in the file

1 Like

It seems that PersistentKeepalive caused the issue. I simply removed that line.

No idea why as NixOS has the system option for both wireguard and wg-quick.

So the GUI method works now, I will open a separate post about configuring in system (the connection never shows up even though connected)