How to Setup OpenVPN Client on Ubuntu 18.04

Hi! In this post we are going to setup OpenVPN Client on Ubuntu 18.04. Most of the available tutorials posted on the Internet were about how to configure an OpenVPN server. There are a lot of OpenVPN providers in the market. I personally liked OpenVPN service from StrongVPN because they offer a wide selections of VPN protocols and you can change server locations easily. New network routers also features OpenVPN connection capabilities which let you connect to your home or office network.

Prerequisite

You will need to have an .ovpn file downloaded from your OpenVPN provider.

Downloaed .ovpn file from openvpn provider

1. Start by opening your terminal and type the following commands. (This requires root privileges)

sudo apt install openvpn network-manager-openvpn
sudo apt install network-manager-openvpn-gnome
After you’ve successfully installed the required software we can then proceed with configuring the VPN connection.

2. Go to Network Manager

Go to network manager

3. Add VPN Connection

Add VPN Connection

4. Select Import from file

Select Import from file

5. Choose and open the downloaded .ovpn file from your OpenVPN provider

Select the ovpn file

6. Confirm the imported .ovpn file. You can change the name of the VPN connection if you want to. Click Add to complete

Add the imported OpenVPN settings

7. Once the import and configuration is complete you can now connect to your VPN.

Connect to OpenVPN