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.
2 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)
-
2
-
2There is, but it circumvents the network-manager. Place the file in
/etc/openvpn/
. Make sure it has a.conf
suffix, the init script at/etc/init.d/openvpn
searches for such files. The VPN will be started at boot time. To disable this, edit/etc/default/openvpn
uncomment theAUTOSTART=none
line. I'm doing it this way because thenetwork-manager-openvpn
is 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
. Mar 5, 2011 at 13:11 -
4It seems this answer is no longer up-to-date as of Ubuntu 12.04. I have a couple VPNs configured through Network Manager in 12.04 using network-manager-openvpn-gnome, but there is no ~/.gconf/system directory. Anyone know where those files might live nowadays? May 2, 2012 at 15:44
-
@CarlMeyer Try importing and run the command
find ~ -mmin -3 -ls
to find all modified files in the last 3 minutes. May 2, 2012 at 15:47 -
6Turns out they are stored in /etc/NetworkManager/system-connections/ (even when they aren't shared with everyone) Jun 22, 2012 at 22:36
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