From charlesreid1

Following this here page: http://lifeofpentester.blogspot.com/2013/04/using-tor-and-privoxy-on-kali-debian.html

We'll assume you're running Kali/Tails/Pentoo/Backtrack/know what you're doing...

What This Covers

This article covers how to browse the web anonymously by running web traffic through Privoxy and then through Tor for anonymizing (or, as close as you can get nowadays) our web traffic and location.

For an article covering the use of Privoxy and Tor on a battery-powered wireless router, see Widy/Anonymous Browsing

Installing Software

The first thing we'll install is Tor, a proxy server, and Vidalia, a browser designed to plug in directly to Tor:

$ apt-get install tor torbrowser-launcher vidalia

Tor and Vidalia are the Stargate portal that will lead you into the .onion field of the Dark Web.

Now a couple of other tools mentioned on that page: the first is Privoxy, and the second is Polipo.

$ apt-get install privoxy polipo

Privoxy is an HTTP proxy service.

How it works

Tor will run a proxy server on port 9050. The proxy type is Socks5 (https://en.wikipedia.org/wiki/SOCKS#SOCKS5). Socks is the name for a family of protocols for routing packets from clients to servers, and it's a common way to build proxy servers.

Privoxy runs a proxy server on port 8118. That proxy type is HTTP. This means Privoxy listens for web traffic on this port.

Before we start browsing, we'll connect our browser's HTTP traffic on port 80 to the Privoxy HTTP port on 8118. Then Privoxy will forward HTTP traffic on to the Tor proxy server on port 9050.

We will need to configure our browser to send traffic from port 80 to port 8118.

We will need to configure Privoxy to forward HTTP traffic from port 8118 into Socks5 traffic for the Tor proxy server on port 9050.

Configuring Privoxy-to-Tor

Remember, we're going to configure Privoxy to forward traffic to Tor.

$ vim /etc/privoxy/config

add the line:

forward-socks5 / localhost:9050

There is even an example in the configuration file that has precisely this line, so all you have to do is uncomment it.

Configuring Browser-To-Privoxy

Fire Up Privoxy and Tor

Start both services up:

$ /etc/init.d/tor start
$ /etc/init.d/privoxy start