tor is the package for the anonymizing proxy. privoxy is a software that allows us to use TOR as a SOCKS 4a proxy. This means that all DNS query are send through the TOR network, in order to have a better anonymizing.

Setup

The tor package does not need any specific configuration. We are going to modify the privoxy configuration. The privoxy configuration file is : /etc/privoxy/config.

We first tell privoxy to use TOR as a SOCKS 4a proxy server :

echo "forward-socks4a / localhost:9050 ." >> /etc/privoxy/config

If you want to use TOR on the local computer, you can ignore the following step. If you want to use TOR through a local network, you must tell privoxy to listen for connections comming from other computers. This is done by the following command line :

Note : This line configure privoxy to listen for connections on every network interfaces. If your computer is directly connected to the internet (without any router), this is probably a bad idea. You should listen only to IP address coming from your local network :