To import a .ovpn file with Network Manager in Linux, follow these steps:
- Install Network Manager OpenVPN plugin:
sudo apt-get install network-manager-openvpn-gnome
-
Go to Network Connections from the System Settings or from the top right corner Network Manager applet.
-
Click on the gear icon and select Import a saved VPN configuration.
-
Browse and select the .ovpn file, click on Open and follow the wizard.
-
Enter your VPN login credentials, then connect to the VPN.
To import the .ovpn file with the command line, follow these steps:
- Install the OpenVPN client:
sudo apt-get install openvpn
- Copy the .ovpn file to the OpenVPN client configuration directory:
sudo cp [file].ovpn /etc/openvpn/
- Connect to the VPN using the OpenVPN client:
sudo openvpn --config /etc/openvpn/[file].ovpn
- Enter your VPN login credentials when prompted.