331982f836416ecff70a64c941c0e0f6c263460a
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

1) ## translation metadata
2) # Revision: $Revision$
3) # Translation-Priority: 2-medium
4) 
5) #include "head.wmi" TITLE="Tor Project: Relay Configuration Instructions on Debian/Ubuntu" CHARSET="UTF-8"
6) <div id="content" class="clearfix">
7)   <div id="breadcrumbs">
8)     <a href="<page index>">Home &raquo; </a>
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 on Debian/Ubuntu</h1>
15) 
16)     <hr>
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
Roger Dingledine suggest 250 kilobytes/s as...

Roger Dingledine authored 9 years ago

21)     at least 250 kilobytes/s each way, please help out Tor by configuring your
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

22)     Tor to be a relay too.
23)     </p>
24) 
25)     <hr>
26)     <a id="zero"></a>
27)     <a id="install"></a>
28)     <h2><a class="anchor" href="#install">Step One: Download and Install Tor</a></h2>
29)     <br>
30) 
Roger Dingledine maybe "you can just" is the...

Roger Dingledine authored 9 years ago

31)     <p>If you're on Debian, start with "apt-get install tor".</p>
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

32) 
33)     <p><b>Do not use the packages in Ubuntu's universe.</b> If you're
34)     on Ubuntu or if you want to track newer Tor packages, follow the
35)     <a href="<page docs/debian>#ubuntu">Tor on Ubuntu or Debian</a>
36)     instructions to use our repository.
37)     </p>
38) 
Roger Dingledine fix typo

Roger Dingledine authored 9 years ago

39)     <p>For other Unix/Linux users, you can download Tor from one of our
Roger Dingledine make the page more usable f...

Roger Dingledine authored 11 years ago

40)     <a href="<page download/download-unix>">repositories</a>.</p>
41) 
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

42)     <hr>
43)     <a id="setup"></a>
44)     <h2><a class="anchor" href="#setup">Step Two: Set it up as a relay</a></h2>
45) 
46)     <p>
47)     1. Make sure your clock, date, and timezone are set correctly. Install
48)     the ntp or openntpd (or similar) package to keep it that way.
49)     </p>
50) 
51)     <p>
52)     2. Edit the bottom part of <a href="<page
Moritz Bartl hint towards TorExitGuideli...

Moritz Bartl authored 11 years ago

53)     docs/faq>#torrc">/etc/tor/torrc</a>. Define an ORPort. <b>Note
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

54)     that public relays default to being <a href="<page
Moritz Bartl hint towards TorExitGuideli...

Moritz Bartl authored 11 years ago

55)     docs/faq>#ExitPolicies">exit relays</a></b> &mdash; either change your
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

56)     ExitPolicy line or read our <a
Moritz Bartl hint towards TorExitGuideli...

Moritz Bartl authored 11 years ago

57) href="<wiki>/doc/TorExitGuidelines">guidelines
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

58)     for exit relay operators</a>. Be sure to set your ContactInfo line
59)     so we can contact you if you need to upgrade or something goes wrong.
60)     </p>
61) 
62)     <p>
63)     3. If you are using a firewall, open a hole in your firewall
64)     so incoming connections can reach the ports you configured
65)     (ORPort, plus DirPort if you enabled it). If you have a
66)     hardware firewall (Linksys box, cablemodem, etc) you might like <a
67)     href="http://portforward.com/">portforward.com</a>. Also, make sure you
68)     allow all <em>outgoing</em> connections too, so your relay can reach the
69)     other Tor relays.
70)     </p>
71) 
72)     <p>
73)     4. Restart your relay: "service tor reload" (as root).
74)     </p>
75) 
76)     <hr>
77)     <a id="check"></a>
78)     <h2><a class="anchor" href="#check">Step Three: Make sure it is working</a></h2>
79)     <br>
80) 
81)     <p>Once your relay connects to the network, it will
82)     try to determine whether the ports you configured are reachable from
83)     the outside. This step is usually fast, but it may take a few minutes.
84)     Look for a <a href="<page docs/faq>#Logs">log entry</a> in your
85)     /var/log/tor/log like
86)     <tt>Self-testing indicates your ORPort is reachable from the outside. Excellent.</tt>
87)     If you don't see this message, it means that your relay is not reachable
88)     from the outside &mdash; you should re-check your firewalls, check that it's
89)     testing the IP and port you think it should be testing, etc.
90)     </p>
91) 
92)     <p>When it decides that it's reachable, it will upload a "server
Roger Dingledine remove typos near relay-sea...

Roger Dingledine authored 11 years ago

93)     descriptor" to the directory authorities, to let clients know
94)     what address, ports, keys, etc your relay is using. After a few
Karsten Loesing Replace link to relay-searc...

Karsten Loesing authored 10 years ago

95)     hours (to give it enough time to propagate), you can query
96)     <a href="https://atlas.torproject.org/">Atlas</a> or
97)     <a href="https://globe.torproject.org/">Globe</a> to see whether your
98)     relay has successfully registered in the network.</p>
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

99) 
100)     <hr>
101)     <a id="after"></a>
102)     <h2><a class="anchor" href="#after">Step Four: Once it is working</a></h2>
103)     <br>
104) 
105)     <p>
106)     5. Read
107)     <a href="<wiki>doc/OperationalSecurity">about operational security</a>
108)     to get ideas how you can increase the security of your computer.
109)     </p>
110) 
111)     <p>
112)     6. Decide about rate limiting. Cable modem, DSL, and other users
113)     who have asymmetric bandwidth (e.g. more down than up) should
114)     rate limit to their slower bandwidth, to avoid congestion. See the <a
Roger Dingledine fix two broken faq links

Roger Dingledine authored 9 years ago

115)     href="<page docs/faq>#BandwidthShaping">rate
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

116)     limiting FAQ entry</a> for details.
117)     </p>
118) 
119)     <p>
Roger Dingledine low-numbered ports and Acco...

Roger Dingledine authored 9 years ago

120)     7. If your computer isn't running a webserver, and you haven't set
121)     AccountingMax, please consider
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

122)     changing your ORPort to 443 and/or your DirPort to 80. Many Tor users
123)     are stuck behind firewalls that only let them browse the web, and
124)     this change will let them reach your Tor relay. If you are already
125)     using ports 80 and 443, other useful ports are 22, 110, and 143.
126)     </p>
127) 
128)     <p>
129)     8. Consider backing up your Tor relay's private key
130)     ("/var/lib/tor/keys/secret_id_key"). You'll need this identity key to
Roger Dingledine fix two broken faq links

Roger Dingledine authored 9 years ago

131)     <a href="<page docs/faq>#UpgradeOrMove">move or restore your Tor relay</a>.
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

132)     </p>
133) 
134)     <p>
Roger Dingledine get rid of the redundant "a...

Roger Dingledine authored 9 years ago

135)     9. If you run an exit relay (great!), don't miss out on our <a
136)     href="<wiki>doc/TorExitGuidelines">Exit Guidelines</a>, including
137)     setting your reverse DNS hostname to make it obvious that you're
138)     a Tor exit relay, and serving the <a
139)     href="<gitblob>contrib/operator-tools/tor-exit-notice.html">Tor
140)     exit notice</a> page on your DirPort.
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

141)     </p>
142) 
143)     <p>
144)     10. Subscribe to the <a
145)     href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-announce">tor-announce</a>
146)     mailing list. It is very low volume, and it will keep you informed
Roger Dingledine get rid of the redundant "a...

Roger Dingledine authored 9 years ago

147)     of new stable releases.
148)     As a relay operator, you should consider subscribing to the
149)     <a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays">
150)     tor-relays mailing list</a> too.
151)     We have more <a href="<page docs/documentation>#MailingLists">mailing
152)     lists</a> as well.
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

153)     </p>
154) 
155)     <p>
Matt Pagan Suggest the "Lifecycle of a...

Matt Pagan authored 10 years ago

156)     11. Read the <a 
157)     href="https://blog.torproject.org/blog/lifecycle-of-a-new-relay">"Lifecycle 
158)     of a New Relay"</a> document to learn what sort of activity and usage 
159)     patterns you can expect during your relay's first weeks of operation.
160)     </p>
161) 
162)     <p>
163)     12. <a href="https://weather.torproject.org/">Tor Weather</a> provides
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

164)     an email notification service to any users who want to monitor the
165)     status of a Tor node. Upon subscribing, you can specify what types of
166)     alerts you would like to receive. The main purpose of Tor Weather is
167)     to notify node operators via email if their node is down for longer
168)     than a specified period, but other notification types are available.
169)     </p>
170) 
171)     <p>
Matt Pagan Suggest the "Lifecycle of a...

Matt Pagan authored 10 years ago

172)     13. If you want to run more than one relay that's great, but please set <a
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

173)     href="<page docs/faq>#MultipleRelays">the
174)     MyFamily option</a> in all your relays' configuration files.
175)     </p>
176) 
Roger Dingledine tell relay operators how to...

Roger Dingledine authored 10 years ago

177)     <p>
Matt Pagan Suggest the "Lifecycle of a...

Matt Pagan authored 10 years ago

178)     14. You might like to use the <a
Roger Dingledine tell relay operators how to...

Roger Dingledine authored 10 years ago

179)     href="https://www.atagar.com/arm/">arm</a> relay monitor to watch
180)     your relay's activities from the command line. First, "sudo apt-get
181)     install tor-arm". Second, as the user that will be running arm, run
182)     "sudo adduser $USER debian-tor" to add your user to the debian-tor
183)     group so it can reach Tor's controlsocket. Then log out and log back
184)     in (so your user is actually in the group), and run "arm".
185)     </p>
186) 
Roger Dingledine get rid of the redundant "a...

Roger Dingledine authored 9 years ago

187)     <p>
188)     15. When you change your Tor configuration, remember to verify that
189)     your relay still works correctly after the change.
190)     </p>
191)