OpenVPN profile locations

i am having trouble with one of the VPN profiles I am trying to use. I would like to locate the .ovpn files and remove it.

I found the /etc/openvpn/directory but I cant see the profiles. If I run ls while in the etc/openvpn directory I see Client and Server.

Any idea how to locate the .ovpn file?

Thanks very much

1 Like

I use NetworkManager to setup my VPN connections.

All the connections made to any networks with or without VPN are in


Not sure if that is what you mean by VPN profiles.

I am pretty rookie here.
I can change the directory to etc and see NetworkManager, but how would I open this to see if the .ovpn files are there?

My VPN provider uses .ovpn files that can be imported into OpenVPN that gives me network access to the VPN.

To be clear, there are no .ovpn files in there but config files for the network connections on your system.

You could list them by: ls /etc/NetworkManager/system-connections/

Locate the troublesome connection and remove it. Ex:

sudo rm /etc/NetworkManager/system-connections/

Yet I am not sure what you mean by removing the ovpn file.

The ones I get from my provider, I keep them in a directory under my home: ~/.ovpn

Then I use NetworkManager to set up a VPN connections. The mentioned files in /etc/NetworkManager/system-connections are then created.

1 Like

Thanks very much, that was the location of the file which was a .nmconnection file. NetworkManager must rename the the .ovpn file I download from the VPN provider.


1 Like

Glad you found what you were looking for!

Please take a moment to mark the thread as solved by checking the solution box under the post giving the solution.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.