Páginas

Follow by Email

segunda-feira, 20 de fevereiro de 2012

Tor no Ubuntu 11.10 Oneiric


Depois de muitas voltas e alterações para conseguir perceber como funciona o Vidalia e o Tor no Ubuntu, consegui entender, que antes do mais é um programa exterior e como tal deverá ser utilizado.

Só cheguei aqui através do blogue o qual mostra efectivamente como é que se faz.

Nada de mais, nem nada do outro mundo é só mesmo seguir as instruções, alterando realmente a distro que se encontra lá referida, no caso:

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

para

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

depois disso vem como é habitual as keys:


gpg --keyserver keys.gnupg.net --recv 886DDD89

gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

e fazer


sudo apt-get update && sudo apt-get install tor tor-geoipdb polipo


Em seguida teremos que editar o polipo:

sudo gedit /etc/polipo/config

fazer a gravação deste para config.old

e copiar ou então alterar manualmente:

001## Basic configuration
002### *******************
003
004# Uncomment one of these if you want to allow remote clients to
005# connect:
006
007# proxyAddress = "::0" # both IPv4 and IPv6
008# proxyAddress = "0.0.0.0" # IPv4 only
009
010proxyAddress = "127.0.0.1"
011proxyPort = 8118
012
013# If you do that, you'll want to restrict the set of hosts allowed to
014# connect:
015
016# allowedClients = "127.0.0.1, 134.157.168.57"
017# allowedClients = "127.0.0.1, 134.157.168.0/24"
018
019allowedClients = 127.0.0.1
020allowedPorts = 1-65535
021
022# Uncomment this if you want your Polipo to identify itself by
023# something else than the host name:
024
025proxyName = "localhost"
026
027# Uncomment this if there's only one user using this instance of Polipo:
028
029cacheIsShared = false
030
031# Uncomment this if you want to use a parent proxy:
032
033# parentProxy = "squid.example.org:3128"
034
035# Uncomment this if you want to use a parent SOCKS proxy:
036
037socksParentProxy = "localhost:9050"
038socksProxyType = socks5
039
040### Memory
041### ******
042
043# Uncomment this if you want Polipo to use a ridiculously small amount
044# of memory (a hundred C-64 worth or so):
045
046# chunkHighMark = 819200
047# objectHighMark = 128
048
049# Uncomment this if you've got plenty of memory:
050
051# chunkHighMark = 50331648
052# objectHighMark = 16384
053
054chunkHighMark = 67108864
055
056### On-disk data
057### ************
058
059# Uncomment this if you want to disable the on-disk cache:
060
061diskCacheRoot = ""
062
063# Uncomment this if you want to put the on-disk cache in a
064# non-standard location:
065
066# diskCacheRoot = "~/.polipo-cache/"
067
068# Uncomment this if you want to disable the local web server:
069
070localDocumentRoot = ""
071
072# Uncomment this if you want to enable the pages under /polipo/index?
073# and /polipo/servers?. This is a serious privacy leak if your proxy
074# is shared.
075
076# disableIndexing = false
077# disableServersList = false
078
079disableLocalInterface = true
080disableConfiguration = true
081
082### Domain Name System
083### ******************
084
085# Uncomment this if you want to contact IPv4 hosts only (and make DNS
086# queries somewhat faster):
087#
088# dnsQueryIPv6 = no
089
090# Uncomment this if you want Polipo to prefer IPv4 to IPv6 for
091# double-stack hosts:
092#
093# dnsQueryIPv6 = reluctantly
094
095# Uncomment this to disable Polipo's DNS resolver and use the system's
096# default resolver instead. If you do that, Polipo will freeze during
097# every DNS query:
098
099dnsUseGethostbyname = yes
100
101### HTTP
102### ****
103
104# Uncomment this if you want to enable detection of proxy loops.
105# This will cause your hostname (or whatever you put into proxyName
106# above) to be included in every request:
107
108disableVia = true
109
110# Uncomment this if you want to slightly reduce the amount of
111# information that you leak about yourself:
112
113# censoredHeaders = from, accept-language
114# censorReferer = maybe
115
116censoredHeaders = from,accept-language,x-pad,link
117censorReferer = maybe
118
119# Uncomment this if you're paranoid. This will break a lot of sites,
120# though:
121
122# censoredHeaders = set-cookie, cookie, cookie2, from, accept-language
123# censorReferer = true
124
125# Uncomment this if you want to use Poor Man's Multiplexing; increase
126# the sizes if you're on a fast line. They should each amount to a few
127# seconds' worth of transfer; if pmmSize is small, you'll want
128# pmmFirstSize to be larger.
129
130# Note that PMM is somewhat unreliable.
131
132# pmmFirstSize = 16384
133# pmmSize = 8192
134
135# Uncomment this if your user-agent does something reasonable with
136# Warning headers (most don't):
137
138# relaxTransparency = maybe
139
140# Uncomment this if you never want to revalidate instances for which
141# data is available (this is not a good idea):
142
143# relaxTransparency = yes
144
145# Uncomment this if you have no network:
146
147# proxyOffline = yes
148
149# Uncomment this if you want to avoid revalidating instances with a
150# Vary header (this is not a good idea):
151
152# mindlesslyCacheVary = true
153
154# Suggestions from Incognito configuration
155maxConnectionAge = 5m
156maxConnectionRequests = 120
157serverMaxSlots = 8
158serverSlots = 2
159tunnelAllowedPorts = 1-65535

Em seguida gravar e fechar o gedit.

E reiniciar o polipo:

sudo /etc/init.d/polipo restart && sudo /etc/init.d/tor restart

para utilizar o famoso Tor, teremos que o baixar daqui.

A partir daqui é relativamente simples, o ficheiro irá parar às transferências, podendo nós movê-lo para outro directório ou abri-lo. Basta abrir o ficheiro, extrair e tudo o que temos que fazer é na realidade correr o programa que se encontra lá.

cd Transferências
cd tor-browser_pt-PT

e os comandos:

./start.tor-browser

este comando irá abrir o Firefox aurora o qual já traz incluido o Tor, e a partir daí boas navegações.





Postar um comentário