Setup VPNUK OpenVPN on Linux
This tutorial describes how to configure and setup an OpenVPN connection in Ubuntu GNU/Linux using the network manager.
Firstly, you will need to install the Ubuntu OpenVPN VPN package, we’ll go through that with you here in this tutorial.
Download the VPNUK config files
1. Install OpenVPN
Install the OpenVPN package is from the command line: sudo apt-get install network-manager network-manager-openvpn
2. Download Config Files
Download and extract the config files then save them to a safe location. The files are available for download from here: OpenVPN config files
3. Configure VPN
Click onto the ‘Network Manager’ icon to open the network connections overiew, then click onto ‘Configure VPN’ from the ‘VPN Connections’ sub menu.
4. Add New Connection
Click onto the ‘Add’ button to begin the OpenVPN installation.
5. Choose Connection Type
Click onto ‘OpenVPN’ from the available connection types dropdown and then click onto the ‘Create’ button.
6. Connection Name
Enter a friendly name for the new OpenVPN connection.
7. Gateway IP Address
Enter a server IP or Address of the server you would like to connect to. Clients on our Shared IP accounts can enter any of our servers. If you have an account on the Dedicated IP platform please enter the IP that corresponds to your unique IP Address. You can find the server information in your ‘Welcome to VPNUK’ email or in the ‘Client CP‘ on the VPNUK website.
8. Authentication type
Select ‘Password’ as the authentication type.
9. Login Details
Enter your VPNUK login details into the ‘Username’ and ‘Password’ fields.
10. CA Certificate
Click onto the CA Certificate drop down and go to the download location of the config files you downloaded earlier.
11. Select CA file
Select the ‘ca.crt’ file.
12. Advanced Options
Click onto the ‘Advanced’ button.
13. General Options
Click the option to ‘Use LZO data compression.
Note: This connection will be setup using the OpenVPN default UDP protocol. You can also use TCP over port 443, 80 or 8008
14. General Options
Click ontyo the TLS Authentication tab.
15. General Options
Locate the ta.key file from the OpenVPN config folder you downloaded earlier.
16. Key Direction
Set the Key Direction to 1.
17. Close Network Connections
Thats It!! Click onto ‘Close’ to exit the Network Connections overiew. Your OpenVPN connection has now been setup.
18. Connecting to VPNUK through OpenVPN
Go to the Network Manager and Click onto the VPN connection friendly name you have just created from the ‘VPN Connections’ sub menu.
19. Connection Icon
Once connected to the VPN a small padlock will appear on the Network Manager icon.
ISP DNS Hijack / DNS Leak Protection
Some ISPs will attempt to hijack your DNS settings which hinders the VPN connection from functioning correctly. If you find that your VPNUK connection does not route your traffic correctly you can try changing your Public DNS server to the VPNUK DNS server or to an alternative like Google DNS.
1. Go to the VPNUK connection and click Edit, in the window that appears, select the IPv4 Settings tab.
If the selected method is Automatic (DHCP), open the dropdown and select Automatic (DHCP) addresses only instead. If the method is set to something else, do not change it.
In the DNS servers field, enter the VPNUK Public DNS server: 188.8.131.52 or the Google Public DNS IP addresses: 184.108.40.206 and 220.127.116.11
Click Apply to save the change.