如果您看不懂英文,请点击这里以查看简体中文版本

Get obfsproxy for your server

TOR official Debian/Ubuntu repo

  • You can find your repo here

  • For Debian Jessie users like me, simply add the following to your /etc/apt/sources.list

deb http://deb.torproject.org/torproject.org jessie main
deb-src http://deb.torproject.org/torproject.org jessie main
deb http://deb.torproject.org/torproject.org tor-experimental-0.2.8.x-jessie main
deb-src http://deb.torproject.org/torproject.org tor-experimental-0.2.8.x-jessie main
  • Then add the gpg key used to sign the packages by running the following commands at your command prompt:
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
  • You can install the keyring and obfsproxy with the following commands:
$ apt-get update
$ apt-get install deb.torproject.org-keyring

Configure your obfsproxy server

obfs4 is also out there, which might be faster than scramblesuit, here is TOR's offcial manual for obfsproxy and other pluggable transports

  • Let's assume that your sh4d0ws0cks server is up and working fine, and your server port is 80
/usr/local/bin/obfsproxy --data-dir=/tmp/scramblesuit-server scramblesuit --password=SSSTIZ3LG5SSS43OMSSSM4LKGQFASSSS --dest=127.0.0.1:80 server 0.0.0.0:443&
  • If you want your obfsproxy server running in GNU Screen
ssh root@server.com -t screen
  • then execute the same command and press Ctrl + A and then press D to detatch screen while keep obfsproxy running

Configure obfsproxy client

  • I will use pi for this purpose, assume that I have obfsproxy installed on pi
obfsproxy scramblesuit --dest server_ip:443 --password=SSSTIZ3LG5SSS43OMSSSM4LKGQFASSSS client 0.0.0.0:1080 &
  • On my router, change SS's server address and server port to pi

ss_obfs_router

  • And here is my test result, it's taking up quite a lot of CPU resources... But working really great

resource_usage


Comments

comments powered by Disqus