William Stone III‎ > ‎Geek Cred‎ > ‎Snippets‎ > ‎

The Onion Router (Tor) on Back|Track 5 R3

posted Sep 8, 2012, 2:48 PM by William Stone   [ updated Nov 18, 2012, 3:02 PM by William Stone ]

HowTo

These instructions are those that I used to install and configure Tor on my system running Back|Track Linux 5 R3.

Configuration Used

Add Software Sources

  1. Log in as a non-privileged user.

  2. Open a Terminal window.

  3. Enter the command:

    sudo su -

  4. Enter the command:

    nano /etc/apt/sources.list

  5. Add the following line:

    deb http://deb.torproject.org/torproject.org lucid main #The Onion Router

  6. Exit the editor saving the configuration file.

  7. Add the GPG key by entering the commands

    gpg --keyserver keys.gnupg.net --recv 886DDD89
    gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Install the Required Software


Tor and Privoxy

Enter the commands:

    apt-get update
    apt-get install tor tor-geoipdb privoxy



Install the add-on as directed.

Configure the Required Software

Privoxy

  1. Enter the command:

    nano /etc/privoxy/config

  2. Locate the section reading "5.2. forward-socks4, forward-socks4a and forward-socks5".  Scroll to the end of the section and add the following lines:

    forward-socks4a / 127.0.0.1:9050 .

  3. If your system is behind a firewall or NAT, you will also need to add the following line:

    forward [network]/ .

    where [network] is your current network.  Examples might be 192.168.*.*, 172.16.*.*, 10.*.*.*, etc.

ProxyAnywhere

  1. In Chrome, right-click the ProxyAnywhere icon and choose Options.

  2. On the ProxyAnywhere Options page, under Proxy Server, make the following changes:
    1. Change Protocol to read Socks4

    2. Change Port to read 9050

  3. Click Save at the bottom of the page.

Your Firewall

If you are behind a firewall or NAT, you will need to configure your firewall.  you will need to forward port 9050 to port 9050 on your system running Back|Track.

Start the Daemons

Enter the following commands: 

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


Test

  1. Point Chrome to:

    http://cmyip.com

    The site should show your Internet-rout-able IP address.

  2. Click the ProxyAnywhere icon in Chrome to activate Tor.

  3. Reload http://cmyip.com

    This should show an IP address other than that found in Step 1.

  4. Point Chrome to:

    http://check.torproject.org

    The site will show a success message if Tor is active.
If the tests were successful, you may now activate and de-activate Tor in Chrome via the ProxyAnywhere icon.