README 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. Is your question in the FAQ? Should it be?
  6. Quickstart version for users:
  7. 0) Download the absolute newest version. No, really.
  8. http://freehaven.net/or/.
  9. 1) ./configure (or do the two-line version below, if you're on bsd)
  10. 2) make
  11. 3) cd src/config
  12. 4) ../or/or -f oprc -l debug&
  13. 5) download privoxy (www.privoxy.org), and add the line
  14. "forward-socks4a / localhost:9050 ." (without the quotes) to its
  15. config file.
  16. 6) point your mozilla (or whatever) to http proxy at localhost:8118 (this
  17. points it through Privoxy, so you now get good data-scrubbing too.)
  18. 7) make sure you've set it up correctly: go to
  19. http://www.junkbusters.com/cgi-bin/privacy and see what IP it says
  20. you're coming from.
  21. More detailed version:
  22. Dependencies:
  23. You're going to need Privoxy (www.privoxy.org) installed, and configured
  24. to point at a socks4a proxy -- see below.
  25. For tor itself, you're going to need openssl (0.9.5 or later
  26. -- including the dev stuff and includes). If you're on Linux,
  27. everything will probably work fine. OS X and BSD (but see below under
  28. troubleshooting) may work too. Let us know if you get it working
  29. elsewhere.
  30. If you got the source from cvs:
  31. Run "./autogen.sh", which will run the various auto* programs and then
  32. run ./configure for you. From there, you should be able to run 'make'
  33. and you'll be on your way.
  34. If you got the source from a tarball:
  35. Run ./configure and make as usual. There isn't much point in
  36. 'make install' yet.
  37. If this doesn't work for you / troubleshooting:
  38. If you have problems finding libraries, try
  39. CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
  40. ./configure
  41. rather than simply ./configure.
  42. Check out the list archives at http://archives.seul.org/or/dev/ and see
  43. if somebody else has reported your problem. If not, please subscribe
  44. and let us know what you did to fix it, or give us the details and
  45. we'll see what we can do.
  46. Do you want to run a tor server or a tor client?
  47. If you want to run a local onion proxy (that is, you're a user, not
  48. a node operator), go into src/config and look at the oprc file. (You
  49. shouldn't have to edit any of it.) You can run an onion proxy with
  50. "../or/or -f oprc". See below for how to use it.
  51. If you want to run a node in the tor network, use the orkeygen program
  52. (included) to generate a keypair:
  53. orkeygen file-for-privkey file-for-pubkey
  54. Then set up a config file for your node (start with sample-orrc
  55. and edit the top portion). Then take a look at the routers.or file,
  56. and mail arma@mit.edu an entry for your new router. You can start up
  57. your router with "../or/or -f you-orrc". Remember that you won't be
  58. able to authenticate to the other tor nodes until I've added you to
  59. the directory.
  60. How to use it for web browsing:
  61. Download privoxy (www.privoxy.org). Install it. Add the following
  62. line to your 'config' file:
  63. forward-socks4a / localhost:9050 .
  64. Don't forget the . at the end.
  65. From here, you can point your browser/etc to localhost:8118 (as an
  66. httpd proxy) and your traffic will go through Privoxy, then through
  67. the onion proxy, to the onion routing network.
  68. You can also ignore the whole privoxy thing and set your Mozilla to
  69. use localhost 9050 directly as a socks4 server. But see doc/CLIENTS
  70. for why this may not give you the anonymity you want.
  71. For more convenient command-line use, I recommend making a ~/.wgetrc
  72. with the line
  73. http_proxy=http://localhost:8118
  74. Then you can do things like "wget seul.org" and watch as it downloads
  75. from the onion routing network.
  76. For fun, you can wget a very large file (a megabyte or more), and
  77. then ^z the wget a little bit in. The onion routers will continue
  78. talking for a while, queueing around 500k in the kernel-level buffers.
  79. When the kernel buffers are full, and the outbuf for the AP connection
  80. also fills, the internal congestion control will kick in and the exit
  81. connection will stop reading from the webserver. The circuit will
  82. wait until you fg the wget -- and other circuits will work just fine
  83. throughout. Then try ^z'ing the onion routers, and watch how well it
  84. recovers. Then try ^z'ing several of them at once. :)
  85. How to use it for ssh:
  86. Download tsocks (tsocks.sourceforge.net) and configure it to talk to
  87. localhost:9050 as a socks4 server. My /etc/tsocks.conf simply has:
  88. server_port = 9050
  89. server = 127.0.0.1
  90. Then you can do "tsocks ssh arma@moria.mit.edu". But note that since
  91. ssh is suid root, you either need to do this as root, or cp a local
  92. version of ssh that isn't suid.