vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
15.74k stars 2.94k forks source link

[Bug] v0.46.005-beta Meta + FakeIP + 劫持 Dnsmasq +绕过中国大陆功能工作不正常 #3836

Closed Aethersailor closed 2 months ago

Aethersailor commented 2 months ago

Verify Steps

OpenClash Version

v0.46.005-beta

Bug on Environment

Official OpenWrt

OpenWrt Version

OpenWrt 23.05

Bug on Platform

Linux-arm64

Describe the Bug

v0.46.005-beta版本,在启用 Meta + FakeIP混合 + Dnsmasq 劫持的情况下 若勾选绕过中国大陆,则会导致所有的国内域名会被解析成 FakeIP 并且无法访问,且日志提示劫持 53 至 OpenClash 内核后等待十几分钟也没有提示劫持还原 若不勾选绕过大陆,则会导致国内域名全部无法解析,Dnsmasq工作不正常

nslookup www.baidu.com 返回如下内容 [root@OpenWrt:11:17 PM ~] # nslookup www.baidu.com 127.0.0.1:53 nslookup: write to '127.0.0.1:53': Connection refused ;; connection timed out; no servers could be reached

PS,我手头有三台设备,三台设备的 OpenClash 均使用的相同版本和设置,其中这一台不能工作的设备用的是 Firewall,而另外两台用的 Firewall4 的设备则一切正常

To Reproduce

使用 Meta最新dev版本 + FakeIP混合 + Dnsmasq 劫持 + 绕过中国大陆

OpenClash Log

我想生成日志,但是一直卡在
收集数据...

Loading 等待命令执行完成...
一直卡在这一步,所以暂时无法提供日志了

但是系统日志内会反复出现如下内容:
Mon Apr  8 22:21:42 2024 daemon.crit dnsmasq[8003]: recompile with HAVE_IPSET defined to enable ipset directives at line 1 of /tmp/dnsmasq.d/dnsmasq_openclash_chnroute_pass.conf
Mon Apr  8 22:21:42 2024 daemon.crit dnsmasq[8003]: FAILED to start up
Mon Apr  8 22:21:47 2024 daemon.crit dnsmasq[8089]: recompile with HAVE_IPSET defined to enable ipset directives at line 1 of /tmp/dnsmasq.d/dnsmasq_openclash_chnroute_pass.conf
Mon Apr  8 22:21:47 2024 daemon.crit dnsmasq[8089]: FAILED to start up
Mon Apr  8 22:21:53 2024 daemon.crit dnsmasq[8130]: recompile with HAVE_IPSET defined to enable ipset directives at line 1 of /tmp/dnsmasq.d/dnsmasq_openclash_chnroute_pass.conf
Mon Apr  8 22:21:53 2024 daemon.crit dnsmasq[8130]: FAILED to start up
Mon Apr  8 22:21:58 2024 daemon.crit dnsmasq[8178]: recompile with HAVE_IPSET defined to enable ipset directives at line 1 of /tmp/dnsmasq.d/dnsmasq_openclash_chnroute_pass.conf
Mon Apr  8 22:21:58 2024 daemon.crit dnsmasq[8178]: FAILED to start up
Mon Apr  8 22:22:03 2024 daemon.crit dnsmasq[8219]: recompile with HAVE_IPSET defined to enable ipset directives at line 1 of /tmp/dnsmasq.d/dnsmasq_openclash_chnroute_pass.conf
Mon Apr  8 22:22:03 2024 daemon.crit dnsmasq[8219]: FAILED to start up
Mon Apr  8 22:22:09 2024 daemon.crit dnsmasq[8260]: recompile with HAVE_IPSET defined to enable ipset directives at line 1 of /tmp/dnsmasq.d/dnsmasq_openclash_chnroute_pass.conf
Mon Apr  8 22:22:09 2024 daemon.crit dnsmasq[8260]: FAILED to start up

打开以上报错信息涉及的文件,只有一行内容
ipset=/services.googleapis.cn/china_ip_route_pass

OpenClash Config

No response

Expected Behavior

希望能正常工作

Additional Context

No response