安装ss
sudo pip install shadowsocks
配置ss,/etc/shadowsocks/config.json
文件
{
"server":"服务器地址",
"server_port":服务器端口,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"服务器密码",
"timeout":300,
"method":"加密方式",
"fast_open": false,
"workers": 1
}
启动啦
sslocal -c /etc/shadowsocks/config.json
尝试一下,恩?依然无法打开google,这就对了,要是能打开就不需要ss了。下面配置网络:
首先生成pac文件
cd ~
mkdir .shadowsocks
cd .shadowsocks
sudo pip install genpac
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"
System settings
-》Network
-》Network proxy
中选择method
为Automatic
,填入pac文件。
file:///home/xxx/.shadowsocks/autoproxy.pac
至此,可以痛快上网啦~~添加开机自启动
网友评论