Having a hard time getting .ovpn files working with NetworkManager on Tumbleweed

I have an ovpn file that I would like to import into the network manager to be able to VPN into my server.

I can import the ovpn file just fine through: Configure Network Connections > Add New Connection (the + Button) > Other (scrolling all the way down) > Import VPN Connection.

Unfortunately despite the successful importation of the ovpn file I cannot seem to be able to connect to my VPN using the connection made.

For the record the server and the ovpn file are both working fine under Windows and Android using Open VPN GUI and Open VPN official app respectively.

Any help is much appreciated.

Cheers.

This guide is about Ubuntu but might work on openSUSE too: https://askubuntu.com/questions/187511/how-can-i-use-a-ovpn-file-with-network-manager

Thanks to a tip from /u/ang-p on Reddit, I managed to import the ovpn file without a hitch using the “nmcli” by entering this command:

sudo nmcli connection import type openvpn file FILENAME.ovpn

The file not only imported just fine, it also now connects to the server seamlessly.

Hope this will be helpful to someone in the community. Also hopeful that some of the people engaged in the development might have a look to see why the GUI method does not work.

Cheers.

I did import an .ovpn file some weeks ago without problems using the Network Manager.
Today deleted the connected and imported the settings again an no problem.

For your problem to be solved, it would be good if:

  • Try the same, i.e. delete the connection and retry using the network manager
  • Try to get some logs on what is going wrong, as you do not like to shat the .ovpn file likely, it is close to impossible to solve the issue without additional clues.

Thanks for documenting the work-around!