FUCKGFW

方案:shadowsocks+proxychains+supervisor

shadowsocks

  • sudo pip install shadowsocks

  • vim /etc/supervisord.conf
    添加

[program:sspy]
command = sslocal -c /etc/shadowsocks.json
user = root
redirect_stderr = true
stdout_logfile = /root/wx/logs/sspy.log
  • 如果修改了 /etc/supervisord.conf ,需要执行 supervisorctl reload 来重新加载配置文件,否则不会生效。。。

proxychains

  • sudo apt-get install proxychains

  • vim /etc/proxychains.conf
    修改
    socks5 127.0.0.1 1080 //1080改为你自己的端口

完结

  • 在需要代理的命令前加上 proxychains
root@VM-102-242-ubuntu:~# proxychains wget https://twitter.com/
ProxyChains-3.1 (http://proxychains.sf.net)
--2017-02-22 12:53:49--  https://twitter.com/
Resolving twitter.com (twitter.com)... |DNS-request| twitter.com
|S-chain|-<>-127.0.0.1:1080-<><>-4.2.2.2:53-<><>-OK
|DNS-response| twitter.com is 104.244.42.193
104.244.42.193
Connecting to twitter.com (twitter.com)|104.244.42.193|:443... |S-chain|-<>-127.0.0.1:1080-<><>-104.244.42.193:443-<><>-OK
connected.
HTTP request sent, awaiting response... 200 OK
Length: 310842 (304K) [text/html]
Saving to: 'index.html'
index.html            100%[======================>] 303.56K   199KB/s    in 1.5s
2017-02-22 12:53:52 (199 KB/s) - 'index.html' saved [310842/310842]

你可能感兴趣的:(FUCKGFW)