OpenVPN on Ubuntu 18.04
2 min readFeb 18, 2019
Install required packages
sudo apt install openvpn network-manager-openvpn
sudo apt install network-manager-openvpn-gnome
Connect to the OpenVPN using command line
sudo openvpn --config you-config-file.ovpn
You should see something like this:
And you’ve connected to the OpenVPN. If you terminate the terminal, the connection will be lost.
It’s more convenient to have OpenVPN option in Network Manager GUI.
Using Network Manager GUI
First, you need to restart the network-manager
service after installing the OpenVPN packages above.
sudo service network-manager restart
Then open the Network
settings, click the +
button next to the VPN section, then choose Import from file…
Browse to your .ovpn
file to open it and click Add
:
You will see your OpenVPN connection configured with On/Off
switch:
You can also turn the OpenVPN connection on/off quickly here:
Enjoy your OpenVPN connection!