Hi,
I wrote a How to about Tor and Polipo or Privoxy on Freelink. Have fun and good luck!
EDIT by Moon:
German Translation - Tor mit Polipo oder Privoxy- Tor
- Download and Compile Tor
-> TIP! Use Checkinstall instead of make install to build a deb file: make && checkinstall --install=no -D --default --pakdir=/usr/src --gzman=yes && dpkg -i /usr/src/YOUR PACKAGE
Code:
cd /usr/src
wget http://www.torproject.org/dist/tor-0.2.0.15-alpha.tar.gz
tar xvfz tor-0.2.0.15-alpha.tar.gz
./configure --prefix=/usr CXXFLAGS="-O2 -mtune=arm9tdmi -march=armv5"
make & make install
- Create User, Group and Dirs
Code:
groupadd tor
useradd -g tor tor
mkdir /var/run/tor
mkdir /var/log/tor
chown tor:tor /var/log/tor
chown tor:tor /var/run/tor
- Tor Config
Code:
nano /etc/torrc
ADD:
ExitPolicy reject *:*
StrictEntryNodes 0
User tor
Group tor
PIDFile /var/run/tor/tor.pid
#ControlPort 9051
#CookieAuthentication 1
#CookieAuthFile /var/tor/control_auth_cookie
#CookieAuthFileGroupReadable 1
SocksPort 9050
SocksListenAddress 192.168.X.Y:9050
SocksPolicy accept 192.168.X.0/24
SocksPolicy reject *
DataDirectory /var/tor
RunAsDaemon 1
# Unverified Nodes sind solche, die nicht im Directory bekannt sind
# entry|exit|middle|introduction|rendezvous
AllowUnverifiedNodes middle,rendezvous
FascistFirewall 0
#ReachableDirAddresses *:8080
#ReachableORAddresses *:443
# Logging
SafeLogging 0
Log err syslog
#Log notice file /var/log/tor/notice.log
#Log debug file /var/log/tor/debug.log
#Log err file /var/log/tor/error.log
#Log info file /var/log/tor/info.log
#Log warn file /var/log/tor/warn.log
SafeSocks 1
TestSocks 1
ClientOnly 1
# Map Adress fuer Tor - Hidden Services
# Freenode Tor Onions
mapaddress 10.40.40.40 mejokbp2brhw4omd.onion
mapaddress 10.40.40.41 5t7o4shdbhotfuzp.onion
## Required: what port to advertise for Tor connections.
#ORPort 9001
#nickname privacy4me
# Speed up tor
LongLivedPorts 21, 22, 706, 1863, 5050, 5190, 5222, 5223, 6667, 8300, 8888
CircuitBuildTimeout 5
KeepalivePeriod 60
NewCircuitPeriod 15
NumEntryGuards 8
SocksTimeout 30
- Autostart
Code:
nano /etc/rc.local
ADD:
tor -f /etc/torrc
- Tor DNS Test
tor-resolve google.com 192.168.X.Y:9050
- Polipo
-> ATTENTION: Only the Version on Lenny will work with socks!!!!!! If you are using Etch you must be compile the latest release.
-> Proxy IP:PORT: 192.168.X.Y:8123
- Install Polipo
Code:
aptitude install polipo
- Configure Polipo
Code:
nano /etc/polipo/config
MY CONFIG:
# Socks & Proxy Options
proxyAddress = "192.168.X.Y" # IPv4 only
allowedClients = 127.0.0.1, 192.168.X.0/24
socksParentProxy = "192.168.X.Y:9050"
socksProxyType = socks5
# HTTP Server deaktivieren
disableLocalInterface=true
disableVia = true
# DNSmasq weiterleitung
dnsNameServer=192.168.X.Y
# Header
#censoredHeaders = set-cookie, cookie, cookie2, from, accept-language, x-pad
#censorReferer = maybe
# Disable on-disk cache and Webserver
cacheIsShared = false
diskCacheRoot = ""
localDocumentRoot = ""
# Disable Cookie Caching
dontCacheCookies = true
# small RAM Optionen
chunkHighMark = 819200
objectHighMark = 128
# Speed up
dnsQueryIPv6 = no
- Start Polipo
Code:
/etc/init.d/polipo start
- Privoxy
-> I had DNS Problems with Privoxy and so i'm using Polipo.
-> Proxy IP:PORT: 192.168.X.Y:8118
- Tor Hidden Services / Tor Addons
- IRC freenode (i'm using Pidgin)
Proxy-Typ: Socks5
IP: 192.168.X.Y
Port: 9050
Freenode:
IP: 10.40.40.40
Port: 6667
IRC Channel: #linkstationwiki
- ICQ/MSN/AIM/YAHOO (i'm using Pidgin)
Proxy-Typ: Socks5
IP: 192.168.X.Y
Port: 9050
- FireFox Plugin: TorButton
Download and install: https://addons.mozilla.org/de/firefox/addon/2275
- Tor Control - Vidalia on Ubuntu
-> Install Vidalia
Code:
cd /usr/src
wget http://ieloucau.googlepages.com/vidalia_0.0.16-1_i386.deb
dpkg -i vidalia_0.0.16-1_i386.deb
Configure Tor for remote control connection
-> Get your Hash Password and copy it to HashedControlPassword (next Step)
Code:
tor --hash-password
-> Edit your Tor config
Code:
nano /etc/torrc
ADD:
ControlPort 9051
ControlListenAddress 192.168.X.Y:9051
HashedControlPassword YOUR-TOR-HASH-PASSWORD
Start and Config Vidalia
Control IP/Port: 192.168.X.Y:9051
Authendification: Password
- rtorrent
-> Look at my How To [How to] rtorrent with xmlrpc-c, lighttpd and ntorrent
Code:
login torrent
nano ~/.rtorrent.rc
ADD:
# Privoxy 192.168.X.Y:8118
# Polipo 192.168.X.Y:8123
http_proxy = http://192.168.X.Y:8123/
- Troubleshooting
Good luck!
Greetz Moon