xiaorouji / openwrt-passwall2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: dnsmasq no response

wang1zhen opened this issue · comments

描述您遇到的bug

passwall2开启一段时间后,本地dns服务错误:

root@OpenWrt:~# nslookup openwrt.org
Server:         127.0.0.1
Address:        127.0.0.1:53


*** Can't find openwrt.org: No answer

root@OpenWrt:~# ps | grep passwall2
 1150 root      1148 S    grep passwall2
 4187 nobody    4212 S    /tmp/etc/passwall2/bin/dnsmasq -C /tmp/etc/passwall2/dnsmasq_global_direct.conf
 4233 root     1228m S    /tmp/etc/passwall2/bin/xray run -c /tmp/etc/passwall2/acl/default/global.json
 5006 root      1160 S    {monitor.sh} /bin/sh /usr/share/passwall2/monitor.sh

关闭passwall2后,dns可以正常运作:

root@OpenWrt:~# nslookup openwrt.org
Server:         127.0.0.1
Address:        127.0.0.1:53

Non-authoritative answer:
Name:   openwrt.org
Address: 64.226.122.113

Non-authoritative answer:
Name:   openwrt.org
Address: 2a03:b0c0:3:d0::1a51:c001

root@OpenWrt:~# ps | grep passwall2
 9520 root      1148 S    grep passwall2

可能关联issue:#594

image

复现此Bug的步骤

  1. 开启passwall2 (xray)
  2. 等待30min~2h (具体需要等待时间无法确定)
  3. nslookup

您想要实现的目的

nslookup返回正确ip

日志信息

2024-06-13 05:46:46: 删除nftables防火墙规则完成。
2024-06-13 05:46:46: 清空并关闭相关程序和缓存完成。
2024-06-13 05:46:46: 127.0.0.1#15353 (直连DNS:114.114.114.114,223.5.5.5 远程DNS:1.1.1.1)
2024-06-13 05:46:46:   - [1]节点列表中的域名(vpslist):114.114.114.114,223.5.5.5
2024-06-13 05:46:46:   - [0]默认:127.0.0.1#15353
2024-06-13 05:46:46: 开始加载防火墙规则...
2024-06-13 05:46:46:   - [0]追加ISP IPv4 DNS到白名单:114.114.114.114
2024-06-13 05:46:46:   - [0]追加ISP IPv4 DNS到白名单:223.5.5.5
2024-06-13 05:46:46:   - [0]追加ISP IPv6 DNS到白名单:2001:4860:4860::8888
2024-06-13 05:46:46:   - [0]追加ISP IPv6 DNS到白名单:2400:3200::1
2024-06-13 05:46:46:   - [0]追加ISP IPv6 DNS到白名单:fdf5:acf4:309f::1
2024-06-13 05:46:46: 加入负载均衡的节点到nftset[passwall2_vpslist]直连完成
2024-06-13 05:46:46: 加入所有节点到nftset[passwall2_vpslist]直连完成
2024-06-13 05:46:46:   - [0]追加直连DNS到nftables:114.114.114.114:53
2024-06-13 05:46:46:   - [0]追加直连DNS到nftables:223.5.5.5:53
2024-06-13 05:46:47: 【默认】,使用 TCP 节点[分流总节点](REDIRECT:1041)
2024-06-13 05:46:47: 【默认】,使用 UDP 节点[分流总节点](TPROXY:1041)
2024-06-13 05:46:47: 防火墙规则加载完成!
2024-06-13 05:46:47: 重启 dnsmasq 服务
2024-06-13 05:46:47: 运行完成!

2024-06-13 10:14:06: 删除nftables防火墙规则完成。
2024-06-13 10:14:06: 清空并关闭相关程序和缓存完成。
2024-06-13 10:14:06: 运行完成!


### 截图

_No response_

### 系统相关信息

[Powered by LuCI openwrt-23.05 branch (git-24.159.75535-7ca510f)](https://github.com/openwrt/luci) / [ArgonTheme v2.3.1](https://github.com/jerrykuku/luci-theme-argon) / OpenWrt 23.05-SNAPSHOT r23897-ae3b9bb85f

Sing-Box 版本
【 1.9.0 】
Xray 版本
【 1.8.13 】

### 其他信息

_No response_