开启私人DNS且开启中国域名中国IP时无法连接到代理
描述问题
预期行为: 1、Android 14,NekoBox版本v1.2.9 play,使用hysteria2的代理服务器,在系统设置中开启私人DNS并使用阿里的DNS。 2、在nb4a的路由中开启中国域名以及中国IP。 3、在浏览器中能正常访问国内IP及域名,但是所有需要过代理的IP和域名都无法打开。 4、在关闭私人DNS之后,中国域名及中国IP规则能正常生效,且代理连接也恢复正常。 5、查看hysteria2的服务端日志,似乎是能收到连接请求,但是会有i/o timeout类似的报错。
实际行为: 同上。
如何复现
同上。
日志
如果有日志,请上传。请在文档内查看导出日志的详细步骤。 `2024/04/11 03:48:26 DEBUG[0097] [4005932680 10.28s] inbound/tun[tun-in]: connection closed: upload: raw-read tcp4 172.19.0.1:46219->172.19.0.2:10029: use of closed network connection | download: remote error: dial tcp4 93.46.8.90:443: i/o timeout
2024/04/11 03:48:27 INFO[0098] [3165843861 0ms] inbound/tun[tun-in]: inbound connection from 172.19.0.1:44418 2024/04/11 03:48:27 INFO[0098] [3165843861 0ms] inbound/tun[tun-in]: inbound connection to 35.186.227.140:443 2024/04/11 03:48:27 DEBUG[0098] [3165843861 4ms] router: sniffed protocol: tls, domain: sync-1-us-west1-g.sync.services.mozilla.com 2024/04/11 03:48:27 INFO[0098] [3165843861 5ms] outbound/hysteria2[proxy]: outbound connection to 35.186.227.140:443 2024/04/11 03:48:29 DEBUG[0100] [3397338004 10.1s] inbound/tun[tun-in]: connection closed: download: use of closed network connection 2024/04/11 03:48:31 INFO[0102] [2648724447 0ms] inbound/tun[tun-in]: inbound connection from 172.19.0.1:42104 2024/04/11 03:48:31 INFO[0102] [2648724447 0ms] inbound/tun[tun-in]: inbound connection to 8.7.198.46:443 2024/04/11 03:48:31 DEBUG[0102] [2648724447 8ms] router: sniffed protocol: tls, domain: play.google.com 2024/04/11 03:48:31 INFO[0102] [2648724447 9ms] outbound/hysteria2[proxy]: outbound connection to 8.7.198.46:443 2024/04/11 03:48:33 DEBUG[0104] [2969538212 50.20s] inbound/tun[tun-in]: connection closed: download: io: read/write on closed pipe | upload: io: read/write on closed pipe | upstream: context canceled 2024/04/11 03:48:34 DEBUG[0105] [3165843861 6.80s] inbound/tun[tun-in]: connection closed: download: use of closed network connection 2024/04/11 03:48:41 DEBUG[0112] [2648724447 10.34s] inbound/tun[tun-in]: connection closed: upload: raw-read tcp4 172.19.0.1:46219->172.19.0.2:10032: use of closed network connection | download: remote error: dial tcp4 8.7.198.46:443: i/o timeout 2024/04/11 03:48:43 INFO[0114] [1027143455 0ms] inbound/tun[tun-in]: inbound connection from 172.19.0.1:34824 2024/04/11 03:48:43 INFO[0114] [1027143455 0ms] inbound/tun[tun-in]: inbound connection to 35.186.227.140:443 2024/04/11 03:48:43 DEBUG[0114] [1027143455 9ms] router: sniffed protocol: tls, domain: sync-1-us-west1-g.sync.services.mozilla.com`
私人DNS与任何代理的dns分流都会冲突,哪怕不是翻墙的,网易uu 迅游都会让你关闭私人DNS 可以关闭了