Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 最新版Openwrt dnsmasq无效 #677

Closed
catsimple opened this issue Oct 22, 2024 · 4 comments
Closed

[Bug]: 最新版Openwrt dnsmasq无效 #677

catsimple opened this issue Oct 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@catsimple
Copy link

catsimple commented Oct 22, 2024

描述您遇到的bug

编译了最新的openwrt以及passwall2,使用 NFTABLES + TPROXY 方式,勾选【路由器本机代理】和【客户端代理】,远程服务器用的是直连方式 配置的是本地运行的一个mosdns,执行/etc/init.d/passwall2 start后,本机及本机下的所有设备无法通过DNS获取服务器,nslookup报错

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

** server can't find baidu.com: REFUSED

dnsmasq默认配置了adguardhome为上游服务器,此时nslookup上游服务器正常,查本地53 dnsmasq服务器结果如上
此时手动执行service dnsmasq restart后,dnsmasq服务器恢复正常
对比重启前后的dnsmasq.conf文件,只发现在启动passwall2之后,server字段的上游服务器被删除了,但是之前应该也是这样的逻辑,不知道为什么现在不行了

复现此Bug的步骤

您想要实现的目的

日志信息

2024-10-23 00:42:39: 删除nftables防火墙规则完成。
2024-10-23 00:42:42: 清空并关闭相关程序和缓存完成。
2024-10-23 00:42:42: 分析 Socks 服务的节点配置...
2024-10-23 00:42:42:   - Socks节点:[🇰🇷韩国首尔2]132.226.172.30:443,启动 0.0.0.0:30083
2024-10-23 00:42:42:   - Socks节点:[🇯🇵日本]131.186.42.162:50000,启动 0.0.0.0:30084
2024-10-23 00:42:42: 127.0.0.1#15353 (直连DNS:127.0.0.1#5335 远程DNS:127.0.0.1#5336)
2024-10-23 00:42:43:   - [0]节点列表中的域名(vpslist):127.0.0.1#5335
2024-10-23 00:42:43:   - [0]默认:127.0.0.1#15353
2024-10-23 00:42:43: 开始加载防火墙规则...
2024-10-23 00:42:43:   - [0]追加ISP IPv4 DNS到白名单:221.7.128.68
2024-10-23 00:42:43:   - [0]追加ISP IPv4 DNS到白名单:221.7.136.68
2024-10-23 00:42:43:   - [0]追加ISP IPv6 DNS到白名单:2408:8001:4000:9000:221:7:128:68
2024-10-23 00:42:43:   - [0]追加ISP IPv6 DNS到白名单:2408:8001:4000:9000:221:7:128:69
2024-10-23 00:42:43: 加入负载均衡的节点到nftset[passwall2_vpslist]直连完成
2024-10-23 00:42:43: 加入所有节点到nftset[passwall2_vpslist]直连完成
2024-10-23 00:42:43:   - [0]追加直连DNS到nftables:127.0.0.1:5335
2024-10-23 00:42:43:   - 【路由器本机】,不代理 TCP 端口[6668]
2024-10-23 00:42:43:   - 【路由器本机】,不代理所有 UDP
2024-10-23 00:42:43:   - 【默认】,不代理 TCP 端口[6668]
2024-10-23 00:42:43:   - 【默认】,不代理所有 UDP 端口
2024-10-23 00:42:43: 【默认】,使用 TCP 节点[分流总节点](TPROXY:1041)
2024-10-23 00:42:43: 防火墙规则加载完成!
2024-10-23 00:42:46: 重启 dnsmasq 服务
2024-10-23 00:42:46: 配置定时任务:自动更新【catsimple-nontls】订阅。
2024-10-23 00:42:46: 配置定时任务:自动更新【catsimple-tls】订阅。
2024-10-23 00:42:46: 配置定时任务:自动更新【顶级机场】订阅。
2024-10-23 00:42:46: 配置定时任务:自动更新【ikun云】订阅。
2024-10-23 00:42:46: 运行完成!
Wed Oct 23 00:46:30 2024 daemon.info dnsmasq[18926]: started, version 2.90 cache disabled
Wed Oct 23 00:46:30 2024 daemon.info dnsmasq[18926]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile
Wed Oct 23 00:46:30 2024 daemon.info dnsmasq[18926]: using nameserver 127.0.0.1#5335
Wed Oct 23 00:46:30 2024 daemon.info dnsmasq[18926]: read /etc/hosts - 6 names
Wed Oct 23 00:46:31 2024 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: started, version 2.90 cache disabled
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Wed Oct 23 00:46:34 2024 daemon.warn dnsmasq[1]: warning: no upstream servers configured
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.10.100 -- 192.168.10.249, lease time 12h
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: using only locally-known addresses for test
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: using only locally-known addresses for local
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 52 names
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 0 names
Wed Oct 23 00:46:34 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses

截图

No response

系统相关信息

passwall2 最新commit
openwrt 23.05 最新master
目标平台 x86/64
固件版本 OpenWrt SNAPSHOT / LuCI Master 24.291.55886~ade3606
内核版本 6.6.57

其他信息

No response

@catsimple catsimple added the bug Something isn't working label Oct 22, 2024
@catsimple
Copy link
Author

image
与这几个commit有关,revert到8月25的commit重新编译dnsmasq未复现

Copy link

github-actions bot commented Nov 3, 2024

Stale Issue

@inrealt
Copy link

inrealt commented Nov 7, 2024

openwrt/openwrt#16806

@xiaorouji
Copy link
Owner

The latest version has fix and support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants