I think that there are way TOO much Tor Client.
We need more people who provide Tor Server. :D
TOr: http://tor.eff.org/
Printable View
I think that there are way TOO much Tor Client.
We need more people who provide Tor Server. :D
TOr: http://tor.eff.org/
does this make bittorrent use anonymous?
I've used this before, and it's pretty awesome. However, I'm having problems getting it running now....
When I start it via 'sudo /etc/init.d/tor start' and 'sudo /etc/init.d/privoxy start' it says all is well. However, trying to connect to the proxy with Firefox fails. On top of that, running an nmap on my machine shows ports 9050 and 8118 are both closed.
I have tried killing it via the init scripts and running 'sudo killall -9 tor' and 'sudo killall -9 privoxy' and confirming that they both stopped.
Any ideas?
duch : thnx for the howto. Please also put the links I gave you in there.
Make sure you put the line for foward socks in your privoxy config, the line with the dot(.) at the end. Running nmap from a different IP on your machine should show them closed, when privoxy starts it say "listening on port 8118 for local connections only" so I think it is supposed to look like that. just try and start tor and privoxy without the /etc/init.d, Just run "tor" and "privoxy" from a terminal and see what happensQuote:
Originally Posted by skeezer65134
Yes, I added that line, and yes I was running nmap from the same machine that I installed Tor and Privoxy on (this one).Quote:
Originally Posted by Dr. Nick
Code:# Sample Configuration File for Privoxy
#
# Copyright (C) 2001-2004 Privoxy Developers http://privoxy.org
#
# $Id: config,v $
#
# Added for Tor support
forward-socks4a / localhost:9050 .
Running on their own I get this:
I filled in {$PWD}, but basically it would just look for the config file anywhere that I tried to run it from.Code:$ sudo tor
Dec 02 08:58:49.920 [notice] Tor v0.1.0.15. This is experimental software. Do not rely on it for strong anonymity.
Dec 02 08:58:49.977 [warn] /var/lib/tor is not owned by this UID (0). You must fix this to proceed.
Dec 02 08:58:49.977 [err] options_act(): Couldn't access/create private data directory /var/lib/tor
Dec 02 08:58:49.978 [err] init_from_config(): Acting on config options left us in a broken state. Dying.
$ sudo privoxy
Dec 02 08:59:03 Privoxy(b7d606c0) Fatal error: can't check configuration file '/{$PWD}/config': No such file or directory
Dec 02 08:59:03 Privoxy(b7d606c0) Fatal error: can't check configuration file '/{$PWD}/config': No such file or directory
$
Running 'ps aux' I see that they run as the following:
Tor - /usr/sbin/tor
Privoxy - /usr/sbin/privoxy --pidfile /var/run/privoxy.pid --user privoxy /etc/privoxy/config
So, this is how I ran the both of them (this time, as root, and not just with sudo):
OK, so Privoxy starts, but not Tor (which is odd because Tor was working last night). Despite it saying it's working and listenning on port 8118, nmap still shows nothing. Odd indeed. Maybe not..... when I do 'telnet localhost 8118' it logs in. Typeing "help" results in it exiting saying "HTTP/1.0 400 Invalid header received from browser". Maybe it really is running after all.Code:# /usr/sbin/tor
Dec 02 09:09:24.772 [notice] Tor v0.1.0.15. This is experimental software. Do not rely on it for strong anonymity.
Dec 02 09:09:24.833 [warn] /var/lib/tor is not owned by this UID (0). You must fix this to proceed.
Dec 02 09:09:24.834 [err] options_act(): Couldn't access/create private data directory /var/lib/tor
Dec 02 09:09:24.834 [err] init_from_config(): Acting on config options left us in a broken state. Dying.
# /usr/sbin/privoxy --pidfile /var/run/privoxy.pid --user privoxy /etc/privoxy/config
Dec 02 09:09:39 Privoxy(b7d786c0) Info: loading configuration file '/etc/privoxy/config':
Dec 02 09:09:39 Privoxy(b7d786c0) Info: Privoxy version 3.0.3
Dec 02 09:09:39 Privoxy(b7d786c0) Info: Program name: /usr/sbin/privoxy
Dec 02 09:09:39 Privoxy(b7d786c0) Info: Listening on port 8118 for local connections only
#
Starting Tor from the init script (because it still fails from the command line) gives me:
This leads me to believe that it's running. Again, using telnet to connect works, but it exits on any command (as I guess I'd expect since I don't know what commands to use).Code:# /etc/init.d/tor start
* Starting tor daemon (tor)... Dec 02 09:12:39.343 [notice] Tor v0.1.0.15. This is experimental software. Do not rely on it for strong anonymity.
[ ok ]
#
So, time to fire up Firefox. Setting it to use 127.0.0.1:8118 results in it connecting to Privoxy now, but Tor is still MIA. Instead Privoxy results in a 404 error regardless of what page I try to load.
So, I'm half way there.... kinda. Still seems odd that the init script doesn't want to load it right. I'm missing something, what is it?! The Official Doc only says to add that one line to the Privoxy config and leave the rest alone, which I have done before. This was so easy to set up on Gentoo, and it should be just as easy here. Any more ideas?!Code:No such domain
Your request for http://www.google.com/ could not be fulfilled, because the domain name www.google.com could not be resolved.
This is often a temporary failure, so you might just try again.
Gah! Now it magically workswhen running from the init scripts! What is this, Windows with it's "I work sometime, other times I don't" attitude?!
The only extra thing I did was telnet to localhost:9050 and type 'HTTP-REQUEST' (sans the ') and I got this....
This told me Tor was actually running. Fired up Firefox, and it works fine now. Sigh...... Thanks for the help I guess.Code:# telnet localhost 9050
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
HTTP-REQUEST
HTTP/1.0 501 Tor is not an HTTP Proxy
Content-Type: text/html; charset=iso-8859-1
<html>
<head>
<title>Tor is not an HTTP Proxy</title>
</head>
<body>
<h1>Tor is not an HTTP Proxy</h1>
<p>
It appears you have configured your web browser to use Tor as an HTTP Proxy.
This is not correct: Tor provides a SOCKS proxy. Please configure your
client accordingly.
</p>
<p>
See <a href="http://tor.eff.org/documentation.html">http://tor.eff.org/documentation.html</a> for more information.
<!-- Plus this comment, to make the body response more than 512 bytes, so IE will be willing to display it. Comment comment comment comment comment comment comment comment comment comment comment comment.-->
</p>
</body>
</html>
Connection closed by foreign host.
I see an error when tor started up about not being owned by this uid, If you go back to page one I showed how to fix that, Ive had it aswell. I will run nmap on my self and edit this post with its results
EDIT
Nmap didnt show either tor or privoxy open on mine yet it works
To fix the tor uid error run
sudo chown yourusername /var/lib/tor
then killall tor and rerun tor
Very nice how-to, Dutch, and thank you.
Were you once of the Gentoo community?
Cheers!
Just wanted to say thanks for the great howto.
Works like a charm here, well done.