Setting up PPTP VPN access under Ubuntu GNU/Linux.
This tutorial describes how to configure and setup a PPTP VPN connection in Ubuntu GNU/Linux using the network manager.
Firstly, you will need to install the Ubuntu PPTP VPN package, we will go that with you here in this tutorial.
Go to System -> Administration -> Synaptic Package Manager and open Synaptic. Search for ‘vpn’.Press the install button.
Alternative PPTP Install
Another way is to install the Ubuntu network-manager-pptp package is from the command line: sudo apt-get install network-manager-pptp. Now restart dbus with: sudo /etc/init.d/dbus restart
1. Network Manager
Click on the ‘Network Manager’ icon on your desktop bar ‘Notification Area’. This icon can be in the shape of 2 computer screens or arrows or a signal meter if its a wi-fi connection that you use.
2. Configure VPN
Choose ‘VPN Connections’ then click onto ‘Configure VPN’ from the sub menu.
3. Create VPN
Press the ‘VPN’ tab to ensure you are on the correct setup.
4. Add new connection
Press ‘Add’ to add a new connection configuration.
5. Create PPTP
On the new ‘Create VPN Connection’ window, choose ‘Point-to-Point Tunneling Protocol (PPTP)’ as the VPN connection type and click on the ‘Create’ button.
6. Name the connection
Fill in a friendly name for the new connection.
7. Server IP
Enter the IP of the server you are connecting to in the ‘Gateway’ field. You can find the server information in your ‘Welcome to VPNUK’ email or in the ‘Client CP‘ on the VPNUK website.
8. Login Details
Enter your vpnuk login details into the username and password fields.
9. Advanced Options
Click onto the ‘Advanced’ button.
10. PPTP Advanced options
Check all of the ‘Security and compression’ options, then click on ‘OK’.
11. Apply Settings
Click onto the ‘Apply’ button to save your configuration settings.
12. Connection setup complete
Thats it! You can now close the ‘Network Connections’ window.
Connecting to the VPN
Click onto the Network Managfer icon in the taskbar.
2. Choose Connection
Click onto the newly created VPN Connection from the ‘VPN Connections’ sub menu.
Once Connected you will see a small padlock 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: 126.96.36.199 or the Google Public DNS IP addresses: 188.8.131.52 and 184.108.40.206
Click Apply to save the change.