I've imported an OpenVPN configuration file that behaves differently when trying to connect from Network Manager and command line. I would like to see what the imported configuration file looks like.
3 Answers
12.04 onwards
Connection information is stored in the directory:
/etc/NetworkManager/system-connections
Note: This directory stores other connection information such as wifi connections.
Pre 12.04
In Kubuntu, network-manager-openvpn-kde saves its profiles to:
~/.kde/share/apps/networkmanagement/connections/
In Ubuntu, network-manager-openvpn-gnome saves its profiles to:
~/.gconf/system/networking/connections/
(VPN settings are in ~/.gconf/system/networking/connections/*/vpn/%gconf.xml)
- 1,690
- 178,864
In Ubuntu 24.04 you can find the network configurations (including vpn configurations) in /etc/netplan
- 71
-
1This is important to know; the previous answers are outdated, and not helpful anymore. – foo Apr 21 '25 at 12:10
Yes, in Ubuntu 12.04 and later the config settings are stored in /etc/NetworkManager/system-connections -- except, when someone didn't migrate the connection information out of an older .conf file and continued using that .conf file instead. In that case, the settings are in /home/USER/.gcm/gcm.conf
- 111
/etc/openvpn/. Make sure it has a.confsuffix, the init script at/etc/init.d/openvpnsearches for such files. The VPN will be started at boot time. To disable this, edit/etc/default/openvpnuncomment theAUTOSTART=noneline. I'm doing it this way because thenetwork-manager-openvpnis too limited, I cannot run script after connection for example. To start OpenVPN with your configuration fileclient.conf, runsudo /etc/init.d/openvpn start client. To stop it, run/etc/init.d/openvpn stop client. – Lekensteyn Mar 05 '11 at 13:11find ~ -mmin -3 -lsto find all modified files in the last 3 minutes. – Lekensteyn May 02 '12 at 15:47/etc/NetworkManager/system-connections/, or are there other places where this data is redundantly stored? – snapfractalpop Apr 09 '15 at 15:49/etc/NetworkManager/only. Though there are other locations where network information can be stored (such as/etc/network/), or/etc/sysconfig/depending on the loaded plugins in/etc/NetworkManager/NetworkManager.conf(see the manual page ofNetworkManager.conf). – Lekensteyn Apr 10 '15 at 13:18/etc/netplan/. – Hermann Sep 17 '24 at 18:41