tor + privoxy: anonymous browsing on Ubuntu

tor_compWhile the tor-browser (a firefox mod) uses the Tor network for anonymity by default, you can also configure your favourite browser or stock Firefox to use the Tor network. The tor network is a bandwidth sharing network with advanced algorithms to route your data anonymously. Privoxy is a proxy server with content filtering and advertisement blocking. This article explains how to use both together to run an anonymous proxy on Ubuntu. From there, it’s just a matter of browser configuration to use the proxy.

It’s always advisable to use the latest stable version of Tor. To install it on Ubuntu Trusty, run:

$ echo "deb trusty main" | sudo tee -a /etc/apt/sources.list.d/torproject.list > /dev/null
// Note: replace trusty above with the codename of the Ubuntu release you have
$ gpg --keyserver --recv 886DDD89
$ gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install tor

Install privoxy:

$ sudo apt-get install privoxy

Edit /etc/privoxy/config and uncomment the following line:

forward-socks5   /      .

Start both the services:

$ sudo service tor start
$ sudo service privoxy start

Check the status of both:

$ sudo service tor status
* tor is running
$ sudo service privoxy status
* privoxy is running

Check if privoxy is listening on port 8118:

$ netstat -ant | grep 8118
tcp        0      0*               LISTEN

Check that your IP address is different from the one assigned by your ISP:

$ export http_proxy="http://localhost:8118"
$ curl ; echo
$ whois

To use your own anonymous proxy, add the following settings to your browser:

Port: 8118

To use rTorrent over tor, add the following to ~/.rtorrent.rc:

http_proxy =
proxy_address =

Ref: Tor on Arch wiki.

2 thoughts on “tor + privoxy: anonymous browsing on Ubuntu”


Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s