99b6eadaf307af6b170396e163663eca95c96173
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 obfsproxy installation need...

George Kadianakis authored 10 years ago

36)     <tt># apt-get install python2.7 python-pip python-dev build-essential</tt>
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

37) 
Matt Pagan Added Fedora instructions.

Matt Pagan authored 9 years ago

38)     <p>On Fedora, that command would look like:</p>
39) 
40)     <tt># yum install make automake gcc python-pip python-devel libyaml-devel</tt>
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

41) 
42)     <h3>Step 1: Install Tor</h3>
43)     <br>
Roger Dingledine explain further dependencies

Roger Dingledine authored 12 years ago

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

Roger Dingledine authored 12 years ago

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

George Kadianakis authored 11 years ago

46)       You will also need a recent version of Tor (>= 0.2.4.1). We recommend you use
George Kadianakis Update obfsproxy instructio...

George Kadianakis authored 10 years ago

47)       <a href="<page docs/debian>#ubuntu">Tor's repositories for Debian/Ubuntu</a>
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

48)       or
49)       <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

50)     </p>
51) 
Sebastian Hahn obfsproxy instructions upda...

Sebastian Hahn authored 12 years ago

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

George Kadianakis authored 11 years ago

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

Roger Dingledine authored 12 years ago

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

George Kadianakis authored 11 years ago

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

Roger Dingledine authored 12 years ago

58)     <br>
59) 
60)     <p>
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

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

Sebastian Hahn authored 12 years ago

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

George Kadianakis authored 11 years ago

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

George Kadianakis authored 11 years ago

66) 
Sebastian Hahn obfsproxy instructions upda...

Sebastian Hahn authored 12 years ago

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

George Kadianakis authored 11 years ago

68)     You will probably want to run the <em>pip install</em> command as
69)     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

70)     </p>
George Kadianakis Mention the obfsproxy git r...

George Kadianakis authored 11 years ago

71)     <p>
72)     (Instead of using pip, you could also use <a
73)     href="https://gitweb.torproject.org/pluggable-transports/obfsproxy.git">the
74)     git repository</a> of obfsproxy if you feel more adventurous)
75)     </p>
Roger Dingledine add asn's first draft of ob...

Roger Dingledine authored 12 years ago

76) 
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

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

Roger Dingledine authored 12 years ago

78)     <br>
79) 
George Kadianakis Edit the obfsproxy instruct...

George Kadianakis authored 11 years ago

80)     <p>
81)       Now setup Tor.  Edit your /etc/tor/torrc to add:
82)     </p>
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

83) 
84)       <p>
85)         <tt>SocksPort 0</tt><br>
86)         <tt>ORPort 443 # or some other port if you already run a webserver/skype</tt><br>
87)         <tt>BridgeRelay 1</tt><br>
88)         <tt>Exitpolicy reject *:*</tt><br><br>
89) 
90)         <tt>## CHANGEME_1 -> provide a nickname for your bridge, can be anything you like</tt><br>
91)         <tt>#Nickname CHANGEME_1</tt><br>
92)         <tt>## CHANGEME_2 -> provide some email address so we can contact you if there's a problem</tt><br>
93)         <tt>#ContactInfo CHANGEME_2</tt><br><br>
94) 
Matt Pagan s/obfs2,obfs3/obfs3/

Matt Pagan authored 10 years ago

95)         <tt>ServerTransportPlugin obfs3 exec /usr/local/bin/obfsproxy managed</tt><br>
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

96)       </p>
97) 
98)       <p>
99)         Don't forget to uncomment and edit the CHANGEME fields. Also,
100)         if you didn't install obfsproxy as root, you might have to
101)         change its path.
102)       </p>
103) 
104)       <h3>Step 4: Launch Tor and verify that it bootstraps</h3>
105)       <br>
106) 
107)       <p>
108)         Restart Tor to use the new configuration file. (Preface with sudo if
109)         needed.)
110)       </p>
111) 
112)       <tt># service tor restart</tt><br><br>
113) 
114)       <p>
115)         Now check /var/log/tor/log and you should see something like this:
116)       </p>
117) 
118)       <tt>Nov 05 16:40:45.000 [notice] We now have enough directory information to build circuits.</tt><br>
119)       <tt>Nov 05 16:40:45.000 [notice] Bootstrapped 80%: Connecting to the Tor network.</tt><br>
120)       <tt>Nov 05 16:40:46.000 [notice] Bootstrapped 85%: Finishing handshake with first hop.</tt><br>
121)       <tt>Nov 05 16:40:46.000 [notice] Bootstrapped 90%: Establishing a Tor circuit.</tt><br>
122)       <tt>Nov 05 16:40:48.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.</tt><br>
123)       <tt>Nov 05 16:40:48.000 [notice] Bootstrapped 100%: Done.</tt><br><br>
124) 
125)       <p>
126)         If Tor is earlier in the bootstrapping phase, wait until it gets to 100%.
127)       </p>
128) 
Matt Pagan Added Fedora instructions.

Matt Pagan authored 9 years ago

129)       <h3>Step 5: Set up port forwarding if needed</h3>
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

130)       <br>
131) 
132)       <p>
133)         If you're behind a NAT/firewall, you'll need to make your bridge
134)         reachable from the outside world — both on the ORPort and the
135)         obfsproxy port. The ORPort is whatever you defined in step two
136)         above. To find your obfsproxy port, check your Tor logs for two
137)         lines similar to these:
138)       </p>
139) 
140)       <tt>Oct 05 20:00:42.000 [notice] Registered server transport 'obfs3' at '0.0.0.0:40172</tt><br><br>
141) 
142)       <p>
143)         The last number in each line, in this case 26821 and 40172, are the
144)         TCP port numbers that you need to forward through your
145)         firewall. (This port is randomly chosen the first time Tor starts,
146)         but Tor will cache and reuse the same number in future runs.) If you
147)         want to change the number, use Tor 0.2.4.7-alpha or later, and set
Matt Pagan Replaced references to obfs...

Matt Pagan authored 10 years ago

148)         "ServerTransportListenAddr obfs3 0.0.0.0:26821" in your torrc.
George Kadianakis Switch obfsproxy setup inst...

George Kadianakis authored 11 years ago

149)       </p>