安装:
sudo pip install shadowsocks
任意位置创建 .shadowsocks.json, 填入以下内容:
{
"server":"remote_ip",
"server_port":remote_port,
"local_port":local_port,
"password":"password",
"timeout":600,
"method":"aes-256-cfb"
}
启动:
sslocal -c ~/.shadowsocks.json
使用的时候注意, 协议名为 socks5:
socks5://127.0.0.1:1080
使用 polipo 将 socks5 转为 http:
sudo apt-get install polipo
sudo service polipo stop
vim ~/.polipo.conf
# 输入以下内容
# This file only needs to list configuration variables that deviate
# from the default values. See /usr/share/doc/polipo/examples/config.sample
# and "polipo -v" for variables you can tweak and further information.
logSyslog = true
proxyAddress = "0.0.0.0"
socksParentProxy = "127.0.0.1:1080"
socksProxyType = socks5
proxyPort = 8123
chunkHighMark = 50331648
objectHighMark = 16384
serverMaxSlots = 64
serverSlots = 16
serverSlots1 = 32
# 重新启动polipo
polipo -c ~/.polipo.conf &
Comments