Repository navigation
NextBox v2.3.0
NextBox v2.3.0
Rule sets, an optional Windows service for TUN mode and autostart, the matched rule and exit node on the connections page, picking programs, search in settings, and a smaller package (42.0 MB → 33.4 MB). 新增规则集、可选的 Windows 服务(用于 TUN 模式和开机自启)、连接页显示命中的规则和出口节点、选择进程、设置搜索,安装包从 42.0 MB 减小到 33.4 MB。
New / 新功能
- Rule sets: Add rule set creates a named rule that matches domains, full domains, domain keywords, domain regexes, site categories, IP ranges, IP regions, programs and sing-box rule-sets downloaded from a URL (binary
.srsor source.json; a source rule-set is compiled to binary with the bundled core). Anything it matches goes to its one target. All kinds are listed when the dialog opens, items can be pasted in bulk, and a rule-set URL can be downloaded once to check it. A rule set is one step of the route; in text mode it is written asset:name, targetfollowed by indented items. Clash rule providers are not supported · 规则集:「添加规则集」新建一条有名称的规则,可以同时按域名、完整域名、域名关键词、域名正则、网站分类、IP 段、IP 归属地、程序,以及从网址下载的 sing-box 规则集(二进制.srs或源格式.json,源格式由内置内核编译为二进制)匹配,命中的连接都走它的同一个去向。打开窗口时列出全部类型,内容可以批量粘贴,规则集网址可以先下载一次检查能否使用。规则集在路由路径里是一个步骤;文本模式里写作set:名称, 去向,下面缩进的行是它的内容。不支持 Clash 规则 - Service mode (optional): Settings → TUN mode → Install service copies
NextBoxService.exeand the core intoC:\Program Files\NextBox Service(one administrator approval) and registers a Windows service running as LocalSystem. TUN mode then starts the core through the service, so NextBox itself runs without administrator rights. NextBox talks to the service over a named pipe that only the accounts which installed it and administrators can open, and checks that the pipe belongs to the service process. The service only runs configs whose file paths it controls, and stops the core when NextBox disconnects or exits. Uninstall service stops and deletes the service and its folder; without the service, TUN mode needs NextBox to run as administrator, as before · 服务模式(可选):「设置 → TUN 模式 → 安装服务」把NextBoxService.exe和一份内核复制到C:\Program Files\NextBox Service(需要授权一次管理员),并注册一个以 LocalSystem 运行的 Windows 服务。之后 TUN 模式通过服务启动内核,NextBox 本身不需要以管理员身份运行。NextBox 通过命名管道与服务通信,管道只允许安装服务的账户和管理员打开,NextBox 也会核对管道属于服务进程。服务只运行由它决定文件路径的配置,NextBox 断开或退出时服务会停止内核。「卸载服务」会停止并删除服务及其文件夹;不安装服务时,TUN 模式和以前一样需要以管理员身份运行 NextBox - Start with Windows through the service: with the service installed, the service starts NextBox (as the logged-on user, not elevated) when that user logs on, instead of a Run key entry or a scheduled task · 通过服务开机自启:安装服务后,由服务在用户登录时以该用户身份(不提权)启动 NextBox,不再使用注册表启动项或计划任务
- Connections page: one column shows the step a connection matched (rule set, rule name, catalog service, scene, LAN, or the rest of the traffic) and below it the exit (node, or policy group → node, or direct). Each routing step now goes through an outbound of its own that points to the real target, so the core's connection list tells which step matched · 连接页:同一列显示连接命中的步骤(规则集、规则名称、服务目录里的服务、常用场景、局域网或其余流量),下面一行是出口(节点、分组代理 → 节点,或直连)。实现方式:每个分流步骤经过一个只指向实际去向的专用出站,内核的连接列表因此能反映命中的是哪一步
- Rules can be given a name (the pencil next to a rule); the connections page shows it · 规则可以起名称(规则旁的铅笔按钮),连接页会显示这个名称
- Program rules: pick from the programs running now (read from the Windows process list), or choose an
.exefile · 程序规则:可以从正在运行的程序里勾选(读取 Windows 进程列表),也可以选择.exe文件 - IP regions: 247 countries and regions to choose from, searchable by name in Chinese or English, by code, and by pinyin initials (e.g.
rbfor 日本) · IP 归属地:可选 247 个国家和地区,可以按中英文名称、代码和简拼(例如rb找到日本)搜索 - Search in settings: the box at the top left (Ctrl+F) searches the names and descriptions of the options on the settings page and scrolls to the one picked · 设置搜索:设置页左上角的搜索框(Ctrl+F)在设置项的名称和说明中查找,点结果滚动到该设置项
Changed / 改动
- The bundled core is built with only the features NextBox uses (79.4 MB → 45.3 MB). Left out compared with the official Windows build: Tailscale, cloudflared, OpenVPN / OpenConnect, USB/IP, ACME and the CCM / OCM services. All protocols NextBox supports, including NaiveProxy, Hysteria2, TUIC and WireGuard, are included · 内置内核只编入 NextBox 用到的功能(79.4 MB → 45.3 MB)。与官方 Windows 版相比去掉了 Tailscale、cloudflared、OpenVPN / OpenConnect、USB/IP、ACME 和 CCM / OCM 服务;NextBox 支持的协议(包括 NaiveProxy、Hysteria2、TUIC、WireGuard)都保留
- Steam in the service catalog is two entries, store / community and downloads, each a list of domain suffixes. The geosite
steamlist used before contains both kinds of domains, so one choice sent both the same way. A Steam choice made in v2.2 is converted into the two entries with the same target. The Game downloads direct scene now also includes Steam's download domains · 服务目录里的 Steam 拆成「商店 / 社区」和「下载」两项,各自是一组域名后缀。之前使用的 geositesteam列表同时包含这两类域名,只能统一指定去向。v2.2 里对 Steam 的设置会自动转换成这两项,去向不变。「游戏下载直连」场景也加入了 Steam 的下载域名 - When the core does not answer in time, the message includes its last log lines. When NextBox was started by Windows less than 10 minutes after boot, it waits up to 45 s (instead of 10 s) for the core; a failed connect after a start by Windows is retried twice, after 5 s and 15 s · 内核没有按时响应时,提示里附上内核最后的日志。由 Windows 开机自启、且距开机不到 10 分钟时,NextBox 等待内核最长 45 秒(原为 10 秒);开机自启后自动连接失败时,分别在 5 秒和 15 秒后再试两次
- The route tester resolves a domain with the direct DNS before the steps that match IP addresses, as the core now does, and shows the address it used · 规则测试和内核一样,在按 IP 判断的步骤之前用直连 DNS 解析域名,并显示用于判断的地址
- The Meituan entry was removed from the service catalog · 服务目录去掉了美团
Fixes / 修复
- Rules by IP region and IP range did not match connections that reach the core as a domain name (for example every connection through the system proxy): sing-box compares IP rules only with an address, and the domain was never resolved, so such connections went on to the next steps. NextBox now inserts a
resolveaction using the direct DNS before the first step that matches IP addresses. Domains that reach that step are therefore looked up through the direct DNS · 按 IP 归属地和 IP 段的规则对以域名到达内核的连接(例如经系统代理的所有连接)不生效:sing-box 只用 IP 地址匹配 IP 规则,而这些域名没有被解析,连接会继续交给后面的步骤。现在 NextBox 在第一个按 IP 判断的步骤之前插入一条使用直连 DNS 的resolve动作;因此到达这一步的域名会经直连 DNS 查询 - A start failure of any kind made NextBox retry with only the selected node and log that the other nodes were not accepted, also when the core had only been slow to start. The retry now happens only when the core exits with an error · 内核任何原因启动失败时,NextBox 都会改为只加载当前节点重试,并记录为其他节点未被接受,即使内核只是启动得慢。现在只有内核报错退出时才这样重试
- A rule added but left empty stayed on the rules page. Empty rules and rule sets are now removed when the settings page is opened or left · 添加后没有填写的规则会一直留在规则页。现在打开或离开设置页时会删除空的规则和规则集
- Disabled rules were written as comments in text mode and therefore lost when the text was read back. They are now written with a leading
!· 文本模式把已停用的规则写成注释,读回时这些规则会丢失。现在用行首的!表示停用 - The text of an empty site category or IP region box was not centred: its style name was also used by a page-wide style · 网站分类、IP 归属地选择框为空时文字没有居中:它的样式名与一个全局样式重名
Install / 安装
- Download
NextBox-v2.3.0-windows-amd64.zipbelow and extract it to a writable folder (notC:\Program Files). To upgrade, replace the old files and keep theconfigfolder.
下载下方压缩包,解压到有写入权限的文件夹(不要放在C:\Program Files)。升级时覆盖旧文件,保留config文件夹即可。 - Run
NextBox.exe. The build is not code-signed: if SmartScreen warns, choose More info → Run anyway.
运行NextBox.exe。程序未签名,如遇 SmartScreen 拦截,点击「更多信息 → 仍要运行」。
Requires Windows 10 / 11 x64 with WebView2 (preinstalled on Windows 11).
需要 Windows 10 / 11 64 位及 WebView2 运行时(Windows 11 自带)。
If the service is installed, update it after replacing NextBox or its core: Settings → TUN mode shows Update service when the versions or the cores differ.
安装了服务时,替换 NextBox 或其内核后需要更新服务:版本或内核不一致时,「设置 → TUN 模式」会显示「更新服务」。
Rule sets and rule names are new fields in the rules of a backup. NextBox for Android and NextBox for Windows before v2.3.0 drop rule sets and rule names when they import such a backup.
规则集和规则名称是备份中新增的字段。NextBox Android 版和 v2.3.0 之前的 Windows 版导入这类备份时会丢弃规则集和规则名称。
Checksum / 校验
SHA-256 d702c4fa18aa8ccab7b1746d89cff7ec671bce37b1ad4a46b3468453f431e306 NextBox-v2.3.0-windows-amd64.zip
The bundled core/sing-box.exe is built without modification from the official sing-box v1.14.4 source, with only the build tags NextBox needs; core/libcronet.dll comes from cronet-go at the version the sing-box source pins. Service icons are from Simple Icons (CC0). NextBox is not affiliated with SagerNet / sing-box or MatsuriDayo / nekoray.
内置的 core/sing-box.exe 由官方 sing-box v1.14.4 源码未经修改编译而成,只编入 NextBox 需要的功能;core/libcronet.dll 来自 sing-box 源码锁定版本的 cronet-go。服务图标来自 Simple Icons(CC0)。NextBox 与 SagerNet / sing-box、MatsuriDayo / nekoray 无隶属关系。