Adding Wireguard vpn config fails...because OpenVPN support is missing?

I’m trying to add a wireguard config file that I downloaded from my VPN provider to my Kubuntu 25.04. I opened the system settings app, found the network page, and clicked add new network connection. When I select import saved VPN config, and import the config file the settings app gives an error.

Failed to import VPN connection: NetworkManager is missing support for OpenVPN

What’s up with this? I’m importing a Wireguard config-not an OpenVPN one. Appreciate any help!

At least with Fedora KDE Plasma I can add a Wireguard VPN with none of the vpnc/openvpn packages installed.

  1. Run System Settings
  2. Wi-Fi & Networking
  3. Click + to add a new connection
  4. Scroll down to end of the list where Wireguard is and select.
  5. Click + Create

I tried as you say, but no good. I guess I’ll submit a bug report to KDE after I find where to do that. This doesn’t sound like expected behaviour.

Given that this works in Fedora I suspect it’s an issue for your linux distribution’s packaging not KDE.

1 Like

I’ve got the same issue last week. The solution is to rename your .conf file to less than 15 characters.

The maximum length for a Linux network interface name is defined by the IFNAMSIZ macro in the kernel, which is typically 16 bytes. This includes a null-terminator, meaning the user-visible portion of the name can be up to 15 characters long.

Cheers.

1 Like

I’m guessing that there is not an error messages that explains this is the issue?

Yeah, the error message sucks.

For my case it wasn’t the 15 character limit. I tried that, but it did not work.

I figured out what the problem was eventually. WireGuard .conf files need to be named according to the VPN network interface they’re going to be used for. In my case this was “wg0.conf” and after renaming the file it was imported without issue. You can have more than one of course. Just rename them, and numerate as many as you need.

Made an account just to ‘heart’ your reply and say that this solution worked for me. Proton vpn wireguard generator makes .conf files names with more than 15 characters. NetworkSettings in KDE Plasma System Settings failed to import the exact same .conf file contents if the filename was too long.