Administrator
发布于 2019-07-19 / 10 阅读
0
0

shadowsocks-libev安装

安装shadowsocks-libev

apt install -y shadowsocks-libev

安装simple-obfs(如果需要)

apt install -y simple-obfs

修改配置文件

nano /etc/shadowsocks-libev/config.json

以下内容仅供参考

{
    "server":["::", "0.0.0.0"],
    "mode":"tcp_and_udp",
    "server_port":8388,
    "local_port":1080,
    "password":"LyinkegJi",
    "timeout":86400,
    "method":"aes-256-gcm",
    "tcp_fast_open":true
}
simple-obfs版本
{
    "server":["::", "0.0.0.0"],
    "mode":"tcp_and_udp",
    "server_port":8388,
    "local_port":1080,
    "password":"LyinkegJi",
    "timeout":86400,
    "method":"aes-256-gcm",
    "plugin":"obfs-server",
    "plugin_opts":"obfs=http;fast-open"
}

常用控制命令

#启动

systemctl start shadowsocks-libev

#停止

systemctl stop shadowsocks-libev

#重启

systemctl restart shadowsocks-libev

#查看当前状态

systemctl status shadowsocks-libev

评论