41933ead424df485551ac49236acc8ad79756030
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
21)     at least 50 kilobytes/s each way, please help out Tor by configuring your
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) 
31)     <p>If you're on Debian, you can just "apt-get install tor".</p>
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 make the page more usable f...

Roger Dingledine authored 11 years ago

39)     <p>For other Unix/Linux uesrs, you can download Tor from one of our
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
95)     hours (to give it enough time to propagate), you can <a
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

96)     href="https://metrics.torproject.org/relay-search.html">search the
Roger Dingledine remove typos near relay-sea...

Roger Dingledine authored 11 years ago

97)     relay database</a> to see whether it's there.</p>
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

98) 
99)     <hr>
100)     <a id="after"></a>
101)     <h2><a class="anchor" href="#after">Step Four: Once it is working</a></h2>
102)     <br>
103) 
104)     <p>
105)     5. Read
106)     <a href="<wiki>doc/OperationalSecurity">about operational security</a>
107)     to get ideas how you can increase the security of your computer.
108)     </p>
109) 
110)     <p>
111)     6. Decide about rate limiting. Cable modem, DSL, and other users
112)     who have asymmetric bandwidth (e.g. more down than up) should
113)     rate limit to their slower bandwidth, to avoid congestion. See the <a
114)     href="<wikifaq>#LimitBandwidth">rate
115)     limiting FAQ entry</a> for details.
116)     </p>
117) 
118)     <p>
119)     7. If your computer isn't running a webserver, please consider
120)     changing your ORPort to 443 and/or your DirPort to 80. Many Tor users
121)     are stuck behind firewalls that only let them browse the web, and
122)     this change will let them reach your Tor relay. If you are already
123)     using ports 80 and 443, other useful ports are 22, 110, and 143.
124)     </p>
125) 
126)     <p>
127)     8. Consider backing up your Tor relay's private key
128)     ("/var/lib/tor/keys/secret_id_key"). You'll need this identity key to
129)     <a href="<wikifaq>#UpgradeRelay">move or restore your Tor relay</a>.
130)     </p>
131) 
132)     <p>
Moritz Bartl hint towards TorExitGuideli...

Moritz Bartl authored 11 years ago

133)     9. If you run an exit relay (great!), don't miss out on our <a href="<wiki>doc/TorExitGuidelines">Exit Guidelines</a>.