Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Sep 03, 2010 4:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 

Is the How To good and could it helps you?
yes 75%  75%  [ 3 ]
no 0%  0%  [ 0 ]
Ja 25%  25%  [ 1 ]
Nein 0%  0%  [ 0 ]
Total votes : 4
Author Message
 Post subject: [How to] Tor with Polipo or Privoxy on Freelink
PostPosted: Sun Dec 30, 2007 12:34 pm 
Offline
Newbie

Joined: Fri Sep 07, 2007 6:12 pm
Posts: 30
Location: Cologne, Germany
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

  1. 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


  2. 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
         


  3. Privoxy
    -> I had DNS Problems with Privoxy and so i'm using Polipo.
    -> Proxy IP:PORT: 192.168.X.Y:8118

    • Install Privoxy
      Code:
         aptitude install privoxy
         


    • Configure
      Code:
         nano /etc/privoxy/config
         
         ADD:
         listen-address 192.168.X.Y:8118
         forward-socks4a / 192.168.X.Y:9050 .
         


    • Start Privoxy
      Code:
         /etc/init.d/privoxy start
         


  4. 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/
         


  5. Troubleshooting

Good luck!

Greetz Moon

_________________
LSPro, Freelink, 2.6.22
Meine Tutorials auf deutsch


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group