Public domain
1- Install libevent
# wget http://www.monkey.org/~provos/libevent-1.3e.tar.gz
# tar -zxf libevent-1.3e.tar.gz
# cd libevent-1.3e
#./configure
# make
# make install
# ldconfig
2- Install Tor
# wget http://tor.eff.org/dist/tor-0.1.2.17.tar.gz
# tar -zxf tor-0.1.2.17.tar.gz
# cd tor-0.1.2.17
# ./configure --prefix=/usr/local/tor
# make
# make install
# mkdir -p /usr/local/tor/var/log/tor/
# vi /usr/local/tor/etc/tor/torrc
SocksListenAddress localhost
SafeLogging 0
RunAsDaemon 1
Log notice file /usr/local/tor/var/log/tor/notices.log
#Log debug file /usr/local/tor/var/log/tor/debug.log
# /usr/local/tor/bin/tor
# tail -f /usr/local/tor/var/log/tor/notices.log
# tail -f /usr/local/tor/var/log/tor/debug.log
3- Install Privoxy
# vi /etc/passwd
privoxy:*:7777:7777:privoxy proxy:/no/home:/no/shell
# vi /etc/group
privoxy:*:7777:
# wget http://easynews.dl.sourceforge.net/sourceforge/ijbswa/privoxy-3.0.6-stable-src.tar.gz
# tar -zxf privoxy-3.0.6-stable-src.tar.gz
# cd privoxy-3.0.6-stable
# autoheader
# autoconf
# ./configure --prefix=/usr/local/privoxy
# make
# make install
# vi /usr/local/privoxy/etc/config
forward-socks4a / 127.0.0.1:9050 .
listen-address 172.16.20.2:8118
# /usr/local/privoxy/sbin/privoxy /usr/local/privoxy/etc/config
# tail -f /usr/local/privoxy/var/log/privoxy/logfile
BY: Pejman Moghadam
No comments:
Post a Comment