README 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Dependencies:
  2. You're going to need Privoxy (www.privoxy.org) installed, and configured
  3. to point at a socks4a proxy -- see below.
  4. For tor itself, you're going to need openssl (0.9.5 or later) and popt
  5. (1.6 or later). If you're on Linux, everything will probably work
  6. fine. OS X and BSD (but see below under troubleshooting) now work
  7. too. Let us know if you get it working elsewhere.
  8. If you got the source from cvs:
  9. Run "./autogen.sh", which will run the various auto* programs and then
  10. run ./configure for you. From there, you should be able to run 'make'
  11. and you'll be on your way.
  12. If you got the source from a tarball:
  13. Run ./configure and make as usual. There isn't much point in
  14. 'make install' yet.
  15. If this doesn't work for you / troubleshooting:
  16. If you couldn't find popt (eg you're on BSD), try
  17. CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
  18. ./configure
  19. rather than simply ./configure. And install popt if you don't have it.
  20. Check out the list archives at http://archives.seul.org/or/dev/ and see
  21. if somebody else has reported your problem. If not, please subscribe
  22. and let us know what you did to fix it, or give us the details and
  23. we'll see what we can do.
  24. Once you've got it compiled:
  25. If you want to run a local onion proxy (that is, you're a user, not a
  26. node operator), go into src/config and look at the oprc file. You can
  27. run an onion proxy by "../or/or -f oprc". See below for how to use it.
  28. If you want to set up your own test network (that is, act like you're
  29. a full set of node operators), go into src/config/ and look at the
  30. routers.or file. Also in that directory are public and private keys for
  31. various nodes (*-public, *-private) and configuration files for the
  32. nodes (*-orrc). You can generate your own keypairs with the orkeygen
  33. program, or use the provided ones for testing.
  34. Once you've got your config files ready, you're ready to start up your
  35. network. I recommend using a screen session (man screen), or some
  36. other way to handle many windows at once. I open a window for each
  37. onion router, go into the src/config directory, and run something like
  38. "../or/or -f moria2-orrc".
  39. How to use it:
  40. Download privoxy (www.privoxy.org). Install it. Add the following
  41. line to your 'config' file:
  42. forward-socks4a / localhost:9050 .
  43. Don't forget the . at the end.
  44. From here, you can point your browser/etc at localhost:8118 and your
  45. traffic will go through Privoxy, then through the onion proxy, to the
  46. onion routing network.
  47. For more convenient command-line use, I recommend making a ~/.wgetrc
  48. with the line
  49. http_proxy=localhost:8118
  50. Then you can do things like "wget seul.org" and watch as it downloads
  51. from the onion routing network.
  52. For fun, you can wget a very large file (a megabyte or more), and
  53. then ^z the wget a little bit in. The onion routers will continue
  54. talking for a while, queueing around 500k in the kernel-level buffers.
  55. When the kernel buffers are full, and the outbuf for the AP connection
  56. also fills, the internal congestion control will kick in and the exit
  57. connection will stop reading from the webserver. The circuit will
  58. wait until you fg the wget -- and other circuits will work just fine
  59. throughout. Then try ^z'ing the onion routers, and watch how well it
  60. recovers. Then try ^z'ing several of them at once. :)