Jumat, 14 September 2012

INSTALL TOR AND PRIVOXY ON LINUX


Installation of Tor and Privoxy


You will first need to add the repository from which you wish to install Tor and Privoxy. Open the /etc/apt/sources.list file (or your preferred config editor) with vi:

vi /etc/apt/sources.list


Press the i (insert key), and add the following line:

deb http://deb.torproject.org/torproject.org lucid main






Click Esc to stop editing, then :wq [enter] or ZZ (shift zz) to write the changes to the file and quit vi.

Run the following commands :
 

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










During installation you will be asked whether you want to continue. If there are no strange warnings and it resembles this output, answer Y.

Run the following commands to install tor and privoxy:


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


apt-get install privoxy






























Privoxy configuration


Open /etc/privoxy/config with vi (or your preferred config editor)


vi /etc/privoxy/config


Scroll down. In section 4.1, check that the listen address is 127.0.0.1:8118













If it is not, change it by pressing the A (shift a) key or i key (or any other insertion way), making the necessary changes, and pressing the esc key when you are done. Scroll down further to section 5.

When using socks5 on port %d, your application is giving Tor only an IP address. Applications that do DNS resolves themselves may leak information. So using Socks4A instead is a good idea. Read more on thathere.

In section 5.2, set forward privoxy to TOR (Do NOT forget that point at the end)

forward-socks4a / 127.0.0.1:9050 .









The following two configuration changes are performance improvements.
In 6.4 change keep-alive-timeout 300 to keep-alive-timeout 600 and in 6.6 change socket-timeout 300 to socket-timeout 600:












Click Esc to stop editing, then :wq [enter] or ZZ (shift zz) to write the changes to the file and quit vi.


Starting (and stopping) privoxy


Run the command:

/etc/init.d/privoxy start



You can run the same command but then with "stop" instead of "start" if you wish to stop privoxy. If you do, and you have already configured clients, connections will be refused.


System wide configuration of clients


Configure your clients with IP address 127.0.0.1 and port 8118





















Check that it's working:


https://check.torproject.org/
















CMIIW












































Tidak ada komentar:

Posting Komentar