الاثنين، 13 مايو 2013

Tor + Privoxy + Ubuntu 11.04 ou Debian 6.0 Squeeze

Olá minha gente!!
Esta dica é um apêndice ao artigo muito bem elaborado do CABELO, tendo em vista as mudanças na ferramenta Tor e a nova versão do Ubuntu e do Debian.


Instalação

# apt-get install libevent-dev libssl-dev tor privoxy

Configuração

Edite o seguinte arquivo como mostrado abaixo:
# vim /etc/privoxy/config
# Generally, this file goes in /etc/privoxy/config
#
# Tor listens as a SOCKS4a proxy here:
forward-socks4a / 127.0.0.1:9050 .
confdir /etc/privoxy
logdir /var/log/privoxy
# actionsfile standard # 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

Pulo do Gato

O Ubuntu 11.04 vem com o Firefox 4 por default e o Debian, também por default, não vem com nenhuma versão do Firefox instalado. No caso do Tor, para ele funcionar perfeito é necessário a instalação do Firefox 3.6.17
# wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.6.17/linux- i686/en-US/firefox-3.6.17.tar.bz2 # mv firefox-3.6.17.tar.bz2 /opt
# cd /opt
# tar jxvf firefox-3.6.17.tar.bz2
# cd firefox
#./firefox

Feito isso, instale o complemento TorButton diretamente do firefox ou pelo site do próprio projeto https://www.torproject.org/torbut ton/index.html.en
Após estes passos:
# /etc/init.d/polipo restart
# /etc/init.d/privoxy start
# killall tor
# tor

Abra o Firefox, ative o torbutton e veja a mágica.

Obs: o daemon polipo, durante sua configuração já coloca o Privoxy e o Tor para iniciarem durante a inicialização do sistema.
Vlw pessoal, até a próxima.
https://www.torproject.org/index.html.en

ليست هناك تعليقات:

إرسال تعليق