OpenClash icon indicating copy to clipboard operation
OpenClash copied to clipboard

[Bug] 检测到 Dnsmasq 工作异常 提示反复出现

Open winnie-neil opened this issue 1 year ago • 7 comments

Verify Steps

  • [X] Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • [X] Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • [X] Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • [X] Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • [X] Definite 这确实是 OpenClash 出现的问题
  • [ ] Contributors 我有能力协助 OpenClash 开发并解决此问题
  • [ ] Meaningless 我提交的是无意义的催促更新或修复请求

OpenClash Version

v0.46.002-beta

Bug on Environment

Other

OpenWrt Version

OpenWrt 23.198.59743-991daf5

Bug on Platform

Linux-amd64(x86-64)

Describe the Bug

日志中反复出现:警告:检测到 Dnsmasq 工作异常,设置防火墙 DNS 劫持规则... 见截图,功能目前未见明显影响,有时会断网,几秒钟后自动恢复(不确定是否是由本issue引起的)。

截屏2024-03-05 17 39 44

To Reproduce

随时出现,一直存在

OpenClash Log

见附件

OpenClash Config

No response

Expected Behavior

请求排除故障,告知原因(如dnsmasq问题)

Additional Context

OpenClash 调试日志.txt

winnie-neil avatar Mar 05 '24 09:03 winnie-neil

尝试以下命令

uci set dhcp.@dnsmasq[0].localuse="1"
uci commit dhcp
/etc/init.d/dnsmasq restart

vernesong avatar Mar 05 '24 13:03 vernesong

尝试上述命令并尝试https://github.com/vernesong/OpenClash/issues/3765#issuecomment-1977793826 给出的iptable命令均无效。请见截图。谢谢! 截屏2024-03-06 00 34 58

winnie-neil avatar Mar 05 '24 16:03 winnie-neil

尝试以下命令

uci set dhcp.@dnsmasq[0].localuse="1"
uci commit dhcp
/etc/init.d/dnsmasq restart
image

大佬能更新一下自动编译吗?现在不能用了,谢谢

qin9125 avatar Mar 06 '24 02:03 qin9125

经过反复测试,刚刚重启openwrt后是可以的(图1),但过了日志中的这一步:提示:检测到 Dnsmasq 正常工作,还原防火墙 DNS 劫持规则... 之后,就不行了,如图2。请作者参考,谢谢! 截屏2024-03-06 11 44 37 图1

截屏2024-03-06 11 44 49 图2

winnie-neil avatar Mar 06 '24 03:03 winnie-neil

你的日志里面 nslookup www.baidu.com 是正常的,nslookup www.baidu.com 127.0.0.1:53不正常,我还在找原因

vernesong avatar Mar 06 '24 06:03 vernesong

好的,谢谢。貌似是把127.0.0.1也给fake化了: root@OpenWrt:~# nslookup www.baidu.com Server: 127.0.0.1 Address: 127.0.0.1#53

Non-authoritative answer: www.baidu.com canonical name = www.a.shifen.com. Name: www.a.shifen.com Address: 180.101.50.188 Name: www.a.shifen.com Address: 180.101.50.242 Name: www.a.shifen.com Address: 240e:e9:6002:15a:0:ff:b05c:1278 Name: www.a.shifen.com Address: 240e:e9:6002:15c:0:ff:b015:146f

root@OpenWrt:~# nslookup www.baidu.com 127.0.0.1:53 ;; communications error to 198.18.0.4#53: timed out ;; communications error to 198.18.0.4#53: timed out ;; communications error to 198.18.0.4#53: timed out ;; no servers could be reached

winnie-neil avatar Mar 06 '24 09:03 winnie-neil

你好,同样出现了这个问题

root@OpenWrt:~# nslookup www.baidu.com
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
www.baidu.com	canonical name = www.a.shifen.com.
Name:	www.a.shifen.com
Address: 183.2.172.42
Name:	www.a.shifen.com
Address: 183.2.172.185
Name:	www.a.shifen.com
Address: 240e:ff:e020:966:0:ff:b042:f296
Name:	www.a.shifen.com
Address: 240e:ff:e020:9ae:0:ff:b014:8e8b


root@OpenWrt:~# uci set dhcp.@dnsmasq[0].localuse="1"
root@OpenWrt:~# uci commit dhcp
root@OpenWrt:~# /etc/init.d/dnsmasq restart


root@OpenWrt:~# nslookup www.baidu.com 127.0.0.1:53
;; communications error to 198.18.81.41#53: timed out
;; communications error to 198.18.81.41#53: timed out
;; communications error to 198.18.81.41#53: timed out
;; no servers could be reached

vindia9 avatar Mar 30 '24 16:03 vindia9

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar May 30 '24 08:05 github-actions[bot]

我也遇到了这个问题,老版本的内核

image

wujun4code avatar Aug 01 '24 06:08 wujun4code