417298223e5ef4ddc7aa446cd982306607c6792a
Roger Dingledine whoops, i missed a whole do...

Roger Dingledine authored 18 years ago

1) ## translation metadata
2) # Revision: $Revision$
3) 
Roger Dingledine similar patch on the docs/e...

Roger Dingledine authored 18 years ago

4) #include "head.wmi" TITLE="Hidden Service Configuration Instructions"
Roger Dingledine whoops, i missed a whole do...

Roger Dingledine authored 18 years ago

5) 
6) <div class="center">
7) 
8) <div class="main-column">
9) 
10) <h1>Configuring Hidden Services for <a href="<page index>">Tor</a></h1>
11) <hr />
12) 
13) <p>Tor allows clients and servers to offer hidden services. That is,
14) you can offer a web server, SSH server, etc., without revealing your
15) IP to its users. In fact, because you don't use any public address,
16) you can run a hidden service from behind your firewall.
17) </p>
18) 
19) <p>If you have Tor and Privoxy installed, you can see hidden services
20) in action by visiting <a href="http://6sxoyfb3h2nvok2d.onion/">the
21) hidden wiki</a>.
22) </p>
23) 
24) <p>This howto describes the steps for setting up your own hidden service
25) website.
26) </p>
27) 
28) <hr />
29) <a id="zero"></a>
30) <h2><a class="anchor" href="#zero">Step Zero: Get Tor and Privoxy working</a></h2>
31) <br />
32) 
33) <p>Before you start, you need to make sure 1) Tor is up and running,
34) 2) Privoxy is up and running, 3) Privoxy is configured to point
35) to Tor, and 4) You actually set it up correctly.</p>
36) 
37) <p>Windows users should follow the <a
38) href="<page docs/tor-doc-win32>">Windows
39) howto</a>, OS X users should follow the <a
40) href="<page docs/tor-doc-osx>">OS
41) X howto</a>, and Linux/BSD/Unix users should follow the <a
42) href="<page docs/tor-doc-unix>">Unix howto</a>.
43) </p>
44) 
45) <p>Once you've got Tor and Privoxy installed and configured,
46) you can see hidden services in action by following this link to <a
47) href="http://6sxoyfb3h2nvok2d.onion/">the hidden wiki</a>.
48) It will typically take 10-60 seconds to load
49) (or to decide that it is currently unreachable). If it fails
50) immediately and your browser pops up an alert saying that
51) "www.6sxoyfb3h2nvok2d.onion could not be found, please check the name and
52) try again" then you haven't configured Tor and Privoxy correctly; see <a
53) href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#ItDoesntWork">this
54) FAQ entry</a> for some help.
55) </p>
56) 
57) <hr />
58) <a id="one"></a>
59) <h2><a class="anchor" href="#one">Step One: Configure an example hidden service</a></h2>
60) <br />
61) 
62) <p>In this step, you're going to configure a hidden service that points
63) to www.google.com. This way we can make sure you have this step
64) working before we start thinking about setting up a web server locally.
65) </p>
66) 
67) <p>First, open your torrc file in your favorite text editor. (See <a
68) href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#torrc">this
69) FAQ entry</a> to learn what this means.) Go to the middle section and
70) look for the line</p>
71) 
72) <pre>
Roger Dingledine and resolve the other use-o...

Roger Dingledine authored 18 years ago

73) \############### This section is just for location-hidden services ###
Roger Dingledine whoops, i missed a whole do...

Roger Dingledine authored 18 years ago

74) </pre>
75) 
76) <p>
77) This section of the file consists of groups of lines, each representing
78) one hidden service. Right now they are all commented out (the lines
79) start with #), so hidden services are disabled. Each group of lines
80) consists of one HiddenServiceDir line, and one or more HiddenServicePort
81) lines:</p>
82) <ul>
83) <li><b>HiddenServiceDir</b> is a directory where Tor will store information
84) about that hidden service.  In particular, Tor will create a file here named
85) <i>hostname</i> which will tell you the onion URL.  You don't need to add any
86) files to this directory.</li>
87) <li><b>HiddenServicePort</b> lets you specify a virtual port (that is, what
88) port people accessing the hidden service will think they're using) and an
89) IP address and port for redirecting connections to this virtual port.</li>
90) </ul>
91) 
92) <p>In this example, we're going to set up a hidden service that points to
93) Google. So add the following lines to your torrc:
94) </p>
95) 
96) <pre>
97) HiddenServiceDir /Library/Tor/var/lib/tor/hidden_service/
98) HiddenServicePort 80 www.google.com:80
99) </pre>
100) 
101) <p>You're going to want to change the HiddenServiceDir line, so it points
102) to an actual directory that is readable/writeable by the user that will
103) be running Tor. The above line should work if you're using the OS X Tor
104) package. On Unix, try "/home/username/hidserv/" and fill in your own
105) username in place of "username". On Windows you might pick:</p>
106) <pre>
Roger Dingledine repair the tor hidden servi...

Roger Dingledine authored 18 years ago

107) HiddenServiceDir C:\Documents and Settings\username\Application Data\hidden_service\\