53

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.

Oxwivi
  • 18,499

3 Answers3

83

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)

KrisWebDev
  • 1,680
Lekensteyn
  • 178,446
6

In Ubuntu 24.04 you can find the network configurations (including vpn configurations) in /etc/netplan

6

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

Reese
  • 111
  • 2
  • 3