Celeb Glow
updates | March 11, 2026

OpenVPN config file Ubuntu

I have a problem locating openvpn config files on both Ubuntu 20.04 and 19.10. It is not in any usual locations, i searched through entire disk via find / -name but no hits. I was looking for .ovpn, .conf, .config, i found nothing. I am using nm-openvpn built in to Ubuntu, I set it up via GUI, but on the 19.10 there are some problems with it and i cannot find that damned config file ANYWHERE.

I tried /etc/openvpn, /usr/etc/.., /shares.., ~/.conf, ....

/etc/openvpn/client/... there are some config files, but they are old and not used anymore, openvpn client ignores it anyway. I am solving this second day in row, i need to do this via terminal, not by GUI.

I need to find the OLD one, not just replace it with the NEW config because of some debugging.

I would LOVE openvpn --get-config-file-path, but obviously no one EVER does this when creating some software. Thanks for some tips on how to locate it, nice day.

Q.

1 Answer

The nm-openvpn package uses NetworkManager to start and stop OpenVPN. The configuration is actually stored in NetworkManager. NetworkManager configuration can be found in /etc/NetworkManager/system-connections:

enter image description here

The idea you suggested; --get-config-file-path wouldn't even work here, because NetworkManager doesn't provide a config file to OpenVPN. It uses command-line switches to configure OpenVPN. This is why not all OpenVPN configuration options are available through NetworkManager.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy