shadowsocks 的安装和使用
1 | sudo apt-get install shadowsocks |
1 | { |
proxy 的安装和使用
1 | sudo apt-get install privoxy |
配置Privoxy, 打开 /etc/privoxy/config,
注释掉
1 | listen-address localhost:8118 |
在最后一行后边加上
1 | forward-socks5 / 127.0.0.1:1080 . |
然后重启Privoxy
1 | sudo service privoxy restart |
然后就可以配置全局http proxy, sudo vi /etc/environment, 加入下面的代码
1 | export http_proxy=http://127.0.0.1:8118 |