[X] 这是 Mihomo 核心的问题,并非我所使用的 Mihomo 衍生版本(如 OpenMihomo、KoolMihomo 等)的特定问题 This is an issue of the Mihomo core per se, not to the derivatives of Mihomo, like OpenMihomo or KoolMihomo.
Mihomo version
Mihomo Meta alpha-e6011301 darwin arm64 with go1.21.6 Sat Feb 3 07:02:18 UTC 2024 Use tags: with_gvisor
What OS are you seeing the problem on?
No response
Mihomo config
tun:
enable: true
stack: system # gvisor
dns-hijack:
- any:53
auto-route: true
auto-detect-interface: true
strict-route: false # 严格路由,它可以防止地址泄漏,并使 DNS 劫持在 Android 和使用 systemd-resolved 的 Linux 上工作,但你的设备将无法被其他设备访问
sniffer:
enable: true
force-dns-mapping: true
parse-pure-ip: true
override-destination: true
sniff:
HTTP:
ports: [80, 8080-8880]
override-destination: true
TLS:
ports: [443, 8443]
QUIC:
ports: [443, 8443]
force-domain:
- +.v2ex.com
dns:
enable: true
prefer-h3: true
listen: 0.0.0.0:1053
ipv6: false
use-hosts: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- '*.lan'
- localhost.ptlogin2.qq.com
default-nameserver:
- 223.5.5.5
# - system # append DNS server from system configuration. If not found, it would print an error log and skip.
nameserver:
- quic://dns.alidns.com:784
- https://dns.alidns.com/dns-query#h3=true
proxy-server-nameserver:
- https://dns.alidns.com/dns-query#h3=true
fallback:
- tls://8.8.4.4
- tls://1.1.1.1
fallback-filter:
geoip: true
geoip-code: CN # 当 nameserver 域名的 IP 查询 geoip 库为 CN 时,不使用 fallback 中的 DNS 查询结果
geosite:
- gfw
- geolocation-!cn
ipcidr:
- 240.0.0.0/4
domain:
- '+.google.com'
- '+.facebook.com'
- '+.youtube.com'
nameserver-policy:
"geosite:cn,private,apple":
- quic://dns.alidns.com:784
- https://dns.alidns.com/dns-query#h3=true
"geosite:category-ads-all": rcode://success
"rule-set:reject,ad": rcode://success
"rule-set:direct,apple,icloud": https://dns.alidns.com/dns-query#h3=true
"rule-set:gfw,proxy,google": tls://1.1.1.1
Mihomo log
connect error: dns resolve failed: all DNS requests failed, first error: failed to reset http client:
Verify steps
Mihomo version
Mihomo Meta alpha-e6011301 darwin arm64 with go1.21.6 Sat Feb 3 07:02:18 UTC 2024 Use tags: with_gvisor
What OS are you seeing the problem on?
No response
Mihomo config
Mihomo log
Description
mihomo core 编译自Alpha分支源码。
开启tun后的行为:所有走代理的请求都可以正常访问,但走直连的都error了。 此问题似乎在linux上也会出现。