Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] Tor + Polipo mit Zugriff aus dem LAN  (Read 1015 times)

jackyohh

  • Guest
[DE] Tor + Polipo mit Zugriff aus dem LAN
« on: 2015/06/15, 00:36:41 »
Hi,

ich möchte gern Tor und den Proxy Polipo auf meinen Server einrichten, sodass die Rechner im lokalen Netzwerk ihren Netzwekverkehr darüber leiten können.
Trotz einiger Anleitungen beiße ich seit Stunden auf Granit. Vielleicht könnt ihr mir ja weiterhelfen :D

folgendermaßen bin ich vorgegangen...

Code: [Select]
apt-get install tor torsocks polipo
... in der Tor-Konfig. wurden diese Zeilen eingetragen, alles andere ist auskommentiert.
Code: [Select]
$ /etc/tor/torrc
SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
SocksListenAddress 127.0.0.1 # accept connections only from localhost
SocksListenAddress 192.168.1.102 # accept connections from the  internal interface as well

SocksPolicy accept 192.168.1.0/24 # accept connections from the local network
SocksPolicy accept 127.0.0.1 # accept local connections
SocksPolicy reject * # by default, reject all connections that have not matched one of the rules above

*192.168.1.102 ist die IP des Servers und 192.168.1.0/24 ist das lokale Netzwerk

die polipo Konfig. hab ich wie folgt abgeändert.
Code: [Select]
logFile = /var/log/polipo/polipo.log

proxyAddress = "0.0.0.0" # IPv4 only
allowedClients = 127.0.0.1, 192.168.1.0/24

socksParentProxy = localhost:9050
socksProxyType = socks5

Tor scheint vom server aus zu funktionieren:
Code: [Select]
curl --socks5 127.0.0.1:9050 http://checkip.dyndns.org/ | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
gibt mir 77.109.141.138, also eine "Tor-IP", aus

aber bereits vom Server aus kann ich mittels Proxy keinen Datenverkehr an Tor leiten
Code: [Select]
curl --socks5 127.0.0.1:8123 http://checkip.dyndns.org/ | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
... die Ausgabe dauert eine halbe Ewigkeit und bricht irgendwann mit "curl: (7) Unable to receive initial SOCKS5 response." ab.
/var/log/polipo/polipo.log und /var/log/tor/log spucken derweil keine einzige Fehlermeldung aus. :(

PS: mit privoxy klappts übrigens auch nicht :(