- 👍6
Search: #SingBox

群友 @Delusions6515 写的 Sub-Store 脚本
https://gist.github.com/Delusions6515/3e5fc9a30f2d2587d53acf6ca7054461
适用于:使用 Sub-Store 自动生成 sing-box-reF1nd 配置,但是机场下发 mihomo 配置使用私有 dns 的场景
原理:读取 本地订阅 / 远程文件(不是 Mihomo 配置!!!) 机场配置文件的 dns.proxy-server-nameserver / dns.nameserver 的内容,然后自动添加 DNS server 并给对应的节点自动添加 domain_resolver 配置
由于 DNS server 用了 group 所以不支持官方版本的 sing-box
添加domain_resolver是按tag的前缀来匹配的
如果你的前缀命名和默认不一样,请更改:psnPrefix - 节点 tag 前缀过滤(默认 `${psnSub} / `,可按实际格式自定义)
原消息
Sub-Store 合集
合集
恰饭推荐
群组
联系推广
#SubStore #配置 #DNS #订阅 #singbox #reF1nd- 🤡2
- ❤️1

- ❤️8
- 🥰1
客户端配置 ,仅在 v1.14.x 版本上测试
https://github.com/Repcz/Tool/raw/X/sing-box/v1.14.x/Client/sing-box.json
▎搭配 substore的 脚本操作https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#name=机场名称&outbound=🕳Proxy|Emby|Final🕳ℹ️🇭🇰 HongKong🏷ℹ️港|hk|hongkong|kong kong|🇭🇰🕳ℹ️🇨🇳 Taiwan🏷ℹ️台|tw|taiwan|🇹🇼🕳ℹ️🇯🇵 Japan🏷ℹ️日本|jp|japan|🇯🇵🕳ℹ️🇸🇬 Singapore🏷ℹ️^(?!.*(?:us)).*(新|sg|singapore|🇸🇬)🕳ℹ️🇺🇸 United States🏷ℹ️美|us|unitedstates|united states|🇺🇸
#singbox #SubStore
生成 sing-box 配置脚本更新
- outbound 参数支持换行大幅提升使用体验
生成 sing-box 配置
Sub-Store 合集
频道资源合集
恰饭推荐
群组
联系推广
#Sub-Store #SubStore #sing-box #singbox #配置 #示例 #脚本- ⚡4
- ❤️1

生成 sing-box 配置脚本更新
- 亚托莉佬的示例不维护了 请自行寻找或创建模板 然后配置脚本使用
可参考
https://github.com/huixiao666/pk-box
https://github.com/Sheldontao/Scripts/tree/main/sub-store-template/1.12or13
生成 sing-box 配置
Sub-Store 合集
频道资源合集
恰饭推荐
群组
联系推广
#Sub-Store #SubStore #sing-box #singbox #配置 #示例 #脚本- ❤️1

生成 sing-box 配置脚本更新
- 脚本支持节点和端点
Sub-Store 后端2.21.46sing-box WireGuard 调整并输出为 endpoints
生成 sing-box 配置
Sub-Store 合集
频道资源合集
恰饭推荐
群组
#Sub-Store #SubStore #sing-box #singbox #配置 #示例 #脚本- 👍4
- ❤️1
#singbox服务端 #端口复用
经由昨晚看到亚托莉佬配置的启发
写了个sing-box内通过sni分流实现不同协议复用端口的配置
可实现Trojan&AnyTLS&ShadowTLS&reality复用同一端口
配置地址
tips:请注意阅读配置中route.rules.domain中的注释,根据自己使用情况进行修改;利用其他sni进行伪装的协议(如shadowtls和reality),需使用不同的伪装域名- ❤️2
惊了 发现有人不知道怎么装指定版本的 sing-box...
最简单的方法:
打开官方文档 https://sing-box.sagernet.org/zh/installation/package-manager
如何装最新版就不说了
找到这一段指定版本:
curl -fsSL https://sing-box.app/install.sh | sh -s -- --version <version>
例如curl -fsSL https://sing-box.app/install.sh | sh -s -- --version 1.12.0
至于版本哪来的 看 https://github.com/SagerNet/sing-box/releases
#sing-box #singbox
- ❤️3

生成 sing-box 配置脚本更新
- 支持自动使用JSON5
Sub-Store 后端2.19.61脚本内ProxyUtils新增JSON5
可用于解析 JSON5 https://github.com/json5/json5
生成 sing-box 配置
Sub-Store 合集
频道资源合集
恰饭推荐
群组
#Sub-Store #SubStore #sing-box #singbox #配置 #示例 #脚本


Sub-Store 文件动态生成
sing-box 配置示例
亚托莉佬已更新 1.11.x 和 1.12.x
Sub-Store 合集
频道资源合集
恰饭推荐
群组
#Sub-Store #SubStore #sing-box #singbox #配置 #示例- 👍3

Sub-Store 文件动态生成
sing-box 配置示例
新增 Lucy 的配置示例
E5 佬的配置示例
Sub-Store 合集
频道资源合集
恰饭推荐
群组
#Sub-Store #SubStore #sing-box #singbox #配置 #示例- 👍1

- ❤️2
- 👍1
如何让容器/进程不走代理
5202 年了, 还有人不会...根本不需要 macvlan
0. 创建一个用户useradd -u 8964 xxx usermod -aG sudo xxx id xxx
以二进制版 snell-server 为例
1. 编辑/etc/systemd/system/snell-server.service里的 User[Service] User=xxx
2. 重启systemctl daemon-reload systemctl restart snell-server
3. 检查ps -eo user,group,uid,gid,comm | grep snell ps -u 8964
以容器版 snell-server 为例
1. 配置容器user: 8964:8964
2. 检查ps -eo user,group,uid,gid,comm | grep snell ps -u 8964
以容器版 qBittorrent 为例
1. 配置容器environment: - UID=8964 - GID=8964
3. mihomo 配置参考, sing-box 同理tun: exclude-uid: [8964]
重载配置/重启
4. 检查ps -eo user,group,uid,gid,comm | grep qbittorrent ps -u 8964
频道资源合集
恰饭推荐
群组
#代理 #容器 #配置 #服务 #TUN #mihomo #singbox #docker #绕过 #exclude #uid- 👍2
- ❤️1

- ❤️3
Sbshell: 官方 sing-box 客户端辅助脚本--非服务端
qichiyuhub/sbshell
频道资源合集
恰饭推荐
群组
#开源 #GitHub #singbox #sbshell #代理 #订阅 #脚本- ❤️2
- 👍2
#Sub-Store #SubStore #sing-box #singbox #配置 #示例
Sub-Store 文件动态生成
sing-box 配置补充说明
亚托莉佬:可能你第一个节点不可用
detour 里面的 groups 第一个节点
因为还在初始化阶段
不可能开始 url test
所以要确保第一个可用
修改亚托莉佬示例配置中的外部资源逻辑
为 使用 GitHub 加速服务 并 直连:$content = $content.replace(/(https?:\/\/github\.com\/)/g, 'https://你的github加速服务/$1').replace(/"download_detour": "proxy"/g, '"download_detour": "direct"')
相关内容
动态生成 sing-box 配置
快速生成 sing-box 机场入口+落地节点 代理链 示例
Sub-Store 代理 App 版安装下载
Sub-Store 服务器/云平台/Docker/Android 版的相关教程- ❤️3