openwrt与Sing-box完美搭配,官方singbox、超越插件的使用体验、解锁全部功能、自动更新配置与订阅

重点:配置文件中的DNS根据自己需求修改,

脚本已经升级,并支持tproxy模式,并且组合订阅更简单直观,请观看下一期视频!!

第一步:
商店安装sing-box

第二步:替换二进制文件为新版

第三步:测试运行

curl -L "http://192.168.10.12:5000/config/订阅地址&file=https://raw.githubusercontent.com/qichiyuhub/rule/refs/heads/master/config/singbox/config.json" -o /etc/sing-box/config.json
sing-box check -c /etc/sing-box/config.json
sing-box run -c /etc/sing-box/config.json
killall sing-box

第四步:放入脚本,设置自动运行和订阅

# 定时自动更新订阅并启动
echo "0 6 * * * /etc/sing-box/update-singbox.sh" >> /etc/crontabs/root

# 重启cron服务使配置生效
/etc/init.d/cron restart


# 测试
crontab -l

# 手动运行
sh /etc/sing-box/update-singbox.sh

官方singbox:
https://github.com/SagerNet/sing-box/releases/tag/v1.10.1

P核分支:
https://github.com/DustinWin/clash_singbox-tools/releases


P核配置文件:
https://raw.githubusercontent.com/qichiyuhub/rule/refs/heads/master/config/singbox/config-P.json

转换后端:

docker run -d --name sing-box-subscribe -p 5000:5000 jwy8645/sing-box-subscribe:amd64

机场支持提供singbox配置:

wget singbox_config_url -O /etc/sing-box/config.json
sing-box run -c /etc/sing-box/config.json