README 5.3 KB

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