766698032ed6d4476c04bfde05594bc6d585906a
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

1) ## translation metadata
2) # Revision: $Revision$
3) # Translation-Priority: 4-optional
4) 
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

5) #include "head.wmi" TITLE="obfsproxy: Setting up an Obfsproxy Bridge on Debian/Ubuntu" CHARSET="UTF-8"
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

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 make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

17)     <h1 id="instructions">Setting up an Obfsproxy Bridge on Debian/Ubuntu</h1>
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

18) 
19)     <img src="$(IMGROOT)/obfsproxy_diagram.png" alt="obfsproxy diagram"></a>
20) 
21)     <p>
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

22)     This guide will help you set up an obfuscated bridge on a Debian/Ubuntu system.
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

23)     </p>
24) 
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

25)     <h3>Step 0: Move to the development version of Tor</h3>
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

26)     <br>
27) 
28)     <p>
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

29)     Add the <a href="<page docs/debian>#development">development Tor
30)     APT repository</a> and run the specified commands to install tor
31)     and deb.torproject.org-keyring. You need Tor 0.2.4.x Tor because
32)     it knows how to automatically report your obfsproxy address to <a
33)     href="https://bridges.torproject.org/?transport=obfs2">BridgeDB</a>.
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

34)     </p>
35) 
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

36)     <h3>Step 1: Install obfsproxy</h3>
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

37)     <br>
38) 
39)     <pre style="margin: 1.5em 0 1.5em 2em">
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

40) \# apt-get install obfsproxy
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

41)     </pre>
42) 
43)     <p>
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

44)     Obfsproxy requires libevent2. If your distribution (e.g. Debian
45)     squeeze) doesn't include it, you can get it from the <a
46)     href="http://packages.debian.org/search?keywords=libevent-2.0-5">backports</a>
47)     repository.
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

48)     </p>
49) 
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

50)     <h3>Step 2: Configure Tor</h3>
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

51)     <br>
52) 
53)     <p>
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

54)     Edit your <i>/etc/tor/torrc</i> to add:
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

55)     </p>
56) 
57)     <pre style="margin: 1.5em 0 1.5em 2em">
58) SocksPort 0
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

59) ORPort 443 # or some other port if you already run a webserver/skype
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

60) BridgeRelay 1
61) Exitpolicy reject *:*
62) 
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

63) \## CHANGEME_1 -> provide a nickname for your bridge, can be anything you like
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

64) Nickname CHANGEME_1
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

65) \## CHANGEME_2 -> provide some email address so we can contact you if there's a problem
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

66) \#ContactInfo CHANGEME_2
67) 
68) ServerTransportPlugin obfs2 exec /usr/bin/obfsproxy --managed
69)     </pre>
70) 
71)     <p>
72)     Don't forget to edit the <i>CHANGEME</i> fields!
73)     </p>
74) 
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

75)     <h3>Step 3: Launch Tor and verify that it bootstraps</h3>
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

76)     <br>
77) 
78)     <p>
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

79)     Restart Tor to use the new configuration file.
80)     (Preface with sudo if needed.)
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

81)     </p>
82) 
83)     <pre style="margin: 1.5em 0 1.5em 2em">
84) service tor restart
85)     </pre>
86) 
87)     <p>
88)     Now check <i>/var/log/tor/log</i> and you should see something
89)     like this:
90)     </p>
91) 
92)     <pre style="margin: 1.5em 0 1.5em 2em">
93) Nov 05 16:40:45.000 [notice] We now have enough directory information to build circuits.
94) Nov 05 16:40:45.000 [notice] Bootstrapped 80%: Connecting to the Tor network.
95) Nov 05 16:40:46.000 [notice] Bootstrapped 85%: Finishing handshake with first hop.
96) Nov 05 16:40:46.000 [notice] Bootstrapped 90%: Establishing a Tor circuit.
97) Nov 05 16:40:48.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
98) Nov 05 16:40:48.000 [notice] Bootstrapped 100%: Done.
99)     </pre>
100) 
101)     <p>
102)     If Tor is earlier in the bootstrapping phase, wait till it gets to
103)     100%.
104)     </p>
105) 
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

106)     <h3>Step 4: Set up port forwarding if needed</h3>
107)     <br>
108) 
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

109)     <p>
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

110)     If you're behind a NAT/firewall, you'll need to make your bridge
111)     reachable from the outside world &mdash; both on the ORPort and
112)     the obfsproxy port. The ORPort is whatever you defined in step two
113)     above. To find your obfsproxy port, check your Tor logs for a line
114)     similar to this one:
115)     </p>
George Kadianakis Add instructions for settin...

George Kadianakis authored 11 years ago

116) 
117)     <pre style="margin: 1.5em 0 1.5em 2em">
118) Oct 05 20:00:41.000 [notice] Registered server transport 'obfs2' at '0.0.0.0:26821
119)     </pre>
120) 
121)     <p>
122)     The last number, in this case <i>26821</i>, is the TCP port number
Roger Dingledine make the obfsproxy bridge d...

Roger Dingledine authored 11 years ago

123)     that you need to forward through your firewall. (This port is randomly
124)     chosen the first time Tor starts, but Tor will cache and reuse the
125)     same number in future runs.)