How to set up an OpenVPN connection on Ubuntu
In this article, we will be learning how to set up an OpenVPN connection on Ubuntu.
Step 1: Run these two commands
sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnomesudo /etc/init.d/networking restart
Step 2: Go to www.vpnbook.com
Step 3: Click on OpenVPN as shown in the picture below

Step 4: Download any of the certificate bundles. Also save the username and password for later use.
Step 5: Extract the downloaded certificate bundles.
Step 6: Open any one of the .ovpn files.
Step 7: Copy everything between <ca> and </ca> and save it in new file as ca.crt
Step 8: Copy everything between <cert> and </cert> and save it in new file as cert.crt
Step 9: Copy everything between <key> and </key> and save it in new file as key.key
Step 10: Open Network Connections and add a new OpenVPN.

Step 11: Configure the VPN settings as follows:
Gateway: IP address found in the .ovpn file after remote
Type: Password with Certificates (TLS)
Username: Username from Step 2.
Password: Password from Step 2.
User Certificate: certificate.crt file
CA Certificate: ca.crt file
Private key: key.key file

Step 12: Click Advanced. Set the port from .ovpn file after the IP address. Select Use LZO data compression and Use a TCP connection

Step 13: Go to Security tab and set Cipher to AES-128-CBC
Step 14: Save the configuration and connect to the VPN.