Where are VPN configuration files imported by Network Manager saved?

Solution 1:

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)

Solution 2:

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