« Back to all guides

Guide to install OpenVPN for Ubuntu

1. Change DNS server

Follow these instructions to change to our DNS servers in Ubuntu

2. Open system settings

The first thing you need to do to connect to our VPN-tunnel is to open system settings. Once you open System settings, click Programs & updates.

Make sure universe is activated. If you receive a message about a software update, please approve it.
If you receive a message asking for authentication, please enter you passwords.

3. Open a new CLI

You can open a new CLI by pressing Ctrl + Alt + t at the same time, or by searching after a CLI.
Enter the following command to install needed components:

sudo apt-get -y install network-manager-openvpn
Restart the network-manager by typing:
sudo service network-manager restart

4. Download the configuration you want
5. Configure the VPN-connection

Click the network icon in the upper right corner of the acivity field and choose VPN-connections -> Configure VPN.
Click Add Choose Import a saved VPN configuration... Open the folder where you isntalled the configuration files, and choose ovpn.conf

6. Enter your username and password and continue configuration

Enter the username and password you used when creating your OVPN account. Go to tab Settings for IPv4, and choose Only automatic (VPN) addresses. You can make the same settings for IPv6 if you are using that.

Go back to VPN-tab and click Advanced. In the new widow that opens, go to the tab named TLS-authentification.
Choose Use another TLS-authentication, and choose the file ovpn-tls.key. The last step is to enter the Key direction to 1. Save all the configurations you have made by clicking OK, och then Save.

7. Connect to OVPN

Click the network icon in the upper right corner of the activity field and choose VPN-connections -> ovpn.
If the connection is successful you will see:

8. Finished

You should now be connected to OVPN and be able to browse the internet safely. To make sure everything was set up correctly, please check the dashboard to verify that you are connected.

Also make sure that you do not have any DNS leaks by going to IPleak.net and check your detected DNS Address.

You should have 46.227.67.134 or 192.165.9.158 as your address if everything is working. If you see another address, follow this guide to fix any DNS leaks.

Platform
Ubuntu 14.04 LTS