MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
16.94k stars 2.67k forks source link

[Bug] win11在tun模式下的连接不适用mihomo配置文件中非域名类型的host #1545

Closed rumianoesa closed 2 months ago

rumianoesa commented 2 months ago

Verify steps

操作系统

Windows

系统版本

22631.4169

Mihomo 版本

Mihomo Meta v1.18.8 windows amd64 with go1.23.0 Mon Sep 2 08:37:40 UTC 2024

配置文件

log-level: debug
mode: rule
find-process-mode: off
interface-name: 以太网
ipv6: true
keep-alive-idle: 600
keep-alive-interval: 15
external-ui: ui
external-ui-name: yacd
external-ui-url: https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/refs/heads/gh-pages.zip
external-controller: 127.0.0.1:9090
secret: null
profile:
  store-selected: true
  store-fake-ip: true
allow-lan: false
port: 25378
socks-port: null
mixed-port: 25379
redir-port: null
tproxy-port: null
geodata-mode: true
geodata-loader: standard
geox-url:
  geosite: https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat
  mmdb: https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb
  geoip: https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat
  asn: https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb
geo-auto-update: false
geo-update-interval: 24
unified-delay: true
tcp-concurrent: true
proxies:
  - name: 🇭🇰 香港优选
    server: 
    port: 8443
    type: trojan
    password: 
    tls: true
    sni: 
    skip-cert-verify: false
    network: ws
    ws-opts:
      path: /?ed=2560
      headers:
        host: 
    tfo: true
  - name: ⚛ GPT优选
    server: 
    port: 8443
    type: trojan
    password: 
    tls: true
    sni: 
    skip-cert-verify: false
    network: ws
    ws-opts:
      path: /?ed=2560
      headers:
        host: 
    tfo: true
  - name: 🇭🇰 香港节点ws
    server: 
    port: 80
    type: vmess
    uuid: 
    alterId: 0
    cipher: auto
    tls: false
    network: ws
    ws-opts:
      path: /
      headers:
        host: 
    tfo: true
    udp: true
  - name: 🇹🇼 台湾节点ws
    server: 
    port: 80
    type: vmess
    uuid: 
    alterId: 0
    cipher: auto
    tls: false
    network: ws
    ws-opts:
      path: /
      headers:
        host: 
    tfo: true
    udp: true
  - name: 🇸🇬 狮城节点ws
    server: 
    port: 80
    type: vmess
    uuid: 
    alterId: 0
    cipher: auto
    tls: false
    network: ws
    ws-opts:
      path: /
      headers:
        host: 
    tfo: true
    udp: true
  - name: 🇯🇵 日本节点ws
    server: 
    port: 80
    type: vmess
    uuid: 
    alterId: 0
    cipher: auto
    tls: false
    network: ws
    ws-opts:
      path: /
      headers:
        host: 
    tfo: true
    udp: true
  - name: 🇭🇰 香港节点ss
    server: 
    port: 
    type: ss
    cipher: chacha20-ietf-poly1305
    password: 
    tfo: true
    udp: true
  - name: 🇹🇼 台湾节点ss
    server: 
    port: 
    type: ss
    cipher: chacha20-ietf-poly1305
    password: 
    tfo: true
    udp: true
  - name: 🇸🇬 狮城节点ss
    server: 
    port: 
    type: ss
    cipher: chacha20-ietf-poly1305
    password: 
    tfo: true
    udp: true
  - name: 🇯🇵 日本节点ss
    server: 
    port: 
    type: ss
    cipher: chacha20-ietf-poly1305
    password: 
    tfo: true
    udp: true
proxy-groups:
  - name: 📺 Bilibili
    type: select
    proxies:
      - DIRECT
      - 🇭🇰 香港优选
      - 🇭🇰 香港节点ws
      - 🇹🇼 台湾节点ws
      - 🇭🇰 香港节点ss
      - 🇹🇼 台湾节点ss
  - name: 🎮 Steam
    type: select
    proxies:
      - DIRECT
      - PROXY
  - name: ⚛ OpenAI
    type: select
    proxies:
      - ⚛ GPT优选
      - 🇹🇼 台湾节点ws
      - 🇸🇬 狮城节点ws
      - 🇯🇵 日本节点ws
      - 🇹🇼 台湾节点ss
      - 🇸🇬 狮城节点ss
      - 🇯🇵 日本节点ss
  - name: PROXY
    type: select
    proxies:
      - 🇭🇰 香港优选
      - 🇭🇰 香港节点ws
      - 🇹🇼 台湾节点ws
      - 🇸🇬 狮城节点ws
      - 🇯🇵 日本节点ws
      - 🇭🇰 香港节点ss
      - 🇹🇼 台湾节点ss
      - 🇸🇬 狮城节点ss
      - 🇯🇵 日本节点ss
rules:
  - GEOSITE,private,DIRECT
  - GEOIP,private,DIRECT,no-resolve
  - GEOSITE,category-ads-all,REJECT
  - DOMAIN,upos-hz-mirrorakam.akamaized.net,DIRECT
  - DOMAIN-SUFFIX,bilivideo.cn,DIRECT
  - DOMAIN-SUFFIX,bilivideo.com,DIRECT
  - DOMAIN-SUFFIX,bilivideo.net,DIRECT
  - GEOSITE,bilibili,📺 Bilibili
  - GEOIP,bilibili,📺 Bilibili,no-resolve
  - GEOSITE,steam,🎮 Steam
  - GEOSITE,openai,⚛ OpenAI
  - GEOSITE,github,PROXY
  - GEOSITE,youtube,PROXY
  - GEOSITE,google-cn,DIRECT
  - GEOSITE,google,PROXY
  - GEOIP,google,PROXY,no-resolve
  - GEOSITE,telegram,PROXY
  - GEOIP,telegram,PROXY,no-resolve
  - GEOSITE,twitter,PROXY
  - GEOIP,twitter,PROXY,no-resolve
  - GEOSITE,apple,DIRECT
  - GEOIP,apple,DIRECT,no-resolve
  - GEOSITE,microsoft,DIRECT
  - GEOSITE,geolocation-!cn,PROXY
  - GEOSITE,cn,DIRECT
  - GEOIP,cn,DIRECT
  - MATCH,PROXY
dns:
  enable: true
  listen: null
  enhanced-mode: redir-host
  respect-rules: false
  ipv6: true
  use-system-hosts: true
  use-hosts: true
  proxy-server-nameserver:
    - https://223.5.5.5/dns-query#h3=true
  nameserver:
    - https://1.1.1.1/dns-query#h3=true
    - https://8.8.8.8/dns-query#PROXY
  nameserver-policy:
    geosite:private: dhcp://以太网
    geosite:bilibili: https://223.5.5.5/dns-query#h3=true
    geosite:steam: https://223.5.5.5/dns-query#h3=true
    geosite:google-cn: https://223.5.5.5/dns-query#h3=true
    geosite:apple: https://223.5.5.5/dns-query#h3=true
    geosite:microsoft: https://223.5.5.5/dns-query#h3=true
    geosite:cn: https://223.5.5.5/dns-query#h3=true
  fallback: null
  fallback-filter: null
hosts:
  r5c: 192.168.0.1
  r5c.lan: 192.168.0.1
  n1: 192.168.1.2
  n1.lan: 192.168.1.2
tun:
  enable: true
  stack: mixed
  device: Mihomo
  mtu: 1500
  dns-hijack:
    - any:53
  strict-route: true
  auto-route: true
  auto-detect-interface: true
  route-exclude-address:
    - fc00::/7
    - 2409:8000::/20

描述

win11在tun模式下的连接不适用mihomo配置文件中非域名类型的host

但nslookup可以正确查询到配置文件中的host

也可以正确适用配置文件中域名类型的host如*.lan

也可以正确适用在windows设置的系统host中非域名类型的host

重现方式

./mihomo -d ./ | Out-File -FilePath ".\log.txt" 在目录裸核运行mihomo并输出日志

在命令提示符查询和ping配置文件中的host,在浏览器访问host地址的服务

` C:\Windows\System32>nslookup r5c 服务器: UnKnown Address: fdfe:dcba:9876::2

名称: r5c Addresses: ::ffff:192.168.0.1 192.168.0.1

C:\Windows\System32>ping r5c

正在 Ping R5C.local [2409:::1] 具有 32 字节的数据: 来自 2409:::1 的回复: 时间<1ms 来自 2409:::1 的回复: 时间<1ms 来自 2409:::1 的回复: 时间<1ms 来自 2409:*::1 的回复: 时间<1ms

2409:*::1 的 Ping 统计信息: 数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失), 往返行程的估计时间(以毫秒为单位): 最短 = 0ms,最长 = 1ms,平均 = 0ms

C:\Windows\System32>nslookup n1 服务器: UnKnown Address: fdfe:dcba:9876::2

名称: n1 Addresses: ::ffff:192.168.1.2 192.168.1.2

C:\Windows\System32>ping n1 Ping 请求找不到主机 n1。请检查该名称,然后重试。 `

dns查询正常 ping时如果host在本地网段是存在的,似乎会在查询失败后回退到其它查询方式并给出一个地址;如果在本地网段不存在则该请求找不到主机 浏览器访问表现出和ping一样的行为

可能由于连接请求并未进入核心,我只在日志中找到了dns查询的相关信息

日志

time="2024-09-25T10:23:19.7902626+08:00" level=info msg="Start initial configuration in progress"
time="2024-09-25T10:23:19.7945274+08:00" level=info msg="Geodata Loader mode: standard"
time="2024-09-25T10:23:19.7945274+08:00" level=info msg="Geosite Matcher implementation: succinct"
time="2024-09-25T10:23:19.7945274+08:00" level=info msg="Load GeoSite rule: cn"
time="2024-09-25T10:23:19.927767+08:00" level=info msg="Load GeoSite rule: private"
time="2024-09-25T10:23:19.9498268+08:00" level=info msg="Finished initial GeoSite rule private => DIRECT, records: 131"
time="2024-09-25T10:23:19.9498268+08:00" level=info msg="Load GeoIP rule: cn"
time="2024-09-25T10:23:19.9518242+08:00" level=info msg="Load GeoIP rule: private"
time="2024-09-25T10:23:19.9538184+08:00" level=info msg="Finished initial GeoIP rule private => DIRECT, records: 18"
time="2024-09-25T10:23:19.9538184+08:00" level=info msg="Load GeoSite rule: category-ads-all"
time="2024-09-25T10:23:19.9726183+08:00" level=info msg="Finished initial GeoSite rule category-ads-all => REJECT, records: 753"
time="2024-09-25T10:23:19.9726183+08:00" level=info msg="Load GeoSite rule: bilibili"
time="2024-09-25T10:23:19.9911641+08:00" level=info msg="Finished initial GeoSite rule bilibili => 馃摵 Bilibili, records: 50"
time="2024-09-25T10:23:19.9911641+08:00" level=info msg="Load GeoIP rule: bilibili"
time="2024-09-25T10:23:19.9921569+08:00" level=info msg="Finished initial GeoIP rule bilibili => 馃摵 Bilibili, records: 8"
time="2024-09-25T10:23:19.9921569+08:00" level=info msg="Load GeoSite rule: steam"
time="2024-09-25T10:23:20.0118938+08:00" level=info msg="Finished initial GeoSite rule steam => 馃幃 Steam, records: 48"
time="2024-09-25T10:23:20.0118938+08:00" level=info msg="Load GeoSite rule: openai"
time="2024-09-25T10:23:20.0309346+08:00" level=info msg="Finished initial GeoSite rule openai => 鈿?OpenAI, records: 13"
time="2024-09-25T10:23:20.0309346+08:00" level=info msg="Load GeoSite rule: github"
time="2024-09-25T10:23:20.0495235+08:00" level=info msg="Finished initial GeoSite rule github => PROXY, records: 27"
time="2024-09-25T10:23:20.0505233+08:00" level=info msg="Load GeoSite rule: youtube"
time="2024-09-25T10:23:20.0679979+08:00" level=info msg="Finished initial GeoSite rule youtube => PROXY, records: 176"
time="2024-09-25T10:23:20.0679979+08:00" level=info msg="Load GeoSite rule: google-cn"
time="2024-09-25T10:23:20.0859652+08:00" level=info msg="Finished initial GeoSite rule google-cn => DIRECT, records: 190"
time="2024-09-25T10:23:20.0859652+08:00" level=info msg="Load GeoSite rule: google"
time="2024-09-25T10:23:20.1045103+08:00" level=info msg="Finished initial GeoSite rule google => PROXY, records: 1135"
time="2024-09-25T10:23:20.1045103+08:00" level=info msg="Load GeoIP rule: google"
time="2024-09-25T10:23:20.1045103+08:00" level=info msg="Finished initial GeoIP rule google => PROXY, records: 559"
time="2024-09-25T10:23:20.1045103+08:00" level=info msg="Load GeoSite rule: telegram"
time="2024-09-25T10:23:20.1232629+08:00" level=info msg="Finished initial GeoSite rule telegram => PROXY, records: 19"
time="2024-09-25T10:23:20.1232629+08:00" level=info msg="Load GeoIP rule: telegram"
time="2024-09-25T10:23:20.1258237+08:00" level=info msg="Finished initial GeoIP rule telegram => PROXY, records: 12"
time="2024-09-25T10:23:20.1258237+08:00" level=info msg="Load GeoSite rule: twitter"
time="2024-09-25T10:23:20.1429059+08:00" level=info msg="Finished initial GeoSite rule twitter => PROXY, records: 23"
time="2024-09-25T10:23:20.1429059+08:00" level=info msg="Load GeoIP rule: twitter"
time="2024-09-25T10:23:20.1429059+08:00" level=info msg="Finished initial GeoIP rule twitter => PROXY, records: 21"
time="2024-09-25T10:23:20.1429059+08:00" level=info msg="Load GeoSite rule: apple"
time="2024-09-25T10:23:20.1645604+08:00" level=info msg="Finished initial GeoSite rule apple => DIRECT, records: 1771"
time="2024-09-25T10:23:20.1645604+08:00" level=info msg="Load GeoIP rule: apple"
time="2024-09-25T10:23:20.1655923+08:00" level=info msg="Finished initial GeoIP rule apple => DIRECT, records: 10"
time="2024-09-25T10:23:20.1655923+08:00" level=info msg="Load GeoSite rule: microsoft"
time="2024-09-25T10:23:20.1830941+08:00" level=info msg="Finished initial GeoSite rule microsoft => DIRECT, records: 632"
time="2024-09-25T10:23:20.1830941+08:00" level=info msg="Load GeoSite rule: geolocation-!cn"
time="2024-09-25T10:23:20.2397516+08:00" level=info msg="Finished initial GeoSite rule geolocation-!cn => PROXY, records: 30934"
time="2024-09-25T10:23:20.2397516+08:00" level=info msg="Finished initial GeoSite rule cn => DIRECT, records: 92130"
time="2024-09-25T10:23:20.2397516+08:00" level=info msg="Finished initial GeoIP rule cn => DIRECT, records: 7461"
time="2024-09-25T10:23:20.2397516+08:00" level=info msg="Finished initial GeoSite rule private => dns.nameserver-policy, records: 131"
time="2024-09-25T10:23:20.2397516+08:00" level=info msg="Finished initial GeoSite rule bilibili => dns.nameserver-policy, records: 50"
time="2024-09-25T10:23:20.2397516+08:00" level=info msg="Finished initial GeoSite rule steam => dns.nameserver-policy, records: 48"
time="2024-09-25T10:23:20.2397516+08:00" level=info msg="Finished initial GeoSite rule google-cn => dns.nameserver-policy, records: 190"
time="2024-09-25T10:23:20.2397516+08:00" level=info msg="Finished initial GeoSite rule apple => dns.nameserver-policy, records: 1771"
time="2024-09-25T10:23:20.2407522+08:00" level=info msg="Finished initial GeoSite rule microsoft => dns.nameserver-policy, records: 632"
time="2024-09-25T10:23:20.2407522+08:00" level=info msg="Finished initial GeoSite rule cn => dns.nameserver-policy, records: 92130"
time="2024-09-25T10:23:20.2432732+08:00" level=info msg="Initial configuration complete, total time: 448ms"
time="2024-09-25T10:23:20.2432732+08:00" level=info msg="RESTful API listening at: 127.0.0.1:9090"
time="2024-09-25T10:23:20.2447788+08:00" level=info msg="Sniffer is closed"
time="2024-09-25T10:23:20.2447788+08:00" level=info msg="Use tcp concurrent"
time="2024-09-25T10:23:20.2447788+08:00" level=info msg="HTTP proxy listening at: 127.0.0.1:25378"
time="2024-09-25T10:23:20.2447788+08:00" level=info msg="Mixed(http+socks) proxy listening at: 127.0.0.1:25379"
time="2024-09-25T10:23:20.6144779+08:00" level=info msg="[TUN] Tun adapter listening at: Mihomo([198.18.0.1/30],[fdfe:dcba:9876::1/126]), mtu: 1500, auto route: true, auto redir: false, ip stack: Mixed"
time="2024-09-25T10:23:20.6164812+08:00" level=info msg="Start initial Compatible provider default"
time="2024-09-25T10:23:20.6164812+08:00" level=info msg="Start initial Compatible provider PROXY"
time="2024-09-25T10:23:20.6164812+08:00" level=info msg="Start initial Compatible provider 鈿?OpenAI"
time="2024-09-25T10:23:20.6164812+08:00" level=info msg="Start initial Compatible provider 馃幃 Steam"
time="2024-09-25T10:23:20.6164812+08:00" level=info msg="Start initial Compatible provider 馃摵 Bilibili"
time="2024-09-25T10:23:20.6164812+08:00" level=info msg="UI already exists, skip downloading"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:57515"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:61776"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="[DNS] resolve www.msftconnecttest.com A from https://8.8.8.8:443/dns-query"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="creating a new http client"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="[DNS] resolve www.msftconnecttest.com A from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="creating a new http client"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="[https://8.8.8.8:443/dns-query] using HTTP/2 for this upstream: <nil>"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="[DNS] resolve www.msftconnecttest.com AAAA from https://8.8.8.8:443/dns-query"
time="2024-09-25T10:23:21.0791157+08:00" level=debug msg="[DNS] resolve www.msftconnecttest.com AAAA from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:23:21.0796676+08:00" level=debug msg="[DNS] resolve 节点域名 A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.0796676+08:00" level=debug msg="[DNS] resolve 节点域名 AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.0796676+08:00" level=debug msg="creating a new http client"
time="2024-09-25T10:23:21.1167328+08:00" level=debug msg="[https://1.1.1.1:443/dns-query] using HTTP/3 for this upstream: QUIC was faster"
time="2024-09-25T10:23:21.1167328+08:00" level=debug msg="[https://223.5.5.5:443/dns-query] using HTTP/3 for this upstream: QUIC was faster"
time="2024-09-25T10:23:21.1172419+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.1172419+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.1172419+08:00" level=debug msg="PROXY UDP is not supported"
time="2024-09-25T10:23:21.1172419+08:00" level=info msg="[UDP] 198.18.0.1:61780 --> 223.5.5.5:443 match GeoIP(cn) using DIRECT"
time="2024-09-25T10:23:21.1172419+08:00" level=info msg="[UDP] 198.18.0.1:61779 --> 1.1.1.1:443 doesn't match any rule using DIRECT"
time="2024-09-25T10:23:21.1498025+08:00" level=debug msg="[DNS] 节点域名 --> [162.*] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.1498025+08:00" level=debug msg="[DNS] 节点域名 --> [2606:*] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.2064499+08:00" level=debug msg="[DNS] www.msftconnecttest.com --> [] AAAA from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:23:21.2069707+08:00" level=debug msg="[DNS] www.msftconnecttest.com --> [23.220.70.142 23.220.70.165] A from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:23:21.3167294+08:00" level=info msg="[TCP] mihomo --> 8.8.8.8:443 doesn't match any rule using 馃嚟馃嚢 棣欐腐浼橀€?
time="2024-09-25T10:23:21.4807999+08:00" level=debug msg="[DNS] www.msftconnecttest.com --> [] AAAA from https://8.8.8.8:443/dns-query"
time="2024-09-25T10:23:21.4848449+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.4853911+08:00" level=debug msg="[DNS] cache hit 节点域名 --> [162.*] A, expire at 2024-09-25 10:23:22"
time="2024-09-25T10:23:21.4853911+08:00" level=debug msg="[DNS] cache hit 节点域名 --> [2606:*] AAAA, expire at 2024-09-25 10:23:22"
time="2024-09-25T10:23:21.5738988+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:58113"
time="2024-09-25T10:23:21.5738988+08:00" level=debug msg="[DNS] resolve browser.pipe.aria.microsoft.com A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.5738988+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:55001"
time="2024-09-25T10:23:21.5738988+08:00" level=debug msg="[DNS] resolve browser.pipe.aria.microsoft.com AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.5831096+08:00" level=debug msg="[DNS] browser.pipe.aria.microsoft.com --> [20.42.65.90] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.5831096+08:00" level=debug msg="[DNS] browser.pipe.aria.microsoft.com --> [] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.5836189+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.5836189+08:00" level=debug msg="[DNS] cache hit browser.pipe.aria.microsoft.com --> [20.42.65.90] A, expire at 2024-09-25 10:23:48"
time="2024-09-25T10:23:21.5836189+08:00" level=debug msg="[DNS] cache hit browser.pipe.aria.microsoft.com --> [] AAAA, expire at 2024-09-25 10:23:42"
time="2024-09-25T10:23:21.5868098+08:00" level=debug msg="[DNS] resolve www.bing.com A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.5868098+08:00" level=debug msg="[DNS] resolve www.bing.com AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.5970276+08:00" level=debug msg="[DNS] www.bing.com --> [202.89.233.100 202.89.233.101] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.5970276+08:00" level=debug msg="[DNS] www.bing.com --> [] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.5975397+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.5980503+08:00" level=debug msg="[DNS] cache hit www.bing.com --> [202.89.233.100 202.89.233.101] A, expire at 2024-09-25 10:23:45"
time="2024-09-25T10:23:21.5980503+08:00" level=debug msg="[DNS] cache hit www.bing.com --> [] AAAA, expire at 2024-09-25 10:23:44"
time="2024-09-25T10:23:21.6259167+08:00" level=info msg="[TCP] 198.18.0.1:5061 --> www.bing.com:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:21.6414667+08:00" level=debug msg="[DNS] resolve substrate.office.com A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.6419752+08:00" level=debug msg="[DNS] resolve substrate.office.com AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.6533172+08:00" level=debug msg="[DNS] substrate.office.com --> [40.99.93.226 40.99.36.162 52.98.89.66 40.99.65.114] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.6533172+08:00" level=debug msg="[DNS] substrate.office.com --> [2603:1046:c09:19ab::2 2603:1046:c09:1a42::2 2603:1046:c09:19aa::2 2603:1046:404:15::2] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:21.6538248+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.6538248+08:00" level=debug msg="[DNS] cache hit substrate.office.com --> [40.99.93.226 40.99.36.162 52.98.89.66 40.99.65.114] A, expire at 2024-09-25 10:23:22"
time="2024-09-25T10:23:21.6538248+08:00" level=debug msg="[DNS] cache hit substrate.office.com --> [2603:1046:c09:19ab::2 2603:1046:c09:1a42::2 2603:1046:c09:19aa::2 2603:1046:404:15::2] AAAA, expire at 2024-09-25 10:23:28"
time="2024-09-25T10:23:21.6584176+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.6584176+08:00" level=debug msg="[DNS] cache hit www.bing.com --> [202.89.233.100 202.89.233.101] A, expire at 2024-09-25 10:23:45"
time="2024-09-25T10:23:21.6584176+08:00" level=debug msg="[DNS] cache hit www.bing.com --> [] AAAA, expire at 2024-09-25 10:23:44"
time="2024-09-25T10:23:21.6584176+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.6584176+08:00" level=debug msg="[DNS] cache hit www.bing.com --> [202.89.233.100 202.89.233.101] A, expire at 2024-09-25 10:23:45"
time="2024-09-25T10:23:21.6589273+08:00" level=debug msg="[DNS] cache hit www.bing.com --> [] AAAA, expire at 2024-09-25 10:23:44"
time="2024-09-25T10:23:21.6589273+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:21.6589273+08:00" level=debug msg="[DNS] cache hit www.bing.com --> [202.89.233.100 202.89.233.101] A, expire at 2024-09-25 10:23:45"
time="2024-09-25T10:23:21.6589273+08:00" level=debug msg="[DNS] cache hit www.bing.com --> [] AAAA, expire at 2024-09-25 10:23:44"
time="2024-09-25T10:23:21.6671287+08:00" level=info msg="[TCP] 198.18.0.1:5057 --> www.msftconnecttest.com:80 match Match using PROXY[馃嚟馃嚢 棣欐腐浼橀€塢"
time="2024-09-25T10:23:21.6854775+08:00" level=info msg="[TCP] 198.18.0.1:5079 --> www.bing.com:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:21.6854775+08:00" level=info msg="[TCP] 198.18.0.1:5074 --> www.bing.com:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:21.6860248+08:00" level=info msg="[TCP] 198.18.0.1:5073 --> www.bing.com:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:21.6944137+08:00" level=info msg="[TCP] 198.18.0.1:5064 --> substrate.office.com:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:21.7891313+08:00" level=info msg="[TCP] 198.18.0.1:5059 --> browser.pipe.aria.microsoft.com:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:22.0337601+08:00" level=debug msg="[DNS] resolve mtalk.google.com A from https://8.8.8.8:443/dns-query"
time="2024-09-25T10:23:22.0337601+08:00" level=debug msg="[DNS] resolve mtalk.google.com A from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:23:22.0337601+08:00" level=debug msg="[DNS] resolve mtalk.google.com AAAA from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:23:22.0337601+08:00" level=debug msg="[DNS] resolve mtalk.google.com AAAA from https://8.8.8.8:443/dns-query"
time="2024-09-25T10:23:22.0764982+08:00" level=debug msg="[DNS] mtalk.google.com --> [74.125.203.188] A from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:23:22.0764982+08:00" level=debug msg="[DNS] mtalk.google.com --> [2404:6800:4008:c00::bc] AAAA from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:23:22.0775764+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:22.0775764+08:00" level=debug msg="[DNS] cache hit 节点域名 --> [162.*] A, expire at 2024-09-25 10:23:22"
time="2024-09-25T10:23:22.0775764+08:00" level=debug msg="[DNS] cache hit 节点域名 --> [2606:*] AAAA, expire at 2024-09-25 10:23:22"
time="2024-09-25T10:23:22.0775764+08:00" level=debug msg="[DNS] resolve 节点域名 A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:22.0775764+08:00" level=debug msg="[DNS] resolve 节点域名 AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:22.0869334+08:00" level=debug msg="[DNS] 节点域名 --> [2606:*] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:22.0869334+08:00" level=debug msg="[DNS] 节点域名 --> [162.*] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:22.2147713+08:00" level=info msg="[TCP] [fdfe:dcba:9876::1]:5082 --> mtalk.google.com:5228 match GeoSite(google) using PROXY[馃嚟馃嚢 棣欐腐浼橀€塢"
time="2024-09-25T10:23:22.775539+08:00" level=debug msg="[DNS] resolve geo.prod.do.dsp.mp.microsoft.com A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:22.775539+08:00" level=debug msg="[DNS] resolve geo.prod.do.dsp.mp.microsoft.com AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:22.7847132+08:00" level=debug msg="[DNS] geo.prod.do.dsp.mp.microsoft.com --> [] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:22.7847132+08:00" level=debug msg="[DNS] geo.prod.do.dsp.mp.microsoft.com --> [52.247.240.158] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:22.78522+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:22.78522+08:00" level=debug msg="[DNS] cache hit geo.prod.do.dsp.mp.microsoft.com --> [52.247.240.158] A, expire at 2024-09-25 10:26:01"
time="2024-09-25T10:23:22.78522+08:00" level=debug msg="[DNS] cache hit geo.prod.do.dsp.mp.microsoft.com --> [] AAAA, expire at 2024-09-25 10:23:49"
time="2024-09-25T10:23:22.9460147+08:00" level=info msg="[TCP] 198.18.0.1:5084 --> geo.prod.do.dsp.mp.microsoft.com:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:23.0634957+08:00" level=debug msg="[DNS] resolve fp.msedge.net AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:23.0634957+08:00" level=debug msg="[DNS] resolve fp.msedge.net A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:23.0731318+08:00" level=debug msg="[DNS] fp.msedge.net --> [204.79.197.222] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:23.0731318+08:00" level=debug msg="[DNS] fp.msedge.net --> [] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:23.0736373+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:23.0736373+08:00" level=debug msg="[DNS] cache hit fp.msedge.net --> [204.79.197.222] A, expire at 2024-09-25 10:23:44"
time="2024-09-25T10:23:23.0736373+08:00" level=debug msg="[DNS] cache hit fp.msedge.net --> [] AAAA, expire at 2024-09-25 10:23:24"
time="2024-09-25T10:23:23.1150646+08:00" level=info msg="[TCP] 198.18.0.1:5086 --> fp.msedge.net:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:23.4554663+08:00" level=debug msg="[DNS] resolve kv601.prod.do.dsp.mp.microsoft.com A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:23.4559711+08:00" level=debug msg="[DNS] resolve kv601.prod.do.dsp.mp.microsoft.com AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:23.4650189+08:00" level=debug msg="[DNS] kv601.prod.do.dsp.mp.microsoft.com --> [23.56.29.192] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:23.4655418+08:00" level=debug msg="[DNS] kv601.prod.do.dsp.mp.microsoft.com --> [] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:23.4680848+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:23.4686123+08:00" level=debug msg="[DNS] cache hit kv601.prod.do.dsp.mp.microsoft.com --> [] AAAA, expire at 2024-09-25 10:25:18"
time="2024-09-25T10:23:23.4686123+08:00" level=debug msg="[DNS] cache hit kv601.prod.do.dsp.mp.microsoft.com --> [23.56.29.192] A, expire at 2024-09-25 10:23:49"
time="2024-09-25T10:23:23.5077581+08:00" level=info msg="[TCP] 198.18.0.1:5088 --> kv601.prod.do.dsp.mp.microsoft.com:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:25.2927622+08:00" level=debug msg="[DNS] resolve spo-ring.msedge.net A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:25.2933575+08:00" level=debug msg="[DNS] resolve spo-ring.msedge.net AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:25.3023574+08:00" level=debug msg="[DNS] spo-ring.msedge.net --> [13.107.136.254 13.107.138.254] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:25.3029977+08:00" level=debug msg="[DNS] spo-ring.msedge.net --> [2620:1ec:8fa::254 2620:1ec:8f8::254] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:25.3051806+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:25.3052897+08:00" level=debug msg="[DNS] cache hit spo-ring.msedge.net --> [13.107.136.254 13.107.138.254] A, expire at 2024-09-25 10:24:10"
time="2024-09-25T10:23:25.3057944+08:00" level=debug msg="[DNS] cache hit spo-ring.msedge.net --> [2620:1ec:8fa::254 2620:1ec:8f8::254] AAAA, expire at 2024-09-25 10:23:26"
time="2024-09-25T10:23:25.347205+08:00" level=info msg="[TCP] 198.18.0.1:5090 --> spo-ring.msedge.net:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:25.4082624+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:25.4082624+08:00" level=debug msg="[DNS] cache hit 节点域名 --> [162.*] A, expire at 2024-09-25 10:24:21"
time="2024-09-25T10:23:25.4087902+08:00" level=debug msg="[DNS] cache hit 节点域名 --> [2606:*] AAAA, expire at 2024-09-25 10:24:21"
time="2024-09-25T10:23:25.5472626+08:00" level=debug msg="[DNS] resolve bx-ring.msedge.net A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:25.5472626+08:00" level=debug msg="[DNS] resolve bx-ring.msedge.net AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:25.5546771+08:00" level=info msg="[TCP] [fdfe:dcba:9876::1]:5095 --> mtalk.google.com:5228 match GeoSite(google) using PROXY[馃嚟馃嚢 棣欐腐浼橀€塢"
time="2024-09-25T10:23:25.5567973+08:00" level=debug msg="[DNS] bx-ring.msedge.net --> [150.171.73.254 150.171.74.254] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:25.5567973+08:00" level=debug msg="[DNS] bx-ring.msedge.net --> [2603:1061:10:1::254 2603:1061:10::254] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:25.5589179+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:25.5590856+08:00" level=debug msg="[DNS] cache hit bx-ring.msedge.net --> [150.171.73.254 150.171.74.254] A, expire at 2024-09-25 10:23:44"
time="2024-09-25T10:23:25.5590856+08:00" level=debug msg="[DNS] cache hit bx-ring.msedge.net --> [2603:1061:10:1::254 2603:1061:10::254] AAAA, expire at 2024-09-25 10:23:26"
time="2024-09-25T10:23:25.7188277+08:00" level=info msg="[TCP] 198.18.0.1:5097 --> bx-ring.msedge.net:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:26.3904707+08:00" level=debug msg="[DNS] resolve dual-s-ring.msedge.net A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:26.3909765+08:00" level=debug msg="[DNS] resolve dual-s-ring.msedge.net AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:26.4002705+08:00" level=debug msg="[DNS] dual-s-ring.msedge.net --> [2603:1063:27:2::254 2603:1063:27:1::254] AAAA from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:26.4002705+08:00" level=debug msg="[DNS] dual-s-ring.msedge.net --> [52.123.129.254 52.123.128.254] A from https://223.5.5.5:443/dns-query"
time="2024-09-25T10:23:26.402682+08:00" level=debug msg="[Rule] use default rules"
time="2024-09-25T10:23:26.402682+08:00" level=debug msg="[DNS] cache hit dual-s-ring.msedge.net --> [52.123.129.254 52.123.128.254] A, expire at 2024-09-25 10:23:57"
time="2024-09-25T10:23:26.402682+08:00" level=debug msg="[DNS] cache hit dual-s-ring.msedge.net --> [2603:1063:27:2::254 2603:1063:27:1::254] AAAA, expire at 2024-09-25 10:23:27"
time="2024-09-25T10:23:26.4443798+08:00" level=info msg="[TCP] 198.18.0.1:5102 --> dual-s-ring.msedge.net:443 match GeoSite(microsoft) using DIRECT"
time="2024-09-25T10:23:29.5322357+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:59320"
time="2024-09-25T10:23:29.5322357+08:00" level=debug msg="[DNS] resolve 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.7.8.9.a.b.c.d.e.f.d.f.ip6.arpa PTR from "
time="2024-09-25T10:23:29.543658+08:00" level=debug msg="[DNS] resolve 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.7.8.9.a.b.c.d.e.f.d.f.ip6.arpa PTR from udp://192.168.0.1:53"
time="2024-09-25T10:23:29.5441599+08:00" level=debug msg="[DNS] 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.7.8.9.a.b.c.d.e.f.d.f.ip6.arpa --> [] PTR from udp://192.168.0.1:53"
time="2024-09-25T10:23:29.5441599+08:00" level=debug msg="[DNS] 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.7.8.9.a.b.c.d.e.f.d.f.ip6.arpa --> [] PTR from udp://192.168.0.1:53"
time="2024-09-25T10:23:29.5449936+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:59322"
time="2024-09-25T10:23:29.5449936+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:59323"
time="2024-09-25T10:23:47.2606342+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:65189"
time="2024-09-25T10:23:47.2606342+08:00" level=debug msg="[DNS] resolve 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.7.8.9.a.b.c.d.e.f.d.f.ip6.arpa PTR from udp://192.168.0.1:53"
time="2024-09-25T10:23:47.2606342+08:00" level=debug msg="[DNS] resolve 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.7.8.9.a.b.c.d.e.f.d.f.ip6.arpa PTR from udp://192.168.0.1:53"
time="2024-09-25T10:23:47.2978029+08:00" level=debug msg="[DNS] 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.7.8.9.a.b.c.d.e.f.d.f.ip6.arpa --> [] PTR from udp://192.168.0.1:53"
time="2024-09-25T10:23:47.2978029+08:00" level=debug msg="[DNS] 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.7.8.9.a.b.c.d.e.f.d.f.ip6.arpa --> [] PTR from udp://192.168.0.1:53"
time="2024-09-25T10:23:47.2983725+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:65191"
time="2024-09-25T10:23:47.2983725+08:00" level=debug msg="[DNS] hijack udp:[fdfe:dcba:9876::2]:53 from [fdfe:dcba:9876::1]:65192"
time="2024-09-25T10:24:02.0978036+08:00" level=debug msg="[DNS] resolve dns.msftncsi.com A from https://8.8.8.8:443/dns-query"
time="2024-09-25T10:24:02.0978036+08:00" level=debug msg="[DNS] resolve dns.msftncsi.com A from https://1.1.1.1:443/dns-query"
time="2024-09-25T10:24:02.1416752+08:00" level=debug msg="[DNS] dns.msftncsi.com --> [131.107.255.255] A from https://1.1.1.1:443/dns-query"
xishang0128 commented 2 months ago

windows ping主机名时,会附加搜索域向上级网关查询

所以无法劫持,这不是bug

严格路由只是限制发出