[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #9349 [Flashproxy]: flashproxy facilitator: Allow clients to specify transports



#9349: flashproxy facilitator: Allow clients to specify transports
----------------------------+--------------------------
     Reporter:  asn         |      Owner:  dcf
         Type:  task        |     Status:  needs_review
     Priority:  normal      |  Milestone:
    Component:  Flashproxy  |    Version:
   Resolution:              |   Keywords:
Actual Points:              |  Parent ID:  #7167
       Points:              |
----------------------------+--------------------------

Comment (by infinity0):

 I have a working facilitator/proxy up and running at siteb.

 You can test it out by running the obfs-flash client from #7167. Only,
 instead of visiting the proxy link mentioned in [comment:8:ticket:6810]
 with a hard-coded client/relay, do this:

 1. a) Patch your reg-url.

 {{{
 -reg_plain = (u"client=%s" % format_addr(remote_addr)).encode("utf-8")
 +reg_plain = (u"client=%s&client-transport=obfs3|websocket" %
 format_addr(remote_addr)).encode("utf-8")
 }}}

 1. b) Save this to facilitator/siteb.pub

 {{{
 -----BEGIN PUBLIC KEY-----
 MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0tb2qhhQ8xJ0fOqw9XQB
 R83zRQBiK76q0Q4zrsk5XE6Vm/+FYr3Cww5WTwSgv/HvY2TWJdU2I4H8eGeCXmIo
 42NXxwqHJTPTuEnXNgRP/Yob8r8zV5shQGe74nQs8m6p70FK0ic/i5ChesabtgLl
 MldsD1VtEJjswQEdobbcnXEdPkxns82fakRw31mdSzQKjxReBBm1epC7fNMUhJ27
 rDAWmWmSiVQoPlzIqlJwbiNzWNeqKepFryZvaVNpU4kEns9JoK0mujhKQOeNUAnw
 Kuy8g7O0s0HZjdB/q7xO8gBzpkha/vSY+BZ8yqa0kqvvcnOZmCY8jivxTv4bZNZI
 hwIDAQAB
 -----END PUBLIC KEY-----
 }}}

 1. c) Run this to send an encrypted registration. (Eventually we'll merge
 the bug9349_client branch and have obfs-flash set this automatically, and
 this and the previous steps won't be necessary.)

 {{{
 $ wget $(./flashproxy-reg-url -f http://siteb.fp-facilitator.org/fac/
 --facilitator-pubkey=facilitator/siteb.pub "$(wget -q
 "http://wtfismyip.com/text"; -O -)") -O -
 }}}

 2. Launch obfs-flash-client:

 {{{
 $ FLASHPROXY_CLIENT=/path/to/flashproxy-client tor -f torrc
 }}}

 3. Visit the proxy in a browser:

   http://siteb.fp-
 facilitator.org/proxy/embed.html?debug&unsafe_logging=true

   I tweaked the initial poll time to 20 seconds and made it visit /fac
 instead to get around a DNS block I experienced earlier.

 4. Wait a few seconds, then (if your ISP/firewall isn't blocking anything)
 obfs-flash-client should connect, and the browser proxy will say something
 like `Facilitator: got client:{ host: "(your IP)", port: 9000 } relay:{
 host: "173.255.221.44", port: 9500 }.`

 Next I will incorporate the Endpoints simplifications we talked about on
 IRC.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9349#comment:40>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs