Debian搭建节点
Debian系统上搭建代理节点教程
#tech / ops / vps
#type / howto
#status / growing
[!info] related notes
Debian搭建节点
1. 基本安全设置(可选)
- 该 root 密码
- 改 ssh 默认端口(安装 UFW 防火墙并启用)
2. 启用 BBR
在Debian 启用可以显著提高网络的速度和可靠性。BBR可以降低数据包丢失,增加吞吐量,优化网络性能。
Debian检查是否开启命令:
sysctl net.ipv4.tcp_congestion_control net.core.default_qdisc
一键开启命令:
echo -e "\nnet.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p
输入以下,则已经开启
net.ipv4.tcp_congestion_control = bbr
net.core.default_qdisc = fq
5. 安装singbox
bash <(curl -sL "https://raw.githubusercontent.com/qichiyuhub/autoshell/refs/heads/main/install_singbox.sh")
6. 编辑配置文件
编辑完上传到 /etc/sing-box 目录覆盖原始配置
就使用 ss 和 vless 协议,需要修改的内容就是密码和 客户端文件中的对应主机的 ip
7. 启动sing-box
| 命令 | 说明 |
|---|---|
sudo systemctl enable sing-box | 启用服务,开机自启 |
sudo systemctl start sing-box | 运行 |
sudo systemctl restart sing-box | |
sudo journalctl -u sing-box --output cat -f | 看日志 |
8. 客户端订阅生成
使用substore转为多种客户端订阅
参考资料
https://www.qichiyu.com/750.html https://lot.pm/enable-bbr-on-debian.html Youtube 视频