MetaCubeX / mihomo

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

[Bug] 当配置开启v6之后,开启手机热点会有部分流量不走代理 #1674

Closed SixGodSGD closed 5 days ago

SixGodSGD commented 5 days ago

验证步骤

操作系统

Android

系统版本

安卓15

Mihomo 版本

v1.18.10

配置文件

mixed-port: 1080
redir-port: 7891
tproxy-port: 1536
allow-lan: true
mode: rule
log-level: warning

ipv6: true
keep-alive-interval: 15
keep-alive-idle: 15
unified-delay: true
tcp-concurrent: true
external-controller: 127.0.0.1:9090
external-ui: ui
secret: ""
external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"

find-process-mode: always
global-client-fingerprint: chrome

profile:
  store-selected: true
  store-fake-ip: true

sniffer:
  enable: true
  sniff:
    HTTP:
      ports: [80, 8080-8880]
      override-destination: true
    TLS:
      ports: [443, 8443]
    QUIC:
      ports: [443, 8443]
  skip-domain:
    - "Mijia Cloud"
    - "+.oray.com"
    - "+.oray.net"
    - "+.orayer.com"
    - "+.apple.com"
    - "dlg.io.mi.com"
    - ".push.apple.com"

tun:
  enable: true
  stack: gvisor
  device: tun0
  mtu: 9000
  dns-hijack:
    - "any:53"
    - "tcp://any:53"
  auto-route: true
  strict-route: true
#  auto-redirect: true
  auto-detect-interface: true

描述

手机开启热点之后,不管是tun还是tp还是redirect都会出现,热点流量部分会不经过代理。 但是关闭v6之后,则正常

重现方式

配置开启v6,即可复现

日志

time="2024-11-26T13:59:23.766817553+08:00" level=info msg="RESTful API listening at: 127.0.0.1:9090"
me="2024-11-26T13:59:23.776521563+08:00" level=info msg="Sniffer is loaded and working"
time="2024-11-26T13:59:23.776545001+08:00" level=info msg="Use tcp concurrent"
time="2024-11-26T13:59:23.776913647+08:00" level=info msg="DNS server listening at: [::]:1053"
time="2024-11-26T13:59:23.777033751+08:00" level=info msg="Redirect proxy listening at: [::]:7891"
time="2024-11-26T13:59:23.777148594+08:00" level=info msg="TProxy server listening at: [::]:1536"
time="2024-11-26T13:59:23.777258438+08:00" level=info msg="Mixed(http+socks) proxy listening at: [::]:1080"
time="2024-11-26T13:59:23.779406511+08:00" level=warning msg="[TUN] default interface changed by monitor,  => rmnet_data3"
time="2024-11-26T13:59:23.799214636+08:00" level=info msg="[TUN] Tun adapter listening at: tun0([198.18.0.0/30],[fdfe:dcba:9876::1/126]), mtu: 9000, auto route: true, auto redir: false, ip stack: gVisor"
xishang0128 commented 5 days ago

Android缺少一些ipv6的iptables支持,这是正常情况