L2TP/IPSec and PPTP on Linux
Posted by Uli Brügmann on 25 February 2013 11:58 AM
L2TP (Layer 2 Tunneling Protocol) with IPSec (Internet Protocol Security) and PPTP (Point to Point Tunneling Protocol) are VPN protocols for devices like Smartphones and Tablets as well as for operating systems like, in this case, Linux. Depending on your distribution, PPTP is usually built in, while L2TP has to be installed by you. Furthermore you should know that PPTP has already been compromised and therefore should only be used, if none of the other options (L2TP/IPSec or OpenVPN) is available.
Visit your CyberGhost VPN online account.
Log-in with your user data and click in the left sided menu on the entry 'Smart Phones, Tablets & Other Devices'.
Now click on 'Other Devices'.
Specify the protocol you want to use:
A L2TP or PPTP connection can naturally just be configured with exactly one server address. So the next thing to do is to choose the country you want to surf from (the server inside this country will be chosen automatically by CyberGhost as being the most convenient available server).
Now chose your platform, 'Linux' in this case.
note down the following data, which you will need to configure your L2TP or PPTP connection:
Now start your Linux L2TP/IPSec or PPTP configuration. The way to get to the right settings will most certainly vary between different distributions, but the main steps are nearly everywhere more or less identical.
First open your general settings, e.g. with the Chakra distribution via 'Start menu > System Settings'. Here you will find most certainly a section called 'Network Settings'. That's the one to open. Using Ubuntu it's 'System > Settings > Network Connections'.
Now add a network connection. Here with Chakra you activate the tab 'VPN', click on 'Add' and choose the type of connection you want to add, in this case 'L2TP/IPSec' or 'PPTP'. If the type is missing, your distribution lacks it and it needs to be installed first.
Now click on 'Activate connection with Desktop' and 'Next'.
Choose a description or name of your new connection, which should reflect the country of the server you want to surf from (e.g. ‘CyberGhost VPN US’). The other settings:
Click on ‘OK’, when you’re done.
Now your new connection should be part of your list of network connections which should also be accessible via the 'System Settings' of your distribution. Often these settings can also be accessed through the task bar.
If you want to have a L2TP/IPSec or PPTP VPN connection for each country CyberGhost operates server in, please repeat all steps for each of the other addresses CyberGhost provides you with, when choosing the country.