README 4.0 KB

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