sbwml / luci-app-mosdns

一个 DNS 转发器 - OpenWrt 🎁 MosDNS v5 is Ready! 🎉
https://github.com/IrineSistiana/mosdns
1.19k stars 229 forks source link

passwall设置转发后导致功能失效 #180

Closed likaia closed 9 months ago

likaia commented 10 months ago

我的前置条件:

passwall设置通过udp请求dns至127.0.0.1:5335

image

mosdns使用的内置预设。

image
likaia commented 9 months ago

passwall的日志也都显示正确设置了

image
likaia commented 9 months ago

我看了下mosdns 的日志,报错。

2024-01-08 02:14:50 WARN    forward_remote  upstream error  {"uqid": 6887, "qname": "www.google.com.", "qclass": 1, "qtype": 1, "upstream": "tls://1.1.1.1", "error": "EOF"}
2024-01-08 02:14:50 WARN    lazy_cache  failed to update lazy cache {"query": {"uqid": 6887, "client": "::ffff:127.0.0.1", "qname": "www.google.com.", "qtype": 1, "qclass": 1, "elapsed": "1.006012371s"}, "error": "all upstream servers failed"}
image
xhy0728 commented 9 months ago

我的也这样,编译了次 都一样。网上也找不到答案,弃用了。

xhy0728 commented 9 months ago

一旦出现这警告 nslookup测试 就解析不出ip

likaia commented 9 months ago

我的也这样,编译了次 都一样。网上也找不到答案,弃用了。

我也放弃了,改用openclash了。可以正常使用了,但是openclash的日志出现了mosdns的中的dns ip地址。😂

likaia commented 9 months ago

我的也这样,编译了次 都一样。网上也找不到答案,弃用了。

我也放弃了,改用openclash了。可以正常使用了,但是openclash的日志出现了mosdns的中的dns ip地址。😂

现在能想到的方案就是在openclash的配置文件写规则,把dns的ip给他拦截掉。

sbwml commented 9 months ago

解决方案:

1、ssh

opkg remove mosdns v2dat
rm -rf /etc/mosdns

2、go to https://github.com/pymumu/smartdns/releases/tag/Release43

likaia commented 9 months ago

解决方案:

1、ssh

opkg remove mosdns v2dat
rm -rf /etc/mosdns

2、go to https://github.com/pymumu/smartdns/releases/tag/Release43

移除包的时候报错

root@iStoreOS:~# opkg remove mosdns v2dat
No packages removed.
Collected errors:
 * print_dependents_warning: Package mosdns is depended upon by packages:
 * print_dependents_warning:    luci-app-mosdns
 * print_dependents_warning: These might cease to work if package mosdns is removed.

 * print_dependents_warning: Force removal of this package with --force-depends.
 * print_dependents_warning: Force removal of this package and its dependents
 * print_dependents_warning: with --force-removal-of-dependent-packages.
 * print_dependents_warning: Package v2dat is depended upon by packages:
 * print_dependents_warning:    luci-app-mosdns
 * print_dependents_warning: These might cease to work if package v2dat is removed.

 * print_dependents_warning: Force removal of this package with --force-depends.
 * print_dependents_warning: Force removal of this package and its dependents
 * print_dependents_warning: with --force-removal-of-dependent-packages.
likaia commented 9 months ago

解决方案: 1、ssh

opkg remove mosdns v2dat
rm -rf /etc/mosdns

2、go to https://github.com/pymumu/smartdns/releases/tag/Release43

移除包的时候报错

root@iStoreOS:~# opkg remove mosdns v2dat
No packages removed.
Collected errors:
 * print_dependents_warning: Package mosdns is depended upon by packages:
 * print_dependents_warning:  luci-app-mosdns
 * print_dependents_warning: These might cease to work if package mosdns is removed.

 * print_dependents_warning: Force removal of this package with --force-depends.
 * print_dependents_warning: Force removal of this package and its dependents
 * print_dependents_warning: with --force-removal-of-dependent-packages.
 * print_dependents_warning: Package v2dat is depended upon by packages:
 * print_dependents_warning:  luci-app-mosdns
 * print_dependents_warning: These might cease to work if package v2dat is removed.

 * print_dependents_warning: Force removal of this package with --force-depends.
 * print_dependents_warning: Force removal of this package and its dependents
 * print_dependents_warning: with --force-removal-of-dependent-packages.

我怀疑问题出在mosdns的DNS转发上,我如果不勾选它的转发,启动passwall就是正常的,可以正常出墙。

image image
sbwml commented 9 months ago

luci-app-mosdns 插件的问题。