酸酸乳搭建记录
文章目录
酸酸乳搭建记录。
迫于缺IP,缺梯子,入了linode TK2的坑。
不折腾了,一键搞定妥妥的!记录下备用。
背景
Shadowsocks是clowwindy开发的一个开源代理加密协议。
SSR服务器搭建
一键脚本
- 安装
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh
chmod +x shadowsocksR.sh
./shadowsocksR.sh 2>&1 | tee shadowsocksR.log
# 查询状态
/etc/init.d/shadowsocks status
- 卸载
./shadowsocksR.sh uninstall
- 多用户配置
{
"server":"0.0.0.0",
"server_ipv6": "[::]",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8989":"password1",
"8990":"password2",
"8991":"password3"
},
"timeout":300,
"method":"aes-256-cfb",
"protocol": "origin",
"protocol_param": "",
"obfs": "plain",
"obfs_param": "",
"redirect": "",
"dns_ipv6": false,
"fast_open": false,
"workers": 1
}
控制命令
- 启动:/etc/init.d/shadowsocks start
- 停止:/etc/init.d/shadowsocks stop
- 重启:/etc/init.d/shadowsocks restart
- 状态:/etc/init.d/shadowsocks status
相关路径
- 配置文件路径:/etc/shadowsocks.json
- 日志文件路径:/var/log/shadowsocks.log
- 代码安装目录:/usr/local/shadowsocks
BBR加速
- 锐速闭源,BBR是Google推出的黑科技;
- 通过优化和控制TCP的拥塞,充分利用带宽并降低延迟;
- Linux kernel 4.9 以上;KVM架构;
- Youtube 1080P基本没问题;
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh
客户端
- Windows
- Android : SSR
- OS X
- IOS
- Shadowrocket
- Potatso
- Potatso Lite