-
最近引入了一个 DNS 解锁服务用于解锁 ChatGPT, 但我之前一直在对全部流量使用 Cloudflare Warp (Wireguard), 因此, 需要针对部分域名使用 DNS 解锁服务及直接出站相关域名. 在配置 OpenAI 相关域名走直连出站时, 似乎没有使用到 DNS 解锁. 但如果不直连出站, 就可以进行 DNS 解锁 (目前的 DNS 解锁服务商似乎并无对 SNI 代理的入站 IP 进行限制, 但这是一个不确定因素). 服务器是仅 IPv4 的网络, 以下是有关的具体配置文件, 核心是被注释掉的那一部分, 如果注释它, DNS 解锁服务就能正常使用 (没有注释时, 使用 Cloudflare trace 查看 IP 是服务器自身的 IP 地址, 意为没有成功利用 DNS 解锁服务). 按我的理解, 域名进到 Xray 后由于匹配到 routing 规则, 应该交由 direct 出站, 又由于 domainStrategy: ForceIP, 应该使用 DNS 解锁服务解析并以这个 IP 出站. 从日志来看, 入站 Sniffing 已禁用. 谢谢! (另外刚刚发现 domainStrategy: ForceIP 的情况会导致 Wireguard 尝试使用网络不支持的 IPv6 去连接, 并获得大量 sendto: network is unreachable 错误) English Ver (Translated by Google) Recently, a DNS unlocking service was introduced to unlock ChatGPT, but I have been using Cloudflare Warp (Wireguard) for all traffic, so it is necessary to use the DNS unlocking service and direct outbound related domain names for some domain names. When configuring OpenAI-related domain names to go directly outbound, DNS unlocking does not seem to be used. But if you do not go directly outbound, you can do DNS unlocking (current DNS unlocking service providers do not seem to restrict the inbound IP of SNI proxy, but this is an uncertain factor). The server is an IPv4-only network. The following are the specific configuration files. The core is the commented-out part. If it is commented, the DNS unlocking service can be used normally (when there is no comment, use Cloudflare trace to check that the IP is the server's own IP address, which means that the DNS unlocking service has not been successfully used). As I understand it, after the domain name enters Xray, it should be handed over to direct outbound because it matches the routing rule, and because of domainStrategy: ForceIP, it should be resolved using the DNS unlocking service and outbound with this IP. From the log, Inbound sniffing is disabled. Thanks! (In addition, I just found that domainStrategy: ForceIP will cause Wireguard to try to connect using IPv6 that is not supported by the network, and get a lot of sendto: network is unreachable errors)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
我不太确定这是由于我配置问题, 还是属于一个 feature, 又或者属于一个 bug. 所以发至 Discussion, 希望有大佬能指点一下, 以解决配置上的困惑. I'm not sure if this is due to my configuration problem, a feature, or a bug. So I posted this to Discussion, hoping someone can give me some pointers to solve the configuration confusion. |
Beta Was this translation helpful? Give feedback.
-
问题已经解决, 属于配置问题: direct 部分 domainStrategy 应位于 settingsObject 内. domainStrategy: ForceIP 的情况会导致 Wireguard 尝试使用网络不支持的 IPv6 去连接实际上也可能是 Xray 本身或 AsIs 的问题. 解决完后的配置文件如下, 改善了如下问题:
|
Beta Was this translation helpful? Give feedback.
问题已经解决, 属于配置问题: direct 部分 domainStrategy 应位于 settingsObject 内. domainStrategy: ForceIP 的情况会导致 Wireguard 尝试使用网络不支持的 IPv6 去连接实际上也可能是 Xray 本身或 AsIs 的问题.
解决完后的配置文件如下, 改善了如下问题: