L2TP/IPSec VPN Configuration on Ubuntu 11.04 Natty Narwhal

VPN HowTo Add comments

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:

L2TP/IPSec VPN Configuration on Ubuntu 11.04 Natty Narwhal - IPSec Tab

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:

L2TP/IPSec VPN Configuration on Ubuntu 11.04 Natty Narwhal - PPP Tab

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:

L2TP/IPSec VPN Configuration on Ubuntu 11.04 Natty Narwhal - Connection


You should now be connected to TUVPN.COM via L2TP/IPSEC from your Ubuntu 11.04!:

L2TP/IPSec VPN Configuration on Ubuntu 11.04 Natty Narwhal - Verification

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!

Get the Best VPN NOW!

5 Responses to “L2TP/IPSec VPN Configuration on Ubuntu 11.04 Natty Narwhal”

  1. Blog TUVPN.COM - OpenVPN on IPhone with Guizmovpn Says:

    […] 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 […]

  2. karatedog Says:

    Thanks! I don’t know yet if the VPN works, but your gsettings command line made a lot of hidden icon show up!

  3. karatedog Says:

    That gsettings setting made all other icons inaccessible. So, how can I run the l2tp configuration without systray icon?

  4. T Says:

    I can follow all the instructions except that the icon didn’t show up on the systray. Any suggestions?

  5. T Says:

    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?

Leave a Reply


Get Your VPN NOW!

©2011 TUVPN.COM. All rights reserved.