6139a3f0718c603b849515ea07c80f50ae6f203c
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) 
39)     <hr>
40)     <a id="setup"></a>
41)     <h2><a class="anchor" href="#setup">Step Two: Set it up as a relay</a></h2>
42) 
43)     <p>
44)     1. Make sure your clock, date, and timezone are set correctly. Install
45)     the ntp or openntpd (or similar) package to keep it that way.
46)     </p>
47) 
48)     <p>
49)     2. Edit the bottom part of <a href="<page
50)     docs/faq>#torrc">/etc/tor/torrc</a>. Define an ORPort. Note
51)     that public relays default to being <a href="<page
52)     docs/faq>#ExitPolicies">exit relays</a> &mdash; either change your
53)     ExitPolicy line or read our <a
54) href="https://trac.torproject.org/projects/tor/wiki/doc/TorExitGuidelines">guidelines
55)     for exit relay operators</a>. Be sure to set your ContactInfo line
56)     so we can contact you if you need to upgrade or something goes wrong.
57)     </p>
58) 
59)     <p>
60)     3. If you are using a firewall, open a hole in your firewall
61)     so incoming connections can reach the ports you configured
62)     (ORPort, plus DirPort if you enabled it). If you have a
63)     hardware firewall (Linksys box, cablemodem, etc) you might like <a
64)     href="http://portforward.com/">portforward.com</a>. Also, make sure you
65)     allow all <em>outgoing</em> connections too, so your relay can reach the
66)     other Tor relays.
67)     </p>
68) 
69)     <p>
70)     4. Restart your relay: "service tor reload" (as root).
71)     </p>
72) 
73)     <hr>
74)     <a id="check"></a>
75)     <h2><a class="anchor" href="#check">Step Three: Make sure it is working</a></h2>
76)     <br>
77) 
78)     <p>Once your relay connects to the network, it will
79)     try to determine whether the ports you configured are reachable from
80)     the outside. This step is usually fast, but it may take a few minutes.
81)     Look for a <a href="<page docs/faq>#Logs">log entry</a> in your
82)     /var/log/tor/log like
83)     <tt>Self-testing indicates your ORPort is reachable from the outside. Excellent.</tt>
84)     If you don't see this message, it means that your relay is not reachable
85)     from the outside &mdash; you should re-check your firewalls, check that it's
86)     testing the IP and port you think it should be testing, etc.
87)     </p>
88) 
89)     <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

90)     descriptor" to the directory authorities, to let clients know
91)     what address, ports, keys, etc your relay is using. After a few
92)     hours (to give it enough time to propagate), you can <a
Roger Dingledine streamlined relay instructi...

Roger Dingledine authored 11 years ago

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

Roger Dingledine authored 11 years ago

94)     relay database</a> to see whether it's there.</p>