Skip to content

第六步 进阶玩sing‐box

cooip-jm edited this page Mar 6, 2024 · 4 revisions

官方Wiki

https://sing-box.sagernet.org/zh/installation/package-manager/#_2

两步搞定,但是config.json需要自己好好弄弄

telegram-cloud-photo-size-5-6262697917349477892-y

sing-box 官方有一键脚本,systemd都给做完了😂自己搞定config.json就行

如要使用最新的Beta版(debian/ubuntu)使用这个脚本

bash <(curl -fsSL https://raw.githubusercontent.com/cooip-jm/About-openwrt/main/sing-box-deb-install.sh)

具体参考

https://github.com/Toperlock/sing-box-subscribe
image

有些优点

比如比较省内存

telegram-cloud-photo-size-5-6262697917349477889-y

可以蹭用mihomo的ui面板

telegram-cloud-photo-size-5-6262697917349477884-y

使用自定义模版生成订阅,顺便自己写个定时,更新最新的内核

telegram-cloud-photo-size-5-6287324843212912550-y image

6 */2 * * * cd ~/sub && python3 main.py
1 */3 * * * * bash <(curl -fsSL https://raw.githubusercontent.com/cooip-jm/About-openwrt/main/sing-box-deb-install.sh)

支持进出都配置协议

关于server端的玩法

https://github.com/yonggekkk/sing-box_hysteria2_tuic_argo_reality

image