shadowsocks 1 2 3 4 5 6 7 sudo apt-get install python-pip sudo pip install shadowsocks ## CentOS 下的安装yum install python-setuptools && easy_install pip pip install shadowsocks
建立配置文件,例:服务器地址为 xxxx.com
,端口号 52239
,密码 SOME_PASSWORD
,保存到 ~/shadowsocks.json
1 2 3 4 5 6 7 8 9 10 { "server" : "xxxx.com" , "server_port" : 52239 , "local_address" : "127.0.0.1" , "local_port" : 1080 , "password" : "SOME_PASSWORD" , "timeout" : 600 , "method" : "aes-256-cfb" , "fast_open" : false }
1 2 ## 启动 shadowsocks sudo sslocal -c ~/shadowsocks.json -d start
安装 polipo 使用 polipo 进行二次转发
1 2 3 4 5 ## Ubuntu 下的安装 sudo apt-get install polipo ## CentOS 下的安装 sudo yum install polipo
编辑配置文件,保存到 /etc/polipo/config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 logSyslog = true logFile = /var/log/polipo/polipo.logproxyAddress = "0.0.0.0" socksParentProxy = "127.0.0.1:1080" socksProxyType = socks5chunkHighMark = 50331648 objectHighMark = 16384 serverMaxSlots = 64 serverSlots = 16 serverSlots1 = 32
1 2 sudo service polipo restart
1 2 export http_proxy ="http://127.0.0.1:8123/"
参考链接: http://dearmadman.com/2015/08/30/use-shadowsocks-in-ubuntu/ https://wiki.archlinux.org/index.php/Polipo_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) http://blog.xdq.me/centos-7-an-zhuang-polipo/