Powered by Drupal

Setting up TOR (The Onion Router)

yum install privoxy
yum intall tor
cd /etc/privoxy
mv config config.ORIG

vi config

Put the following contents in the config:

# Tor listens as a SOCKS4a proxy here:
forward-socks4a / 127.0.0.1:9050 .
confdir /etc/privoxy
logdir /var/log/privoxy
actionsfile standard.action  # Internal purpose, recommended
actionsfile default.action   # Main actions file
actionsfile user.action      # User customizations
filterfile default.filter

# Don't log interesting things, only startup messages, warnings and errors
logfile logfile
#jarfile jarfile
#debug   0    # show each GET/POST/CONNECT request
debug   4096 # Startup banner and warnings
debug   8192 # Errors - *we highly recommended enabling this*

user-manual /usr/share/doc/privoxy/user-manual
listen-address  127.0.0.1:8118
toggle  1
enable-remote-toggle 0
enable-edit-actions 0
enable-remote-http-toggle 0
buffer-limit 4096

Put the following script in a file called /usr/local/bin/tor-admin:

#!/bin/sh

if [ $# -ne 1 ]; then
        echo
        echo "Usage: $0 "
        echo
fi

if [ "$1" == "start" ]; then
        service tor start
        service privoxy start
elif [ "$1" == "stop" ]; then
        service tor stop
        service privoxy stop
fi

Now make it executable:
chmod 755 /usr/local/bin/tor-admin

Install the TOR Firefox plugin called Torbutton by going to the following in Firefox:
Tools->Add-ons->Get Add-ons
Then type "tor" in the search box and press enter.
Select "Torbutton" and click "Add to Firefox".
Install it and let it restart Firefox.

To test everything do the following:
/usr/local/bin/tor-admin start
In firefox click "Tor Disabled" in the bottom right hand corner.
Now right click on the "Tor Enabled" and select Preferences.
Click on "Test Settings".

When you are done using it click on "Tor Enabled" to disable it.
Then you can stop services with:
/usr/local/bin/tor-admin stop

Category: