The News‎ > ‎

Anonymous browsing with Ubuntu, TOR, and a proxy of your choice

posted Aug 26, 2012, 4:48 AM by Leigh Williams   [ updated Aug 26, 2012, 5:01 AM ]
I've been using TOR on my Samsung Galaxy Tab 10.1 (p7500) for some time now, and the experience has been great. So I decided to also install TOR on my Laptop running Ubuntu. Here are the steps (please see the official TOR installation guide as things might change). This guide is for Ubuntu 12.04.

Please make sure you can legally use anonymizing networks in your country before using this guide. This will also NOT anonymize Torrent or other P2P traffic! TOR will also most probably block any P2P traffic.

You will most probably see a slight increase in latency, but this is mostly due to privoxy cashing the entire page before presenting it to your browser. Use Polipo instead if this delay is very high as Polipo streams content to your browser as it receives it.

Privoxy adds add filtering out of the box. You can also configure Polipo to do the same. The privoxy configuration might be incomplete as it only gives the requirements to get it running with TOR. Use Google to change the privoxy config to suit your needs. 
Go to p.p in your browser to configure privoxy and see statistics.

Google for "what is my IP" to see what your IP currently is.

1.) Dont install the TOR from the Ubuntu Software Center as it has not been kept up to date reliably. Add the TOR repository to your sources.list file
a.) sudo gedit /etc/apt/sources.list and add the following line "deb http://deb.torproject.org/torproject.org precise main" without the quotes.
b.) Add the torproject.org GPG repository key: (just copy and paste the first two lines to a terminal window)
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

c.) Now update your packages: (again you can copy and paste the first line, and then the second line)
sudo apt-get update
sudo apt-get upgrade

2.) Now issue the following command:
sudo apt-get install tor tor-geoipdb (see http://www.ubuntuupdates.org/package/maverickbleed/maverick/main/base/tor-geoipdb for what the geoipdb package is)

3.) Now, Polipo is the recommended proxy, but I prefer privoxy. I would recommend Polipo but I like privoxy more.
a.) sudo apt-get install privoxy

4.) Add the following "forward-socks4a / localhost:9050 ." to the provoxy configuration file: (include the . at the end)
sudo gedit /etc/privoxy/config (and paste the line above)

This will forward all the requests to TOR Socks listening on port 9050.

5.) In Google Chrome, (or Firefox) configure your HTTP, HTTPS and FTP proxies to use 127.0.0.1 as the IP address for the Proxy, and port 8118 as the Proxy port

6.) You can issue these commands to see if TOR and Privoxy is running:
ss -aln | grep 9050
ss -aln | grep 8118

7.) If it is not running, or if the proxy is not working, start the TOR and privoxy services:
sudo /etc/init.d/tor start
sudo /etc/init.d/privoxy start

8.) Google for "what is my IP" and see if it changes every so often.

Only use this guide for legal purposes!

Thanks to these guys for making this post possible:
Comments