How to import a OpenVPN .ovpn file with Network Manager or Command Line in Linux

  1. Install Network Manager OpenVPN plugin:
 
sudo apt-get install network-manager-openvpn-gnome
  1. Go to Network Connections from the System Settings or from the top right corner Network Manager applet.

  2. Click on the gear icon and select Import a saved VPN configuration.

  3. Browse and select the .ovpn file, click on Open and follow the wizard.

  4. Enter your VPN login credentials, then connect to the VPN.

To import the .ovpn file with the command line, follow these steps:

  1. Install the OpenVPN client:
 
sudo apt-get install openvpn
  1. Copy the .ovpn file to the OpenVPN client configuration directory:
 
sudo cp [file].ovpn /etc/openvpn/
  1. Connect to the VPN using the OpenVPN client:
 
sudo openvpn --config /etc/openvpn/[file].ovpn
  1. Enter your VPN login credentials when prompted.

Leave a Comment