shadowsocks
安装shadowsocks
apt-get install python-pip |
创建配置文件,ubuntu14.04以上可以使用fast_open
{ |
启动shadowsocks服务器端,shadowsocks最新版现在已经支持后台运行
ssserver -c /etc/shadowsocks.json -d start |
启动shadowsocks客户端,这里需要指定一个pid file和log file 否则会和ssserver的冲突
sslocal -c /etc/shadowsocks.json -d start --pid-file /tmp/sslocal.pid --log-file /tmp/sslocal.log |
polipo
安装polipo
apt-get install polipo |
修改配置文件/etc/polipo/config
proxyAddress = "0.0.0.0" |
重启polipo:
/etc/init.d/polipo restart |
验证是否正常工作:
export http_proxy="http://127.0.0.1:8123/" |
如果正常,会打印出vps的地址