shadowsocks 的安装和使用
1 2 3
| sudo apt-get install shadowsocks
sslocal -c shad.conf
|
1 2 3 4 5 6 7 8 9
| { "server": "servername", "server_port": 20070, "local_port": 1080, "password": "pass", "timeout": 600, "method": "way" }
|
proxy 的安装和使用
1
| sudo apt-get install privoxy
|
配置Privoxy, 打开 /etc/privoxy/config,
注释掉
1 2 3
| listen-address localhost:8118
|
在最后一行后边加上
1 2
| forward-socks5 / 127.0.0.1:1080 . listen-address 127.0.0.1:8118
|
然后重启Privoxy
1 2
| sudo service privoxy restart
|
然后就可以配置全局http proxy, sudo vi /etc/environment, 加入下面的代码
1 2
| export http_proxy=http://127.0.0.1:8118 export https_proxy=http://127.0.0.1:8118
|
https://gist.github.com/Alexniver/9a4f1791fe4305b0750a