Advertisement
Guest User

Untitled

a guest
Feb 9th, 2012
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1.  
  2. You will need version 2.0 of libevent-dev, so you'll need
  3. to use Ubuntu oneiric or Debian experimental when testing this.
  4.  
  5. You will need to install the following packages: git-core make
  6. autoconf gcc pkg-config libevent-dev libtool libssl-dev
  7.  
  8. 1. Setting up obfsproxy
  9.  
  10. $ git clone git://git.torproject.org/obfsproxy.git
  11. $ cd obfsproxy
  12. $ /autogen.sh
  13. $ /configure && make
  14.  
  15. If git.torproject.org is blocked, try cloning it from
  16. git://gitorious.org/obfsproxy/obfsproxy.git instead.
  17.  
  18. 2. Setting up Tor
  19.  
  20. Open /etc/apt/sources.list and add the following two lines:
  21.  
  22. deb http://deb.torproject.org/torproject.org <DISTRIBUTION> main
  23. deb http://deb.torproject.org/torproject.org
  24. experimental-<DISTRIBUTION> main
  25.  
  26. Where <DISTRIBUTION> is whatever you're using, such as oneiric. Then
  27. run the following set of commands:
  28.  
  29. $ gpg --keyserver keys.gnupg.net --recv 886DDD89
  30. $ gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
  31. $ sudo aptitude update
  32. $ sudo aptitude install tor tor-geoipdb
  33.  
  34. If deb.torproject.org is blocked, try using deb-master.torproject.org,
  35. mirror.netcologne.de or tor.mirror.youam.de instead. You don't need to
  36. have Tor running straight away, but it will start by default when you
  37. install it. Run /etc/init.d/tor stop and move on to the next step.
  38.  
  39. 3. Configure Tor
  40.  
  41. Configure Tor to use bridges and talk to the obfsproxy server I set up:
  42.  
  43. $ sudo mv /etc/tor/torrc /etc/tor/torrc.orig
  44. $ sudo vim /etc/tor/torrc
  45.  
  46. And put the following lines in the file:
  47.  
  48. SocksPort 5000
  49. UseBridges 1
  50. Bridge obfs2 174.129.145.197:1051
  51. ClientTransportPlugin obfs2 socks5 127.0.0.1:1050
  52.  
  53. 4. Start obfsproxy
  54.  
  55. It's important that you launch obfsproxy before you start Tor. Go into
  56. the obfsproxy directory and run:
  57.  
  58. $ ./obfsproxy --log-min-severity=debug
  59. --log-file=obfsproxy-debug.log obfs2 socks 127.0.0.1:1050
  60.  
  61. 5. Start Tor
  62.  
  63. Run the following commands to start Tor and check the log to see that
  64. everything's ok:
  65.  
  66. $ sudo /etc/init.d/tor start
  67. $ sudo tail -f /var/log/tor/log
  68.  
  69. 6. Test it (need bridge running with obfsproy support)
  70.  
  71. To test it, launch Firefox (no Torbutton needed, just a plain Firefox)
  72. and set it up to use a Socks server on 127.0.0.1:5000. Now browse the
  73. web. Win?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement