We are going to cover a much awaited topic for our Linux users and something that we haven't seen explained in any other VPN sites: How to easily install and run L2TP/IPSec VPN on Ubuntu 11.04.
We will be using Werner Jaeger l2tp-ipsec-vpn software.
First we install l2tp-ipsec-vpn from a terminal window and reboot the computer so all changes are applied:
sudo apt-add-repository ppa:werner-jaeger/ppa-werner-vpn
sudo apt-get update
sudo apt-get install l2tp-ipsec-vpn
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
sudo shutdown -r now
The gsettings line is to allow the systray L2TP/IPSec configuration/connection icon to appear on System Tray (just necessary for default Ubuntu Natty Narwhal desktop manager, Unity). More info here.
Now we should have a new icon in the System Tray area showing two computers. This is the L2tp IPSec VPN icon.
We right click on it, choose Edit Connections.
We add a new connection named i.e. TUVPN_L2TP_IPSec.
We configure first Tab IPSec as follows:
So we just need to type the desired VPN server we want to connect to and the pre-shared key where we type 'tuvpn' without the quotes.
The L2TP Tab we leave it as it is, no change.
Finally on the PPP Tab we click on Allow these protocols and we mark Microsoft CHAP Version 2. We also enter our VPN username and password:
We don't change any other settings. We are ready to go!
So now we go back to the L2tp IPSec VPN icon, we choose the newly created L2TP connexion and that's it:
You should now be connected to TUVPN.COM via L2TP/IPSEC from your Ubuntu 11.04!: