tor-hidden-service.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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 Hidden Service Configuration 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="/index.html">Home</a>
  18. | <a href="/howitworks.html">How It Works</a>
  19. | <a href="/download.html">Download</a>
  20. | <a href="/documentation.html">Docs</a>
  21. | <a href="/users.html">Users</a>
  22. | <a href="/faq.html">FAQs</a>
  23. | <a href="/volunteer.html">Volunteer</a>
  24. | <a href="/developers.html">Developers</a>
  25. | <a href="/research.html">Research</a>
  26. | <a href="/people.html">People</a>
  27. </td>
  28. <td class="banner-right"></td>
  29. </tr>
  30. </table>
  31. <!-- END TITLE BAR & NAVIGATION -->
  32. <div class="center">
  33. <div class="main-column">
  34. <h1>Configuring Hidden Services for <a href="http://tor.eff.org/">Tor</a></h1>
  35. <hr />
  36. <p>Tor allows clients and servers to offer hidden services. That is,
  37. you can offer a web server, SSH server, etc., without revealing your
  38. IP to its users. In fact, because you don't need any public address,
  39. you can run a hidden service from behind your firewall.
  40. </p>
  41. <p>This howto describes the steps for setting up your own hidden service
  42. website.
  43. </p>
  44. <hr />
  45. <a name="zero"></a>
  46. <h3>Step Zero: Get Tor and Privoxy working</h3>
  47. <p>Before you start, you need to make sure 1) Tor is up and running,
  48. 2) Privoxy is up and running, 3) Privoxy is configured to point
  49. to Tor, and 4) You actually set it up correctly.</p>
  50. <p>Windows users should follow the <a
  51. href="http://tor.eff.org/doc/tor-doc-win32.html">Windows
  52. howto</a>, and OS X users should follow the <a
  53. href=http://tor.eff.org/doc/tor-doc-osx.html">OS
  54. X howto</a>. Other users can find some hints <a
  55. href="http://tor.eff.org/doc/tor-doc.html#installing">here</a>.
  56. </p>
  57. <p>Once you've got Tor and Privoxy installed and configured,
  58. you can see hidden services in action by clicking on <a
  59. href="http://6sxoyfb3h2nvok2d.onion/">the hidden wiki</a>
  60. in your browser. It will typically take 10-60 seconds to load
  61. (or to decide that it is currently unreachable). If it fails
  62. immediately and your browser pops up an alert saying that that
  63. "www.6sxoyfb3h2nvok2d.onion could not be found, please check the name and
  64. try again" then you haven't configured Tor and Privoxy correctly; see <a
  65. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#ItDoesntWork">this
  66. FAQ entry</a> for some help.
  67. </p>
  68. <hr />
  69. <a name="one"></a>
  70. <h3>Step One: Configure an example hidden service</h3>
  71. <p>In this step, you're going to configure a hidden service that points
  72. to www.google.com. This way we can make sure you've gotten this step
  73. working before we start thinking about setting up a web server locally.
  74. </p>
  75. <p>First, open your torrc file in your favorite text editor. (See <a
  76. href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#torrc">this
  77. FAQ entry</a> to learn what this means.) Go to the middle section and
  78. look for the line<br />
  79. <tt>############### This section is just for location-hidden services ###</tt><br />
  80. </p>
  81. <p>
  82. This section of the file consists of groups of lines, each representing
  83. one hidden service. Right now they are all commented out (the lines
  84. start with #), so now hidden services are enabled. Each group of lines
  85. consists of one HiddenServiceDir line, and one or more HiddenServicePort
  86. lines:</p>
  87. <ul>
  88. <li><b>HiddenServiceDir</b> is a directory where Tor will store information
  89. about that hidden service. In particular, Tor will create a file here named
  90. <i>hostname</i> which will tell you the onion URL. You don't need to add any
  91. files to this directory.</li>
  92. <li><b>HiddenServicePort</b> lets you specify a virtual port (that is, what
  93. port people accessing the hidden service will think they're using) and an
  94. IP address and port for redirecting connections to this virtual port.</li>
  95. </ul>
  96. <p>In this example, we're going to set up a hidden service that points to
  97. Google. So add the following lines to your torrc:
  98. </p>
  99. <pre>
  100. HiddenServiceDir /home/yourname/hidserv/
  101. HiddenServicePort 80 www.google.com:80
  102. </pre>
  103. <p>The above directory is for Windows people. OS X or Unix people should
  104. use <tt>/tmp/hidserv</tt> instead.
  105. <hr />
  106. <p>If you have suggestions for improving this document, please <a
  107. href="mailto:tor-bugs@freehaven.net">send them to us</a>. Thanks!</p>
  108. </div><!-- #main -->
  109. </div>
  110. <div class="bottom" id="bottom">
  111. <i><a href="mailto:tor-webmaster@freehaven.net"
  112. class="smalllink">Webmaster</a></i> - $Id: overview.html,v 1.37
  113. 2005/07/15 22:19:37 arma Exp $
  114. </div>
  115. </body>
  116. </html>