Online tech tip guides, help, how to, reviews, and resources.
Latest Tweet
Subscribe via RSS
Subscribe via E-mail

Free Ubuntu VPN with HotSpot Shield (My Attempt)

HotSpot Shield is a free VPN service for Windows and Macintosh users alike. But one thing they did not allow was for linux users like Ubuntu. And so today, I attempt to follow the guide that Markus Thielman has made and published on the web.

VPN’s are useful especially when your geographic location may affect what content you can view on a website. So for those of you who would like to view sites like Hulu, this is a service you should consider.

From: Markus Thielman

The service uses L2TP (without IPSEC). Funny enough, this seems to be the worst supported protocol on Ubuntu, when it comes to easy configuration. Neither Network-Manager, nor KVpnc do support a simple setup.

If you’re willing to use the terminal and a text editor, here’s how you do it:

Before you configure your local computer, visit the Hotspot Shield for iPhone Website. Click on “Get Account ID” and save the information you’re getting. In fact, you’ll only need you username/password and the server IP. Don’t forget to replace these credentials while editing the xl2tpd config as follows:

1) Install xl2tpd
sudo apt-get install xl2tpd

2) Edit /etc/xl2tpd/xl2tpd.conf and add
[lac hotspotshield]
lns = HotSpotShieldServerIP
require chap = yes
refuse pap = yes
require authentication = yes
; Name should be the same as the username in the PPP authentication!
name = YourHotSpotShieldUsername
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd.client
length bit = yes

3) Create /etc/ppp/options.l2tpd.client with the following content
idle 1800
mtu 1410
mru 1410
connect-delay 5000

4) Edit /etc/xl2tpd/l2tp-secrets, /etc/ppp/chap-secrets and /etc/ppp/pap-secrets, add
"YourHotSpotShieldUsername" HotSpotShieldServerIP "YourHotSpotShieldUsername"

5) Start the deamon
sudo /etc/init.d/xl2tpd start

6) Connect to HotSpot Shield
sudo su
echo "c hotspotshield" > /var/run/xl2tpd/l2tp-control
route add -net dev ppp0

7) Disconnect from HotSpot Shield
sudo su
echo "c hotspotshield" > /var/run/xl2tpd/l2tp-control

If you’re running AdBlock Plus, you might notice some empty space on top of every page you’re visiting. That’s the HotSpot Shield advertising bar, which shows random commercial to finance their service. So either disable Firefox to allow AnchorFree to continue the service, or add “*” to your rule set.

Okay so after following that guide here are my results, it unfortunately did not work (I could not connect).

root@kalvster:/home/kalvster# xl2tpd -D
xl2tpd[13446]: setsockopt recvref: Protocol not available
xl2tpd[13446]: L2TP kernel support not detected.
xl2tpd[13446]: xl2tpd version xl2tpd-1.2.0 started on kalvster PID:13446
xl2tpd[13446]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[13446]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[13446]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[13446]: Forked again by Xelerance ( (C) 2006
xl2tpd[13446]: Listening on IP address, port 1701

So it appears they are filtering non-iPhone connections and so using this method is not possible.

My other options now are:

  • Using virtualization software
  • Connecting through a server that has HotSpot Shield already set up.

Any of you who have any other suggestions, please comment. I am sure the comments are working!

If You Enjoyed This Post:
Want automatic updates? Subscribe to my RSS feed or Get Email Updates sent directly to your inbox!
Delicious Digg Facebook Reddit StumbleUpon Technorati Twitter Google

2 Responses... Add Yours

  1. honestly ubuntu is not my favorite os , i just wanna learn more about ubuntu before decide to try them out. what do you think about windows seven ?

Leave a Comment