3fb9e00162aa924d77384e69ca4769d8007f3832
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

1) ## translation metadata
2) # Revision: $Revision: 22144 $
3) # Translation-Priority: 2-medium
4) 
5) #include "head.wmi" TITLE="Tor Project: Relay Configuration Instructions" CHARSET="UTF-8"
6) <div id="content" class="clearfix">
7)   <div id="breadcrumbs">
Andrew Lewman change all of the breadcrum...

Andrew Lewman authored 14 years ago

8)     <a href="<page index>">Home &raquo; </a>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

9)     <a href="<page docs/documentation>">Documentation &raquo; </a>
10)     <a href="<page docs/tor-doc-relay>">Configure Tor Relay</a>
11)   </div> 
12)   <div id="maincol"> 
13) 
14)     <h1>Configuring a Tor relay</h1>
15)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

16)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

17)     
18)     <p>
19)     The Tor network relies on volunteers to donate bandwidth. The more
20)     people who run relays, the faster the Tor network will be. If you have
21)     at least 20 kilobytes/s each way, please help out Tor by configuring your
22)     Tor to be a relay too. We have many features that make Tor relays easy
Roger Dingledine fix a bunch of broken links...

Roger Dingledine authored 14 years ago

23)     and convenient, including <a href="<wikifaq>#RelayFlexible">rate limiting
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

24)     for bandwidth, exit policies so you can limit your exposure to abuse
25)     complaints, and support for dynamic IP addresses</a>.
26)     </p>
27)     
Roger Dingledine fix a bunch of broken links...

Roger Dingledine authored 14 years ago

28)     <p>You can run a Tor relay on <a href="<wikifaq>#RelayOS">pretty
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

29)     much any</a> operating system. Tor relays work best on Linux, OS X Tiger
30)     or later, FreeBSD 5.x+, NetBSD 5.x+, and Windows Server 2003 or later.
31)     </p>
32)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

33)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

34)     <a id="zero"></a>
35)     <a id="install"></a>
36)     <h2><a class="anchor" href="#install">Step One: Download and Install Tor</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

37)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

38)     
39)     <p>Before you start, you need to make sure that Tor is up and running.
40)     </p>
41)     
Andrew Lewman rename easy-download to dow...

Andrew Lewman authored 14 years ago

42)     <p>Visit our <a href="<page download/download>">download page</a> and
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

43)     install the "Installation Bundle" for your OS.
44)     </p>
45)     
46)     <p>If it's convenient, you might also want to use it as a client for a
47)     while to make sure it's actually working.</p>
48)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

49)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

50)     <a id="setup"></a>
51)     <h2><a class="anchor" href="#setup">Step Two: Set it up as a relay</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

52)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

53)     <ol>
54)     <li>Verify that your clock and timezone are set
55)     correctly. If possible, synchronize your clock with public <a
56)     href="http://en.wikipedia.org/wiki/Network_Time_Protocol">time
57)     servers</a>.
58)     </li>
59)     
60)     <li><strong>Configuring Tor with the Vidalia Graphical Interface</strong>:
61)     <ol>
62)     
63)     <li>
64)     	<dt>Right click on the Vidalia icon in your task bar.  Choose <tt>Control Panel</tt>.</dt>
Andrew Lewman more image path fixes.

Andrew Lewman authored 14 years ago

65)     	<dd><img alt="vidalia right click menu" src="$(IMGROOT)/screenshot-win32-vidalia.png"></dd>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

66)     </li>
67)     
68)     <li>Click <tt>Setup Relaying</tt>.</li>
69)     
70)     <li>
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

71)     	<dt>Choose <tt>Relay Traffic for the Tor network</tt> if you
72) want to be a public relay (recommended), or choose 		<tt>Help
73) censored users reach the Tor network</tt> if you want to be a <a
Roger Dingledine fix a bunch of broken links...

Roger Dingledine authored 14 years ago

74) href="<wikifaq>#RelayOrBridge">bridge</a> for users in countries that censor their Internet.</dt>
Andrew Lewman more image path fixes.

Andrew Lewman authored 14 years ago

75)     <dd><img alt="vidalia basic settings" src="$(IMGROOT)/screenshot-win32-configure-relay-1.png"></dd>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

76)     </li>
77)     
78)     <li>Enter a nickname for your relay, and enter contact information in
79)     case we need to contact you about problems.</li>
80)     
81)     <li>Leave <tt>Attempt to automatically configure port forwarding</tt> clicked.
82)     Push the <tt>Test</tt> button to see if it works.  If it does work, great.
83)     If not, see number 3 below.</li>
84)     
85)     <li><dt>Choose the <tt>Bandwidth Limits</tt> tab.  Select how much bandwidth you want to provide for Tor users like yourself.</dt>
Andrew Lewman more image path fixes.

Andrew Lewman authored 14 years ago

86)     <dd><img alt="vidalia bandwidth limits" src="$(IMGROOT)/screenshot-win32-configure-relay-2.png"></dd>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

87)     </li> 
88)     
89)     <li><dt>Choose the <tt>Exit Policies</tt> tab.  If you want to allow others
90)     to use your relay for these services, don't change anything.  Un-check
Roger Dingledine fix a bunch of broken links...

Roger Dingledine authored 14 years ago

91)     the services you don't want to allow people to <a href="<wikifaq>#ExitPolicies">reach from your relay</a>.  If you want to be a non-exit relay, un-check all services.</dt>
Andrew Lewman more image path fixes.

Andrew Lewman authored 14 years ago

92)     <dd><img alt="vidalia exit policies" src="$(IMGROOT)/screenshot-win32-configure-relay-3.png"></dd>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

93)     </li>
94)     
95)     <li>Click the <tt>Ok</tt> button.  See Step Three below for confirmation
96)     that the relay is working correctly.</li>
97)     </ol>
98)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

99)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

100)     <strong>Manual Configuration</strong>:
101)     <ul>
Roger Dingledine fix a bunch of broken links...

Roger Dingledine authored 14 years ago

102)     <li>Edit the bottom part of <a href="<wikifaq>#torrc">your torrc file</a>. If you want to be a public relay (recommended),
103)     make sure to define ORPort and <a href="<wikifaq>#ExitPolicies">look at ExitPolicy</a>; otherwise
104)     if you want to be a <a href="<wikifaq>#RelayOrBridge">bridge</a>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

105)     for users in countries that censor their Internet,
106)     just use <a href="<page docs/bridges>#RunningABridge">these lines</a>.
107)     </li>
108)     
109)     </ul></li>
110)     
111)     <li>If you are using a firewall, open a hole in your firewall
112)     so incoming connections can reach the ports you configured
113)     (ORPort, plus DirPort if you enabled it). If you have a
114)     hardware firewall (Linksys box, cablemodem, etc) you might like <a
115)     href="http://portforward.com/">portforward.com</a>. Also, make sure you
116)     allow all <em>outgoing</em> connections too, so your relay can reach the
117)     other Tor relays.
118)     </li>
119)     
120)     <li>Restart your relay. If it <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

121)     href="<wikifaq>#Logs">logs
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

122)     any warnings</a>, address them.
123)     </li>
124)     
125)     <li>Subscribe to the <a
126)     href="http://archives.seul.org/or/announce/">or-announce</a>
127)     mailing list. It is very low volume, and it will keep you informed
128)     of new stable releases. You might also consider subscribing to <a
129)     href="<page docs/documentation>#MailingLists">the higher-volume Tor lists</a>
130)     too.
131)     </li>
132)     
133)     </ol>
134)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

135)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

136)     <a id="check"></a>
137)     <h2><a class="anchor" href="#check">Step Three: Make sure it is working</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

138)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

139)     
140)     <p>As soon as your relay manages to connect to the network, it will
141)     try to determine whether the ports you configured are reachable from
142)     the outside. This step is usually fast, but may take up to 20
143)     minutes. Look for a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

144)     <a href="<wikifaq>#Logs">log
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

145)     entry</a> like
146)     <tt>Self-testing indicates your ORPort is reachable from the outside. Excellent.</tt>
147)     If you don't see this message, it means that your relay is not reachable
148)     from the outside &mdash; you should re-check your firewalls, check that it's
149)     testing the IP and port you think it should be testing, etc.
150)     </p>
151)     
152)     <p>When it decides that it's reachable, it will upload a "server
153)     descriptor" to the directories, to let clients know
154)     what address, ports, keys, etc your relay is using. You can <a
155)     href="http://194.109.206.212/tor/status-vote/current/consensus">load one of
156)     the network statuses manually</a> and
157)     look through it to find the nickname you configured, to make sure it's
158)     there. You may need to wait up to one hour to give enough time for it to
159)     make a fresh directory.</p>
160)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

161)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

162)     <a id="after"></a>
163)     <h2><a class="anchor" href="#after">Step Four: Once it is working</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

164)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

165)     
166)     <p>
167)     We recommend the following steps as well:
168)     </p>
169)     
170)     <p>
171)     6. Read
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

172)     <a href="<wiki>TheOnionRouter/OperationalSecurity">about operational security</a>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

173)     to get ideas how you can increase the security of your relay.
174)     </p>
175)     
176)     <p>
177)     7. If you want to run more than one relay that's great, but please set <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

178)     href="<wikifaq>#MultipleRelays">the
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

179)     MyFamily option</a> in all your relays' configuration files.
180)     </p>
181)     
182)     <p>
183)     8. Decide about rate limiting. Cable modem, DSL, and other users
184)     who have asymmetric bandwidth (e.g. more down than up) should
185)     rate limit to their slower bandwidth, to avoid congestion. See the <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

186)     href="<wikifaq>#LimitBandwidth">rate
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

187)     limiting FAQ entry</a> for details.
188)     </p>
189)     
190)     <p>
191)     9. Back up your Tor relay's private key (stored in "keys/secret_id_key"
192)     in your DataDirectory). This is your relay's "identity," and
193)     you need to keep it safe so nobody can read the traffic that goes
194)     through your relay. This is the critical file to keep if you need to <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

195)     href="<wikifaq>#UpgradeRelay">move
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

196)     or restore your Tor relay</a> if something goes wrong.
197)     </p>
198)     
199)     <p>
200)     
201)     10. If you control the name servers for your domain, consider setting your
202)     reverse DNS hostname to 'anonymous-relay', 'proxy' or 'tor-proxy', so when
203)     other people see the address in their web logs, they will more quickly
204)     understand what's going on. Adding the <a
205)     href="<gitblob>contrib/tor-exit-notice.html">Tor
206)     exit notice</a> on a vhost for this name can go a long way to deterring abuse
207)     complaints to you and your ISP if you are running an exit node.
208)     
209)     </p>
210)     
211)     <p>
212)     11. If your computer isn't running a webserver, please consider
213)     changing your ORPort to 443 and your DirPort to 80. Many Tor
214)     users are stuck behind firewalls that only let them browse the
215)     web, and this change will let them reach your Tor relay. Win32
216)     relays can simply change their ORPort and DirPort directly
217)     in their torrc and restart Tor. OS X or Unix relays can't bind
218)     directly to these ports (since they don't run as root), so they will
219)     need to set up some sort of <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

220)     href="<wikifaq>#ServerForFirewalledClients">
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

221)     port forwarding</a> so connections can reach their Tor relay. If you are
222)     using ports 80 and 443 already but still want to help out, other useful
223)     ports are 22, 110, and 143.
224)     </p>
225)     
226)     <p>
227)     12. If your Tor relay provides other services on the same IP address
228)     &mdash; such as a public webserver &mdash; make sure that connections to the
229)     webserver are allowed from the local host too. You need to allow these
230)     connections because Tor clients will detect that your Tor relay is the <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

231)     href="<wikifaq>#ExitEavesdroppers">safest
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

232)     way to reach that webserver</a>, and always build a circuit that ends
233)     at your relay. If you don't want to allow the connections, you must
234)     explicitly reject them in your exit policy.
235)     </p>
236)     
237)     <p>
238)     13. (Unix only). Make a separate user to run the relay. If you
239)     installed the OS X package or the deb or the rpm, this is already
240)     done. Otherwise, you can do it by hand. (The Tor relay doesn't need to
241)     be run as root, so it's good practice to not run it as root. Running
242)     as a 'tor' user avoids issues with identd and other services that
243)     detect user name. If you're the paranoid sort, feel free to <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

244)     href="<wiki>TheOnionRouter/TorInChroot">put Tor
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

245)     into a chroot jail</a>.)
246)     </p>
247)     
248)     <p>
249)     14. (Unix only.) Your operating system probably limits the number
250)     of open file descriptors per process to 1024 (or even less). If you
251)     plan to be running a fast exit node, this is probably not enough. On
252)     Linux, you should add a line like "toruser hard nofile 8192" to your
253)     /etc/security/limits.conf file (where toruser is the user that runs the
254)     Tor process), and then restart Tor if it's installed as a package (or log
255)     out and log back in if you run it yourself).
256)     </p>
257)     
258)     <p>
259)     15. If you installed Tor via some package or installer, it probably starts
260)     Tor for you automatically on boot. But if you installed from source,
261)     you may find the initscripts in contrib/tor.sh or contrib/torctl useful.
262)     </p>
263)     
264)     <p>
265)     When you change your Tor configuration, remember to verify that your
266)     relay still works correctly after the change. Be sure to set your
267)     "ContactInfo" line in the torrc so we can contact you if you need to
268)     upgrade or something goes wrong. If you have problems or questions, see
269)     the <a href="<page docs/documentation>#Support">Support</a> section or
270)     <a href="<page about/contact>">contact us</a> on the tor-ops list. Thanks
271)     for helping to make the Tor network grow!
272)     </p>
273)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 14 years ago

274)     <hr>