更新源
如果是新系统,请先刷新软件源及更新软件
1 | sudo apt-get update && sudo apt-get upgrade |
Ubuntu 14.04 和 Ubuntu 16.04 用户需新增 PPA 源
1 | sudo apt-get install software-properties-common && sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev && sudo apt-get update |
安装 Shadowsocks-libev
1 | sudo apt install shadowsocks-libev |
安装 simple-obfs(依次运行)
1 | sudo apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libc-ares-dev libev-dev asciidoc xmlto automake git |
配置
编辑配置文件1
2
3
4
5
6
7
8
9
10
11
12sudo vim /etc/shadowsocks-libev/config.json
{
"server”:”0.0.0.0”,
"server_port":8588,
"local_port":7080,
"password":"xxx",
"timeout":600,
"method":"chacha20-ietf-poly1305",
"mode":"tcp_and_udp",
"plugin":"/usr/local/bin/obfs-server",
"plugin_opts":"obfs=http"
}
客户端
查看插件1
~/Library/Application Support/ShadowsocksX-NG/plugins/
插件配置1
2plugin:simple-obfs
plugin_opts:obfs=http;obfs-host=www.baidu.com
管理
开启服务
1
sudo systemctl start shadowsocks-libev
停止服务
1
sudo systemctl stop shadowsocks-libev
重启服务
1
sudo systemctl restart shadowsocks-libev
开机启动
1
sudo systemctl enable shadowsocks-libev
日志
1
systemctl status shadowsocks-libev
测试
1
ss-server -c /etc/shadowsocks-libev/config.json start -v
ps
1
ps -ef | grep -v grep | grep "server"