v1.3.10 feat: add naive support and switch NekoBox export to Throne

- add naive to protocol selection, quick install, and reload flows
- generate naive inbound config with username/password authentication
- create and refresh 200-day certificates for naive when missing, expired, or SNI changes
- export naive nodes for ShadowRocket, V2RayN, Throne, and sing-box clients
- replace NekoBox subscription output with Throne-compatible links
- include TLS certificate data in Throne subscription links
- update client prompts and compatibility notes for naive and Throne

v1.3.10 feat: 增加 naive 支持并将 NekoBox 导出切换为 Throne

- 将 naive 加入协议选择、极速安装和重载流程
- 生成带用户名 / 密码认证的 naive 入站配置
- 在证书缺失、过期或 SNI 变化时自动生成 / 刷新 200 天证书
- 为 ShadowRocket、V2RayN、Throne 和 sing-box 客户端导出 naive 节点
- 将 NekoBox 订阅输出替换为 Throne 兼容链接
- 在 Throne 订阅链接中附带 TLS 证书数据
- 更新 naive 与 Throne 相关客户端提示和兼容性说明
This commit is contained in:
fscarmen
2026-04-27 13:06:08 +00:00
parent 272aaab85c
commit dbb79a77ad
3 changed files with 217 additions and 83 deletions
+12 -8
View File
@@ -24,16 +24,18 @@
* * *
## 1.更新信息
2026.04.25 v1.3.10 Added native protocol, but client support is extremely limited, with Shadowrocket offering the best compatibility. For the sing-box core, you must use the -glibc or -musl version according to the requirements; refer to the official documentation for details: https://sing-box.sagernet.org/configuration/outbound/naive/; 增加 native 协议,支持该协议的客户端极少,Shadowrocket 支持最好。sing-box 内核需要按说明使用-glibc 或者 -musl 版本,详见官方说明 https://sing-box.sagernet.org/zh/configuration/outbound/naive/
2026.04.11 v1.3.9 1. remove pre-install UFW blocking logic, fallback to iptables when inactive; 2. avoid unnecessary sing-box restart for CDN / bandwidth / port hopping changes; 3. reduce redundant single-use functions; 1. 移除安装前 UFW 强制校验,inactive 自动回退 iptables; 2. 优选地址 / 带宽 / 端口跳跃修改不再重启 sing-box; 3. 清理单次调用函数,提升结构可读性
2026.04.10 v1.3.8 1. Automatically detect UFW and switch rule management accordingly; 2. Merge the old -p (port change) functionality into -d (config editor), simplifying usage; 3. Remove the standalone -p / -P entry points entirely; 1. 自动检测 UFW 并切换规则管理方式; 2. 将原有 -p(修改端口)功能合并到 -d(配置修改),简化使用方式; 3. 完全移除独立的 -p / -P 入口
2026.04.09 v1.3.7 1. Add support for enabling/disabling Hysteria2 port hopping and modifying port ranges after installation (sb -d); 2. Allow customization of Hysteria2 upload/download bandwidth without reinstalling; 3. Enhance client configuration with proper Hysteria2 bandwidth (up/down) and port hopping parameters; 1. 支持安装后启用/禁用 Hysteria2 端口跳跃,并可修改端口范围 (sb -d); 2. 支持自定义 Hysteria2 上下行带宽,无需重新安装; 3. 完善客户端配置,补充 Hysteria2 上传/下载速率及端口跳跃参数
<details>
<summary>历史更新 history(点击即可展开或收起)</summary>
<br>
>2026.04.10 v1.3.8 1. Automatically detect UFW and switch rule management accordingly; 2. Merge the old -p (port change) functionality into -d (config editor), simplifying usage; 3. Remove the standalone -p / -P entry points entirely; 1. 自动检测 UFW 并切换规则管理方式; 2. 将原有 -p(修改端口)功能合并到 -d(配置修改),简化使用方式; 3. 完全移除独立的 -p / -P 入口
>
>2026.04.09 v1.3.7 1. Add support for enabling/disabling Hysteria2 port hopping and modifying port ranges after installation (sb -d); 2. Allow customization of Hysteria2 upload/download bandwidth without reinstalling; 3. Enhance client configuration with proper Hysteria2 bandwidth (up/down) and port hopping parameters; 1. 支持安装后启用/禁用 Hysteria2 端口跳跃,并可修改端口范围 (sb -d); 2. 支持自定义 Hysteria2 上下行带宽,无需重新安装; 3. 完善客户端配置,补充 Hysteria2 上传/下载速率及端口跳跃参数
>
>2026.03.22 v1.3.6 1. Refactor: Support modification after installation (CDN, Reality SNI, node name, UUID/password, server IP); 2. Perf: Rewrite text() with bash nameref and pre-scanned TEXT_NEEDS_EVAL map to eliminate per-call grep subprocesses, significantly reducing repeated string-lookup overhead; 1. 重构:支持安装后多项修改(CDN、Reality SNI、节点名、UUID/密码、服务器 IP);2. 性能优化:用 bash nameref 和预扫描 TEXT_NEEDS_EVAL 关联数组重写 text() 函数,消除每次调用产生的 grep 子进程,大幅降低字符串查找开销
>
>2026.03.14 v1.3.5 Performance: Optimize concurrent process execution to significantly accelerate script installation. 性能优化:优化并发进程执行,大幅提升脚本安装速度
@@ -136,7 +138,7 @@
## 2.项目特点:
* 一键部署多协议,可以单选、多选或全选 ShadowTLS v3 / XTLS Reality / Hysteria2 / Tuic V5 / ShadowSocks / Trojan / Vmess + ws / Vless + ws + tls / H2 Reality / gRPC Reality / AnyTLS, 总有一款适合你
* 一键部署多协议,可以单选、多选或全选 ShadowTLS v3 / XTLS Reality / Hysteria2 / Tuic V5 / ShadowSocks / Trojan / Vmess + ws / Vless + ws + tls / H2 Reality / gRPC Reality / AnyTLS / NaiveProxy, 总有一款适合你
* 所有协议均不需要域名,可选 Cloudflare Argo Tunnel 内网穿透以支持传统方式为 websocket 的协议
* 节点信息输出到 V2rayN / Clash Verge / 小火箭 / Nekobox / Sing-box (SFI, SFA, SFM),订阅自动适配客户端,一个订阅 url 走天下
* 自定义端口,适合有限开放端口的 nat 小鸡
@@ -372,7 +374,7 @@ bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-b
| Key 大小写不敏感(Case Insensitive| Value |
| --------------- | ----------- |
| --LANGUAGE | c=中文; e=英文 |
| --CHOOSE_PROTOCOLS | 可多选,如 bcdfk<br> a=全部<br> b=XTLS + reality<br> c=hysteria2<br> d=tuic<br> e=ShadowTLS<br> f=shadowsocks<br> g=trojan<br> h=vmess + ws<br> i=vless + ws + tls<br> j=H2 + reality<br> k=gRPC + reality<br> l=AnyTLS |
| --CHOOSE_PROTOCOLS | 可多选,如 bcdfk<br> a=全部<br> b=XTLS + reality<br> c=hysteria2<br> d=tuic<br> e=ShadowTLS<br> f=shadowsocks<br> g=trojan<br> h=vmess + ws<br> i=vless + ws + tls<br> j=H2 + reality<br> k=gRPC + reality<br> l=AnyTLS<br> m=NaiveProxy |
| --START_PORT | 100 - 65520 |
| --PORT_NGINX | n=不需要订阅,或者 100 - 65520 |
| --SERVER_IP | IPv4 或 IPv6 地址,不需要中括号 |
@@ -559,7 +561,8 @@ services:
```
/etc/sing-box/ # 项目主体目录
|-- cert # 存放证书文件目录
| |-- cert.pem # SSL/TLS 安全证书文件
| |-- cert.pem # SSL/TLS 安全证书文件(用于大部分协议)
| |-- cert_200.pem # SSL/TLS 安全证书文件(专用于 NaiveProxy 协议)
| `-- private.key # SSL/TLS 证书的私钥信息
|-- conf # sing-box server 配置文件目录
| |-- 00_log.json # 日志配置文件
@@ -579,7 +582,8 @@ services:
| |-- 18_vless-ws-tls_inbounds.json # vless + ws + tls 协议配置文件
| |-- 19_h2-reality_inbounds.json # Reality http2 协议配置文件
| |-- 20_grpc-reality_inbounds.json # Reality gRPC 协议配置文件
| `-- 21_anytls_inbounds.json # AnyTLS 协议配置文件
| |-- 21_anytls_inbounds.json # AnyTLS 协议配置文件
| `-- 22_naive_inbounds.json # NaiveProxy 协议配置文件
|-- logs
| `-- box.log # sing-box 运行日志文件
|-- subscribe # sing-box server 配置文件目录