Skip to content

Conversation

@DHR60
Copy link
Contributor

@DHR60 DHR60 commented Jul 1, 2025

Features

  • 支持 anytls 配置
  • 支持类似于 Xray 的 IPIfNonMatch 等域名策略

Changes

  • dns 配置配置迁移为 1.12 版本
  • 将 sniff 配置迁移到 Rule Action
  • 迁移 WireGuard 到 endpoint
  • 为每个带域名的出站添加 domain_resolverdirect 出站不添加

Removed

  • sniff_override_destination,因为核心已将其弃用

Notes

  • 关于 sniff_override_destination 移除:

    • 请确保 DNS 配置正确且未被污染(包括 sing-box 和 Windows 网络设置)。如果传入被污染的 IP 地址,可能导致无法访问,除非服务器端配置了 sniff_override_destination
    • 建议将代理出站的域名使用远程 DNS 服务器解析,避免解析为国内 IP,会导致屏蔽回国流量的服务端访问失败(如 gstatic.com 等)。
  • resolve 规则动作说明:

    • 仅对目标为域名的规则生效,不影响 sniff 解析出的域名。
    • 后续所有规则匹配和出站均基于 resolve 动作解析出的 IP 地址。
  • 路由域名策略说明:

    • AsIs:原样生成用户规则,不添加 resolve 动作。
    • IPIfNonMatch:先生成用户规则,再添加 resolve 动作并再次生成含 IP 的用户规则。
    • IPOnDemand:先添加 resolve 动作,再原样生成用户规则。
  • 兼容性:

    • DNS 配置暂时兼容旧版写法。
  • sing-box DNS 设置:

    • Outbound 域名解析地址 可填写 tag://dns-local,需在自定义 DNS 配置中添加对应的 dns-local 服务器。

@DHR60
Copy link
Contributor Author

DHR60 commented Jul 1, 2025

预计将于 2025 年 7 月 30 日左右,sing-box 1.12.0 正式版发布后并入

有兴趣的可自行替换 v2rayN 和 sing-box 核心帮忙测试

https://github.com/DHR60/v2rayN/actions

@2dust
Copy link
Owner

2dust commented Jul 2, 2025

你上一次给合并到 https://github.com/2dust/v2rayN/tree/dev
这 PR 是合并到 master 还是 dev ?

如果是合并到 master ,可能还是要等 sing-box 1.12 发布后才合并;同时直接把 dev 删除了

@DHR60
Copy link
Contributor Author

DHR60 commented Jul 2, 2025

等正式版发布并到 master 吧

上次好像是因为我表述不太准确,并到了 dev,删掉就行

@2dust
Copy link
Owner

2dust commented Jul 2, 2025

好,明白了。
可能这个月会也会发布版本,这个 PR 就先放着

@DHR60
Copy link
Contributor Author

DHR60 commented Jul 6, 2025

@2dust 是否为 anytls 加入 reality 支持?唯一的问题是分享链接,按 VLESS 分享链接标准提案处理?

&security=reality&sni=www.exam.com&fp=chrome&pbk=xxx

security 不为 reality 则按 tls 处理

@2dust
Copy link
Owner

2dust commented Jul 7, 2025

anytls 现在官方没有出分享对吧,那就按 VLESS 来,这个分享方案算比较通用的。虽然个人觉得分享用 json 更强壮好用。
加 reality ,没有啥问题。

@DHR60
Copy link
Contributor Author

DHR60 commented Jul 7, 2025

anytls 现在官方没有出分享对吧,那就按 VLESS 来,这个分享方案算比较通用的。虽然个人觉得分享用 json 更强壮好用。 加 reality ,没有啥问题。

官方只给了最基础的 uri_scheme,只包含 sni 和 insecure

其他大部分支持 anytls 的客户端目前都不支持 anytls with reality 的分享

@DHR60 DHR60 force-pushed the singbox_1_12 branch 4 times, most recently from 5e1d4dc to 972c581 Compare July 11, 2025 15:36
@DHR60 DHR60 mentioned this pull request Jul 13, 2025
3 tasks
@DHR60
Copy link
Contributor Author

DHR60 commented Jul 22, 2025 via email

@Miku2563
Copy link

OK了

@DHR60 DHR60 force-pushed the singbox_1_12 branch 6 times, most recently from 7ed6b0e to faa540b Compare July 31, 2025 02:55
@rami01e
Copy link

rami01e commented Aug 4, 2025

Well, sing-box 1.12 was released today and the latest version of v2rayN doesn't support it at all! I manually updated sing-box core but v2rayN failed to initiate it and my local ip was shown instead! I hope this PR would fix the support for the new sing-box 1.12

@DHR60
Copy link
Contributor Author

DHR60 commented Aug 5, 2025

预计将于 2025 年 7 月 30 日左右,sing-box 1.12.0 正式版发布后并入

有兴趣的可自行替换 v2rayN 和 sing-box 核心帮忙测试

https://github.com/DHR60/v2rayN/actions

特别感谢 @dianxin623@Miku2563
截至目前,只有他们帮忙测试并提供了反馈。

感谢 @dianxin623 帮忙测试 sing-box 1.12 dns hosts 功能,并提供了
Adds tag resolver supports 功能的想法

感谢 @Miku2563 测试后发现的一处 rebase 了过时代码的 bug

@2dust
Copy link
Owner

2dust commented Aug 5, 2025

感谢大家。
计划 7.13.x 再发一两个小更新,稳定了就合并此 PR 。

This was referenced Aug 7, 2025
@2dust 2dust merged commit 7995bdd into 2dust:master Aug 10, 2025
@DHR60 DHR60 deleted the singbox_1_12 branch August 10, 2025 03:26
@DHR60 DHR60 mentioned this pull request Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants