美文网首页
Ubuntu 下如何上网

Ubuntu 下如何上网

作者: 大明白 | 来源:发表于2015-12-05 15:57 被阅读112次

安装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中选择methodAutomatic,填入pac文件。

file:///home/xxx/.shadowsocks/autoproxy.pac

至此,可以痛快上网啦~~添加开机自启动

相关文章

网友评论

      本文标题:Ubuntu 下如何上网

      本文链接:https://www.haomeiwen.com/subject/jlnshttx.html