How To Install OpenVPN for Ubuntu Linux
Note: Kindly update your Ubuntu Linux to avoid necessary errors, we have tested Linux Ubuntu 13.04 and its working properly.
To update kindly open your terminal and type the following: sudo apt-get update, press enter and upgrading sequence will follow.
Installing the OpenVPN
1. Open the terminal
2. Install the network manager openvpn by typing the following into the termnial:
sudo apt-get install network-manager-openvpn and hit Return or Enter ( Newer ubuntu versions: sudo get-apt install network-manager-openvpn-gnome )
3. The terminal will prompt you with “Do you want to continue?Y/M”.Type “Y” and hit Enter
4. Once the installation is complete you’ll be needing to restart the Network Manager by typing:
“sudo restart network-manager” or “sudo /etc/init.d/network-manager restart” and press Enter
From Ubuntu version 15.4 (Vivid Vervet) the upstart command was replaced by systemd. This means that instead of “sudo restart network-manager” you must now use “sudo systemctl restart network-manager”
You may need to run “sudo apt-get upgrade” first to be able to continue where you left off before typing “sudo systemctl restart network-manager”
5. Download the Earthvpn Certificate Authority (CA) by typing the following and press Enter:
sudo wget -O /etc/openvpn/earthvpn.crt http://www.earthvpn.com/downloads/earthvpn.crt
6.After downloading the certificate, click on the Network Manager Icon (top right menu bar),expand VPN Connections and choose Configure VPN.
A Network Connections window will appear with the VPN tab open and click Add.
7. Choose a VPN Connection Type window will open. Select OpenVPN in the drop-down menu and click Create
8.In the Editing VPN connection window, Enter the following details:
Connection name: Earthvpn or leave it as it is
Gateway: https://www.earthvpn.com/billing/knowledgebase.php?action=displayarticle&id=57 -kindly select one gateway from the said link.
Type: Password
Username: Your EarthVPN Username
Password: Your EarthVPN Password
CA Certificate: browse and select /etc/openvpn/earthvpn.crt
*If you’re having trouble finding the cerficate kindly follow these instructions:
File System->etc->openvpn->earthvpn.crt
8. Click Advanced near the bottom of the window and uncheck all the boxes.Press OK and Save.
If you want to change openvpn connection port you can use one of the below.
We provide OpenVPN / SSL VPN protocol on tcp ports 80 (http), 443 (https), 992, 1194, 8888 and udp ports 53 (dns), 80, 992, 1194 and 8888.
How to Connect
1.Click on the Network Manager icon in the panel bar.
2.Click on VPN Connections
3.Select VPN connection you’ve made.
4.The Network Manager icon will begin spinning. You may be prompted to enter a password. If so, this is your system account keychain password, not your EarthVPN password.
5.It will prompt you with a message that you’re successfully connected to the VPN and you can verify you’re ip by visiting www.ip2location.com