Tag Archives: vpn

setup VPN (Virtual Private Network) connection in Ubuntu 12.04/12.10

VPN (Virtual Private Network) connections are great for those who want higher degree of security on the Internet. All of your web traffic will be encrypted. So even if you’re browsing a non-ssl website – your information (e.g login details) is always safe with VPN.

So even if you’re just a web surfer or a heavy torrent downloader you can try VPN to save yourself from the common spy (your ISPs and goverment) and it will also allow you to bypass geographical restrictions (it means if you use a US based VPN then you can browse CBS or Hulu videos from anywhere in the world).

Which VPN provider to choose ?

There are lot of VPN providers, I recommend Private Internet Access (I’m using it – and it’s working great) – it’s good and costs only few bucks a month. If you’re using other VPN provider then you may have to adjust few things according to their recommendation.

Setting up VPN on Ubuntu / Linux Mint

step 1. Go to Network settings and create a new interface for your network – select VPN.


Then a new dialog will appear to select the interface type – select VPN .

New Interface - VPN

step 2. Then select the VPN type – choose PPTP (Point to Point Tunneling Protocol).


step 3. Now – add your VPN account details (gateway, there are various gateway you can choose from here is the list of gateways).

vpn-provider - details

step 4. After adding some basic details for your VPN provider, go to advanced settings and enable MPPE.



step 5. Now – enable VPN and enjoy the higher degree of security ūüôā

That’s all, your VPN setup is done and you can switch between vpn or direct access – just in single click.

Note: using vpn may slow down your browsing experience, it’s not recommended when your¬†connection¬†speed is too slow.

access blocked website

How to Access blocked websites on Ubuntu

Earlier, I wrote an article about Рhow to block a website on Ubuntu and now I feel that I should also share some tips about unblocking a website on Ubuntu (or other GNU/Linux based operating system such as Linux Mint), just for the sake of free speech and liberty. It will also help you in bypassing Internet censorship etc if there are any, based on your geographical location.

Although the post has been written for Ubuntu users but some the tips may work well on other operating system too. I’ve tested these techniques on Ubuntu 10.04/12.04 LTS (Long Term Support) but it should work well with older and newer versions such as 14.04 LTS.

access blocked website

4 ways to unblock websites in Ubuntu

1. Using OpenDNS or Google DNS

OpenDNS can also be used in blocking a website but it is good for unblocking a website if your ISP is blocking access to your favorite sites. OpenDNS servers are far better DNS servers than your ISP DNS servers. They provide 100% uptime with extra security, so it will also boost your web surfing pleasure. But in some cases the latency may be high as compared to your ISP DNS server, so first test it well before completely switching to it.

Setup Open DNS in Ubuntu 12.04/14.04
Go to Network settings – > Configure -> IPv4 Settings -> Automatic DHCP Address Only and enter these IP address in Name servers field, separated by comma.,

[ More detailed instruction about opendns set up on Ubuntu ]

Google DNS IP,

2. Using Proxy Server

Proxy surfing is one of the most popular technique to unblock the websites which are blocked in a particular country. The website are banned based on the I.P address so the proxy surfing can easily bypass the IP filtering mechanism as it acts on the behalf of client (eg. Your Computer). There are many ways to use a proxy server – from Network settings (system level proxy) or browser settings (if you want to use proxy server for specific browser) but first you need access to proxy server. There are free proxy servers available¬†that you can use but I won’t recommend that for anything related to sensitive data (e.g your email, password etc). Most of such free options are not reliable and secure enough in most cases.

Update! ZenMate is offering quite reliable service for free and you can install their extension (available for Chrome, Firefox etc). Check out ZenMate to find out more.


Tor is a free software and open network, the best way to access the Internet using virtual tunnel and thus form an¬†anonymous network that will allow you to surf anonymously over the web – without any restriction. The Tor program isn’t only good for unblocking sites but also for privacy and security reasons, it will also prevent you from Internet Surveillance commonly i.e traffic analysis. It is available for all major platform.

Download Tor¬†(If you’re not sure then go with bundled option)

3. By Editing Hosts File

This method is very simple and works if the site is blocked by counter method or if you know the IP address of the website (you want to unblock). Simply open /etc/hosts file and remove the entry for your favorite websites and flush the DNS cache to propagate the changes.

gksu gedit /etc/hosts

In other case if you know the IP address of target website, which blocked using some other mechanism such as ISP level or something else then add an entry (/etc/hosts) for that website along with the correct IP address. The second method seems to be logically correct – if a domain name is resolved at host level then the lookup process is terminated, so host level dns entry should bypass other DNS filtering e.g at ISP level.¬†Therefore it is expected to work (but I have not tested yet, I’ll let you know if it works), give it a try it may work. But it may not work if the website’s IP address changes frequently – because in that case it would be difficult to update the etc/hosts file manually to reflect the new value of IP address.

Adding a DNS entry in etc/hosts file –


Then execute the following command – (to flush DNS cache)

sudo apt-get install nscd
sudo /etc/init.d/nscd restart

4. Use VPN

If you want to explore web without any restrictions then using VPN would be more easier and simple way to achieve that. Your Internet speed should be decent, plus you should be willing to spend some money on a decent VPN service.

I would recommend Private Internet Access, as I’m using this and I’m pretty happy with the service. It’s one of the most trusted VPN provider, they respect user’s privacy more than anyone else. (they’re anonymous VPN provider and they don’t log any connection)

Signup For Private Internet Access (costs $39.95 per Year or you can choose monthly plan if you wish)

If you need any help in setting up private internet access on Ubuntu, you should read this article on setting up VPN in Ubuntu.

Update! – Added 4th point (VPN section) above.
Image Credit : binsurf 
Reference(s) and Recommended Reading(s)