f6f44316cda6c006a249ec8dba6461f4124ff02d
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

1) ## translation metadata
2) # Revision: $Revision$
3) # Translation-Priority: 4-optional
4) 
5) #include "head.wmi" TITLE="obfsproxy: Installation instructions" CHARSET="UTF-8"
6) 
7) <div id="content" class="clearfix">
8)   <div id="breadcrumbs">
9)     <a href="<page index>">Home &raquo; </a>
10)     <a href="<page projects/projects>">Projects &raquo; </a>
11)     <a href="<page projects/obfsproxy>">obfsproxy</a>
12)   </div>
13)   <div id="maincol">
14) 
15)     <!-- PUT CONTENT AFTER THIS TAG -->
16) 
Roger Dingledine start to streamline the obf...

Roger Dingledine authored 12 years ago

17)     <h1 id="instructions">Obfsproxy Instructions</h1>
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

18) 
Roger Dingledine put the diagram at the top;...

Roger Dingledine authored 12 years ago

19)     <img src="$(IMGROOT)/obfsproxy_diagram.png" alt="client torrc"></a>
20) 
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

21)       <p>
22)         This is a guide for installing the Python version of obfsproxy. If
23)         you still have the C version, we recommend you to upgrade to the
24)         Python version!
25)       </p>
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

26) 
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

27)     <h3>Step 0: Install Python</h3>
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

28)     <br>
29) 
30)     <p>
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

31)       To setup obfsproxy you will need <code>Python</code> (>= 2.7),
32)       and <code>pip</code>. If you use Debian testing (or unstable),
33)       or a version of Ubuntu newer than Oneiric, this is easy:
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

34)     <p>
35) 
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

36)     <tt># apt-get install python2.7 python-pip</tt>
37) 
38) 
39)     <h3>Step 1: Install Tor</h3>
40)     <br>
Roger Dingledine explain further dependencies

Roger Dingledine authored 12 years ago

41) 
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

42)     <p>
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

43)       You will also need a recent version of Tor (>= 0.2.4.1). We recommend you use
44)       <a href="<page docs/debian>#development">Tor's experimental repositories for Debian/Ubuntu</a>
45)       or
46)       <a href="https://gitweb.torproject.org/tor.git">install Tor from git</a>.
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

47)     </p>
48) 
Sebastian Hahn obfsproxy instructions upda...

Sebastian Hahn authored 12 years ago

49)     <p>
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

50)     You need Tor 0.2.4.x because it knows how to automatically report
51)     your obfsproxy address to BridgeDB.
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

52)     </p>
53) 
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

54)     <h3>Step 2: Install obfsproxy</h3>
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

55)     <br>
56) 
57)     <p>
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

58)       If you have <code>pip</code>, installing <code>obfsproxy</code>
59)       and its dependencies should be a matter of a single command:
Sebastian Hahn obfsproxy instructions upda...

Sebastian Hahn authored 12 years ago

60)     </p>
61) 
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

62)     <tt># pip install obfsproxy</tt><br><br>
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

63) 
Sebastian Hahn obfsproxy instructions upda...

Sebastian Hahn authored 12 years ago

64)     <p>
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

65)     You will probably want to run the <em>pip install</em> command as
66)     root so that obfsproxy gets installed to /usr/local/bin.
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

67)     </p>
68) 
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

69)     <h3>Step 3: Setup tor</h3>
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

70)     <br>
71) 
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

72)     <p>
73)       Now setup Tor.  Edit your /etc/tor/torrc to add:
74)     </p>
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

75) 
76)       <p>
77)         <tt>SocksPort 0</tt><br>
78)         <tt>ORPort 443 # or some other port if you already run a webserver/skype</tt><br>
79)         <tt>BridgeRelay 1</tt><br>
80)         <tt>Exitpolicy reject *:*</tt><br><br>
81) 
82)         <tt>## CHANGEME_1 -> provide a nickname for your bridge, can be anything you like</tt><br>
83)         <tt>#Nickname CHANGEME_1</tt><br>
84)         <tt>## CHANGEME_2 -> provide some email address so we can contact you if there's a problem</tt><br>
85)         <tt>#ContactInfo CHANGEME_2</tt><br><br>
86) 
87)         <tt>ServerTransportPlugin obfs2,obfs3 exec /usr/local/bin/obfsproxy managed</tt><br>
88)       </p>
89) 
90)       <p>
91)         Don't forget to uncomment and edit the CHANGEME fields. Also,
92)         if you didn't install obfsproxy as root, you might have to
93)         change its path.
94)       </p>
95) 
96)       <h3>Step 4: Launch Tor and verify that it bootstraps</h3>
97)       <br>
98) 
99)       <p>
100)         Restart Tor to use the new configuration file. (Preface with sudo if
101)         needed.)
102)       </p>
103) 
104)       <tt># service tor restart</tt><br><br>
105) 
106)       <p>
107)         Now check /var/log/tor/log and you should see something like this:
108)       </p>
109) 
110)       <tt>Nov 05 16:40:45.000 [notice] We now have enough directory information to build circuits.</tt><br>
111)       <tt>Nov 05 16:40:45.000 [notice] Bootstrapped 80%: Connecting to the Tor network.</tt><br>
112)       <tt>Nov 05 16:40:46.000 [notice] Bootstrapped 85%: Finishing handshake with first hop.</tt><br>
113)       <tt>Nov 05 16:40:46.000 [notice] Bootstrapped 90%: Establishing a Tor circuit.</tt><br>
114)       <tt>Nov 05 16:40:48.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.</tt><br>
115)       <tt>Nov 05 16:40:48.000 [notice] Bootstrapped 100%: Done.</tt><br><br>
116) 
117)       <p>
118)         If Tor is earlier in the bootstrapping phase, wait until it gets to 100%.
119)       </p>
120) 
121)       <h2>Step 5: Set up port forwarding if needed</h2>
122)       <br>
123) 
124)       <p>
125)         If you're behind a NAT/firewall, you'll need to make your bridge
126)         reachable from the outside world — both on the ORPort and the
127)         obfsproxy port. The ORPort is whatever you defined in step two
128)         above. To find your obfsproxy port, check your Tor logs for two
129)         lines similar to these:
130)       </p>
131) 
132)       <tt>Oct 05 20:00:41.000 [notice] Registered server transport 'obfs2' at '0.0.0.0:26821</tt><br>
133)       <tt>Oct 05 20:00:42.000 [notice] Registered server transport 'obfs3' at '0.0.0.0:40172</tt><br><br>
134) 
135)       <p>
136)         The last number in each line, in this case 26821 and 40172, are the
137)         TCP port numbers that you need to forward through your
138)         firewall. (This port is randomly chosen the first time Tor starts,
139)         but Tor will cache and reuse the same number in future runs.) If you
140)         want to change the number, use Tor 0.2.4.7-alpha or later, and set
141)         "ServerTransportListenAddr obfs2 0.0.0.0:26821" in your torrc.
142)       </p>