README 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. If you got the source from cvs:
  2. Run "./autogen.sh", which will run the various auto* programs and then
  3. run ./configure for you. From there, you should be able to run 'make'
  4. and you'll be on your way.
  5. If you got the source from a tarball:
  6. Run ./configure, make, make install as usual.
  7. If this doesn't work for you:
  8. Check out the list archives at http://archives.seul.org/or/dev/ and see
  9. if somebody else has reported your problem. If not, please subscribe
  10. and let us know what you did to fix it, or give us the details and
  11. we'll see what we can do.
  12. Once you've got it compiled:
  13. (these notes assume you started with source from cvs)
  14. It's a bit hard to figure out what to do with the binaries. If you
  15. want to set up your own test network, go into src/config/ and look
  16. at the routers.or file. Also in that directory are public and private
  17. keys for various nodes (*-public, *-private) and configuration files
  18. for the nodes (*-orrc). You can generate your own keypairs with the
  19. orkeygen program, or use the provided ones for testing.
  20. Once you've got your config files ready, you're ready to start up your
  21. network. I recommend using a screen session (man screen), or some
  22. other way to handle many windows at once. I open a window for each
  23. onion router, go into the src/config directory, and run something like
  24. "../or/or -f moria2-orrc". In yet another window, I run something like
  25. "../httpap/httpap -f httpaprc -p 9051".
  26. From here, you can point your browser/etc at localhost:9051 and treat
  27. it as a web proxy. As a first test, you might telnet to it and enter
  28. "GET http://seul.org/ HTTP/1.0" (without the quotes), followed by a pair
  29. of carriage returns (one to separate your request from the headers,
  30. and another to indicate that you're providing no headers). For more
  31. convenient command-line use, I recommend making a ~/.wgetrc with
  32. the line
  33. http_proxy=localhost:9051"
  34. Then you can do things like "wget seul.org" and watch as it downloads
  35. from the onion routing network.
  36. For fun, you can wget a very large file (a megabyte or more), and
  37. then ^z the wget a little bit in. The onion routers will continue
  38. talking for a while, queueing around 500k in the kernel-level buffers.
  39. When the kernel buffers are full, and the outbuf for the AP connection
  40. also fills, the internal congestion control will kick in and the
  41. exit connection will stop reading from the webserver. The circuit
  42. will wait until you fg the wget -- and other circuits will work just
  43. fine throughout.