tor-doc-unix.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  4. <head>
  5. <title>Tor Linux/BSD/Unix Install Instructions</title>
  6. <meta name="Author" content="Roger Dingledine" />
  7. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  8. <link rel="stylesheet" type="text/css" href="stylesheet.css" />
  9. <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
  10. </head>
  11. <body>
  12. <!-- TITLE BAR & NAVIGATION -->
  13. <table class="banner" border="0" cellpadding="0" cellspacing="0">
  14. <tr>
  15. <td class="banner-left"></td>
  16. <td class="banner-middle">
  17. <a href="/home">Home</a>
  18. <a href="/overview">Overview</a>
  19. <a href="/download">Download</a>
  20. <a href="/documentation">Docs</a>
  21. <a href="/volunteer">Volunteer</a>
  22. <a href="/people">People</a>
  23. <a href="/donate">Donate!</a>
  24. </td>
  25. <td class="banner-right"></td>
  26. </tr>
  27. </table>
  28. <!-- END TITLE BAR & NAVIGATION -->
  29. <div class="center">
  30. <div class="main-column">
  31. <h1>Running the <a href="http://tor.eff.org/">Tor</a> client on Linux/BSD/Unix</h1>
  32. <br />
  33. <p>
  34. <b>Note that these are the installation instructions for running a Tor
  35. client. If you want to relay traffic for others to help the network grow
  36. (please do), read the <a
  37. href="tor-doc-server.html">Configuring a server</a> guide.</b>
  38. </p>
  39. <hr />
  40. <a id="installing"></a>
  41. <h2><a class="anchor" href="#installing">Step One: Download and Install Tor</a></h2>
  42. <br />
  43. <p>
  44. The latest release of Tor can be found on the <a
  45. href="/download.html">download</a> page. We have packages for Debian,
  46. Red Hat, Gentoo, *BSD, etc there too.
  47. </p>
  48. <p>If you're building from source, first install <a
  49. href="http://www.monkey.org/~provos/libevent/">libevent</a>, and
  50. make sure you have openssl and zlib (including the -devel packages if
  51. applicable). Then Run <tt>tar xzf tor-0.1.0.15.tar.gz;
  52. cd tor-0.1.0.15</tt>. Then <tt>./configure &amp;&amp; make</tt>. Now you
  53. can run tor as <tt>src/or/tor</tt>, or you can run <tt>make install</tt>
  54. (as root if necessary) to install it into /usr/local/, and then you can
  55. start it just by running <tt>tor</tt>.
  56. </p>
  57. <p>Tor comes configured as a client by default. It uses a built-in
  58. default configuration file, and most people won't need to change any of
  59. the settings. Tor is now installed.
  60. </p>
  61. <hr />
  62. <a id="privoxy"></a>
  63. <h2><a class="anchor" href="#privoxy">Step Two: Install Privoxy for Web Browsing</a></h2>
  64. <br />
  65. <p>After installing Tor, you need to configure your applications to use it.
  66. </p>
  67. <p>
  68. The first step is to set up web browsing. Start by installing <a
  69. href="http://www.privoxy.org/">Privoxy</a>: click on 'recent releases'
  70. and pick your favorite package or install from source. Privoxy is a
  71. filtering web proxy that integrates well with Tor.
  72. </p>
  73. <p>You need to configure Privoxy to use Tor.
  74. Open Privoxy's "config" file (look in /etc/privoxy/ or /usr/local/etc/)
  75. and add the line <br>
  76. <tt>forward-socks4a / localhost:9050 .</tt><br>
  77. to the top of the config file. Don't forget to add the dot at the end.
  78. </p>
  79. <p>Privoxy keeps a log file of everything passed through it. In
  80. order to stop this you will need to comment out two lines by inserting a
  81. # before the line. The two lines are:<br>
  82. <tt>logfile logfile</tt><br>
  83. and the line <br>
  84. <tt>jarfile jarfile</tt><br>
  85. </p>
  86. <p>You'll need to restart Privoxy for the changes to take effect.</p>
  87. <hr />
  88. <a id="using"></a>
  89. <h2><a class="anchor" href="#using">Step Three: Configure your applications to use Tor</a></h2>
  90. <br />
  91. <p>After installing Tor and Privoxy, you need to configure your
  92. applications to use them. The first step is to set up web browsing.</p>
  93. <p>If you're using Firefox (we recommend it), check out our <a
  94. href="tor-switchproxy.html">Tor SwitchProxy howto</a> to set up
  95. a plugin that makes it easy to switch between using Tor and using a
  96. direct connection.</p>
  97. <p>Otherwise, you need to manually configure your browser to HTTP proxy
  98. at localhost port 8118.
  99. (That's where Privoxy listens.)
  100. In Mozilla, this is in Edit|Preferences|Advanced|Proxies.
  101. In Opera 7.5x it's Tools|Preferences|Network|Proxy servers.
  102. You should click the "use the same proxy server for all protocols"
  103. button; but see <a
  104. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#FtpProxy">this
  105. note</a> about Tor and ftp proxies.
  106. <p>Using privoxy is <strong>necessary</strong> because <a
  107. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#SOCKSAndDNS">browsers
  108. leak your DNS requests when they use a SOCKS proxy directly</a>, which
  109. is bad for your anonymity. Privoxy also removes certain dangerous
  110. headers from your web requests, and blocks obnoxious ad sites like
  111. Doubleclick.</p>
  112. <p>To Torify other applications that support HTTP proxies, just
  113. point them at Privoxy (that is, localhost port 8118). To use SOCKS
  114. directly (for instant messaging, Jabber, IRC, etc), you can point
  115. your application directly at Tor (localhost port 9050), but see <a
  116. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#SOCKSAndDNS">this
  117. FAQ entry</a> for why this may be dangerous. For applications
  118. that support neither SOCKS nor HTTP, take a look at <a
  119. href="http://tsocks.sourceforge.net/">tsocks</a> or <a
  120. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorifyHOWTO#socat">socat</a>.
  121. </p>
  122. <p>For information on how to Torify other applications, check out the
  123. <a href="http://wiki.noreply.org/wiki/TheOnionRouter/TorifyHOWTO">Torify
  124. HOWTO</a>.
  125. </p>
  126. <hr />
  127. <a id="verify"></a>
  128. <h2><a class="anchor" href="#verify">Step Four: Make sure it's working</a></h2>
  129. <br />
  130. <p>
  131. Next, you should try using your browser with Tor and make
  132. sure that your IP address is being anonymized. Click on the <a
  133. href="http://serifos.eecs.harvard.edu/cgi-bin/ipaddr.pl?tor=1">Tor
  134. detector</a> and see whether it thinks you're using Tor or not.
  135. (If that site is down, see <a
  136. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#IsMyConnectionPrivate">this
  137. FAQ entry</a> for more suggestions on how to test your Tor.)
  138. </p>
  139. <p>If you have a personal firewall that limits your computer's
  140. ability to connect to itself (this includes something like SELinux on
  141. Fedora Core 4), be sure to allow connections from
  142. your local applications to Privoxy (local port 8118) and Tor (local port
  143. 9050). If
  144. your firewall blocks outgoing connections, punch a hole so
  145. it can connect to at least TCP ports 80 and 443, and then see <a
  146. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#FirewalledClient">this
  147. FAQ entry</a>. If your SELinux config is not allowing tor or privoxy to
  148. run correctly, create a file named booleans.local in the directory
  149. /etc/selinux/targeted. Edit this file in your favorite text editor and
  150. insert "allow_ypbind=1". Restart your machine for this change to take
  151. effect.
  152. </p>
  153. <p>If it's still not working, look at <a
  154. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#ItDoesntWork">this
  155. FAQ entry</a> for hints.</p>
  156. <hr />
  157. <a id="server"></a>
  158. <h2><a class="anchor" href="#server">Step Five: Configure it as a server</a></h2>
  159. <br />
  160. <p>The Tor network relies on volunteers to donate bandwidth. The more
  161. people who run servers, the faster the Tor network will be. If you have
  162. at least 20 kilobytes/s each way, please help out Tor by configuring your
  163. Tor to be a server too. We have many features that make Tor servers easy
  164. and convenient, including rate limiting for bandwidth, exit policies so
  165. you can limit your exposure to abuse complaints, and support for dynamic
  166. IP addresses.</p>
  167. <p>Having servers in many different places on the Internet is what
  168. makes Tor users secure. <a
  169. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#ServerAnonymity">You
  170. may also get stronger anonymity yourself</a>,
  171. since remote sites can't know whether connections originated at your
  172. computer or were relayed from others.</p>
  173. <p>Read more at our <a href="tor-doc-server.html">Configuring a server</a>
  174. guide.</p>
  175. <hr />
  176. <p>If you have suggestions for improving this document, please post
  177. them on <a href="http://bugs.noreply.org/tor">our bugtracker</a> in the
  178. website category. Thanks!</p>
  179. </div><!-- #main -->
  180. </div>
  181. <div class="bottom" id="bottom">
  182. <i><a href="mailto:tor-webmaster@freehaven.net"
  183. class="smalllink">Webmaster</a></i> - $Id$
  184. </div>
  185. </body>
  186. </html>