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!:

And enjoy the best vpn service you will find on the net! Remember that L2TPIPsec will also work with our Dedicated IP service so you can also get your uk vpn or usa vpn working with L2TP!





July 26th, 2011 at 6:21 pm
[...] Add comments var addthis_product = 'wpp-254'; After our previous very successful post about L2TP/IPSec on Ubuntu 11.04, we will cover another topic not easy to find clearly explained. How to configure and use OpenVPN [...]
September 14th, 2011 at 11:09 am
Thanks! I don’t know yet if the VPN works, but your gsettings command line made a lot of hidden icon show up!
September 16th, 2011 at 10:19 pm
Shoot!
That gsettings setting made all other icons inaccessible. So, how can I run the l2tp configuration without systray icon?
October 9th, 2011 at 11:57 am
I can follow all the instructions except that the icon didn’t show up on the systray. Any suggestions?
October 9th, 2011 at 12:08 pm
I can find two applets, one is L2tp Ipsec VPN Applet and the other is L2TP Ipsec Manager. Apparently the L2tp Ipsec VPN Applet controls the icon this software which should be seen on the systray. But when I clicked it, the icon quickly flashed and then disappeared… Is that only happened on me or anyone else encountered the same problem?