2002-09-23 21:16:00 +02:00
|
|
|
'tor' is an implementation of The Onion Routing system, as
|
|
|
|
described in a bit more detail at http://www.onion-router.net/. You
|
|
|
|
can read list archives, and subscribe to the mailing list, at
|
|
|
|
http://archives.seul.org/or/dev/.
|
|
|
|
|
2002-11-23 07:49:01 +01:00
|
|
|
Is your question in the FAQ? Should it be?
|
|
|
|
|
2002-09-23 21:16:00 +02:00
|
|
|
Quickstart version:
|
|
|
|
|
2002-11-23 07:49:01 +01:00
|
|
|
0) Download the absolute newest version. No, really.
|
|
|
|
http://freehaven.net/or/.
|
2002-09-23 21:16:00 +02:00
|
|
|
1) ./configure (or do the two-line version below, if you're on bsd)
|
|
|
|
2) make
|
|
|
|
3) cd src/config
|
|
|
|
4) ../or/or -f oprc -l debug&
|
|
|
|
5) download privoxy (www.privoxy.org), and add the line
|
|
|
|
"forward-socks4a / localhost:9050 ." (without the quotes) to its
|
|
|
|
config file.
|
2002-11-23 07:49:01 +01:00
|
|
|
6) point your mozilla (or whatever) to http proxy at localhost:8118 (this
|
2002-09-23 21:16:00 +02:00
|
|
|
points it through Privoxy, so you now get good data-scrubbing too.)
|
2002-11-23 07:49:01 +01:00
|
|
|
7) make sure you've set it up correctly: go to
|
|
|
|
http://www.junkbusters.com/cgi-bin/privacy and see what IP it says
|
|
|
|
you're coming from.
|
2002-09-23 21:16:00 +02:00
|
|
|
|
|
|
|
More detailed version:
|
2002-07-16 18:18:16 +02:00
|
|
|
|
2002-07-19 23:02:39 +02:00
|
|
|
Dependencies:
|
|
|
|
|
2002-09-22 13:09:07 +02:00
|
|
|
You're going to need Privoxy (www.privoxy.org) installed, and configured
|
|
|
|
to point at a socks4a proxy -- see below.
|
|
|
|
|
2002-11-23 07:49:01 +01:00
|
|
|
For tor itself, you're going to need openssl (0.9.5 or later
|
|
|
|
-- including the dev stuff and includes). If you're on Linux,
|
|
|
|
everything will probably work fine. OS X and BSD (but see below under
|
2003-02-14 05:09:56 +01:00
|
|
|
troubleshooting) may work too. Let us know if you get it working
|
2002-11-23 07:49:01 +01:00
|
|
|
elsewhere.
|
2002-07-19 23:02:39 +02:00
|
|
|
|
2002-07-19 10:13:42 +02:00
|
|
|
If you got the source from cvs:
|
|
|
|
|
|
|
|
Run "./autogen.sh", which will run the various auto* programs and then
|
|
|
|
run ./configure for you. From there, you should be able to run 'make'
|
|
|
|
and you'll be on your way.
|
|
|
|
|
|
|
|
If you got the source from a tarball:
|
|
|
|
|
2002-07-22 06:07:34 +02:00
|
|
|
Run ./configure and make as usual. There isn't much point in
|
|
|
|
'make install' yet.
|
2002-07-19 10:13:42 +02:00
|
|
|
|
2002-09-09 06:10:58 +02:00
|
|
|
If this doesn't work for you / troubleshooting:
|
|
|
|
|
2002-11-23 07:49:01 +01:00
|
|
|
If you have problems finding libraries, try
|
2002-09-09 06:10:58 +02:00
|
|
|
CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
|
|
|
|
./configure
|
2002-11-23 07:49:01 +01:00
|
|
|
rather than simply ./configure.
|
2002-07-19 10:13:42 +02:00
|
|
|
|
|
|
|
Check out the list archives at http://archives.seul.org/or/dev/ and see
|
|
|
|
if somebody else has reported your problem. If not, please subscribe
|
|
|
|
and let us know what you did to fix it, or give us the details and
|
|
|
|
we'll see what we can do.
|
|
|
|
|
|
|
|
Once you've got it compiled:
|
|
|
|
|
2002-09-22 13:09:07 +02:00
|
|
|
If you want to run a local onion proxy (that is, you're a user, not a
|
|
|
|
node operator), go into src/config and look at the oprc file. You can
|
|
|
|
run an onion proxy by "../or/or -f oprc". See below for how to use it.
|
2002-09-19 22:13:27 +02:00
|
|
|
|
|
|
|
If you want to set up your own test network (that is, act like you're
|
|
|
|
a full set of node operators), go into src/config/ and look at the
|
|
|
|
routers.or file. Also in that directory are public and private keys for
|
|
|
|
various nodes (*-public, *-private) and configuration files for the
|
|
|
|
nodes (*-orrc). You can generate your own keypairs with the orkeygen
|
|
|
|
program, or use the provided ones for testing.
|
2002-07-19 10:13:42 +02:00
|
|
|
|
|
|
|
Once you've got your config files ready, you're ready to start up your
|
|
|
|
network. I recommend using a screen session (man screen), or some
|
|
|
|
other way to handle many windows at once. I open a window for each
|
|
|
|
onion router, go into the src/config directory, and run something like
|
2002-09-22 13:09:07 +02:00
|
|
|
"../or/or -f moria2-orrc".
|
2002-07-19 10:13:42 +02:00
|
|
|
|
2002-09-05 17:30:09 +02:00
|
|
|
How to use it:
|
|
|
|
|
2002-09-22 13:09:07 +02:00
|
|
|
Download privoxy (www.privoxy.org). Install it. Add the following
|
|
|
|
line to your 'config' file:
|
|
|
|
forward-socks4a / localhost:9050 .
|
|
|
|
Don't forget the . at the end.
|
|
|
|
|
|
|
|
From here, you can point your browser/etc at localhost:8118 and your
|
|
|
|
traffic will go through Privoxy, then through the onion proxy, to the
|
|
|
|
onion routing network.
|
|
|
|
|
|
|
|
For more convenient command-line use, I recommend making a ~/.wgetrc
|
|
|
|
with the line
|
2003-02-14 05:09:56 +01:00
|
|
|
http_proxy=http://localhost:8118
|
2002-07-19 10:13:42 +02:00
|
|
|
Then you can do things like "wget seul.org" and watch as it downloads
|
|
|
|
from the onion routing network.
|
|
|
|
|
|
|
|
For fun, you can wget a very large file (a megabyte or more), and
|
|
|
|
then ^z the wget a little bit in. The onion routers will continue
|
|
|
|
talking for a while, queueing around 500k in the kernel-level buffers.
|
|
|
|
When the kernel buffers are full, and the outbuf for the AP connection
|
2002-07-22 06:07:34 +02:00
|
|
|
also fills, the internal congestion control will kick in and the exit
|
|
|
|
connection will stop reading from the webserver. The circuit will
|
|
|
|
wait until you fg the wget -- and other circuits will work just fine
|
|
|
|
throughout. Then try ^z'ing the onion routers, and watch how well it
|
|
|
|
recovers. Then try ^z'ing several of them at once. :)
|
2002-07-16 18:18:16 +02:00
|
|
|
|