reference

  1. sudo apt-get update
  2. sudo apt-get install python-pip
  3. sudo pip install shadowsocks
  4. sudo apt-get install python-m2crypto
  5. sudo apt-get install build-essential
  6. sudo vi /etc/shadowsocks.json

paste following descriptions:

{

“server”:”your_droplet’s_IP_address”,

“server_port”:8000,

“local_port”:1080,

“password”:”your_password”,

“timeout”:600,

“method”:”aes-256-cfb”

}

7.sudo ssserver -c /etc/shadowsocks.json -d start

if browser won’t work, try this command:

sudo sslocal -c /etc/shadowsocks.json -d start

8.sudo vi /etc/rc.local

config auto start. paste the following code (depends on which one works ):

/usr/bin/python /usr/local/bin/ssserver -c /etc/shadowsocks.json -d start

or

/usr/bin/python /usr/local/bin/sslocal -c /etc/shadowsocks.json -d start

9. download SwitchyOmega for chrome or firefox

10. Use proxychains 

sudo apt-get install proxychains

sudo vi /etc/proxychains.conf

change the last line to: 

[ProxyList]
add proxy here …
meanwile
defaults set to “tor”
socks5 127.0.0.1 1080

usage:

proxychains  ping www.google.com

if can not preload libproxychains.so

ProxyChains-3.1 (http://proxychains.sf.net)
ERROR: ld.so: object ‘libproxychains.so.3’ from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

find the path of libproxychains.so.3

find /usr/ -name libproxychains.so.3 -print

change path: LD_PRELOAD in /usr/bin/proxychains

vi /usr/bin/proxychains

!/bin/sh
echo “ProxyChains-3.1 (http://proxychains.sf.net)”
if [ $# = 0 ] ; then
echo ” usage:”
echo ” proxychains [args]”
exit
fi
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3
exec “[email protected]




发表评论

电子邮件地址不会被公开。 必填项已用*标注