Friday, February 05, 2010

Anonymous Internet browsing using Ubuntu 9.10, Tor and Firefox

"Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location. Tor works with many of your existing applications, including web browsers, instant messaging clients, remote login, and other applications based on the TCP protocol." [taken from Tor website]

Basically we need to install three things:
  1. Polipo - a proxy server,
  2. Tor, the onion router, and 
  3. Torbutton -a Firefox add-on.
Bellow are steps to install these three things.

Install Polipo, a caching web proxy
sudo apt-get install polipoSetup polipo
Manually open /etc/polipo/config and copy-paste config details here or sudo sh -c "wget 'https://svn.torproject.org/svn/torbrowser/trunk/build-scripts/config/polipo.conf' -O /etc/polipo/config"After this restart polipo sudo /etc/init.d/polipo restart Add Tor repository
sudo sh -c "echo 'deb http://deb.torproject.org/torproject.org karmic main' >> /etc/apt/sources.list" Add Tor repository GPG keygpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
Update repositories and install Torsudo apt-get update
sudo apt-get install tor
Install Torbutton (an add-on to firefox)
Just go to website of Torbutton and install it.

Check if you are anonymous
Enable tor in Firefox using the Torbutton, and go to Are you using Tor?If everything is OK you should see the following:
Additionally, you can install vidalia, a GUI for Torsudo apt-get install vidalia
Now, using vidalia you can create a new identity (i.e. a new IP) whenever you want: