- install python, python-pip, python-pip and ss.
sudo apt-get install python
sudo apt-get install python-pip
sudo pip install shadowsocks
- config shadowsocks, like shawdowsocks.json at root this repository root diretory, and run ss
sudo sslocal -c shawdowsocks.json -d start
- config proxy
sudo apt-get install polipo
sudo cp config /etc/polipo/config
- restart polipo and test
sudo /etc/init.d/polipo restart
export http_proxy="http://127.0.0.1:8123/"
curl www.google.com
when you restart you computer, you need rerun this command
sudo sslocal -c shawdowsocks.json -d start
export http_proxy="http://127.0.0.1:8123/"
This config is Global mode, if your want used PAC mode, need config as blew
- install genpac
sudo pip install genpac
- output pac file
mkdir ~/shadowsocks
cd shadowsocks
genpac --proxy="SOCKS5 127.0.0.1:1080" --gfwlist-proxy="SOCKS5 127.0.0.1:1080" -o autoproxy.pac --gfwlist-url="https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt"