Open rumianoesa opened 21 hours ago
尝试通过route-exclude-address解决
在配置文件添加 route-exclude-address:
smb连接没有绕过核心,通过isp前缀的dhcpv6地址建立了连接
将isp的网段也排除 route-exclude-address:
有效,smb连接不再经过核心
推测为auto-route在windows自动设置全局路由时,无法检测并排除路由器下发的ipv6公网网段和ula网段,或是无法适用于smb等windows系统服务
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
配置文件
描述
win11在tun模式下本地ula地址的smb连接没有绕过核心
日志未能发现有帮助的信息,只有匹配规则并建立连接的信息(最后一条)
重现方式
./mihomo -d ./ | Out-File -FilePath ".\log.txt" 在目录裸核运行mihomo并输出日志
在本机资源管理器通过\主机名,连接smb服务器上下载/上传文件
路由器启用了slaac和dhcpv6,ula地址范围为fd00::/64 本机的dhcpv6后缀指定为::4,smb服务器的dhcpv6后缀指定为::8
windows的ipconfig /all信息如下
以太网适配器 以太网:
连接特定的 DNS 后缀 . . . . . . . : lan 描述. . . . . . . . . . . . . . . : Realtek Gaming 2.5GbE Family Controller 物理地址. . . . . . . . . . . . . : DHCP 已启用 . . . . . . . . . . . : 是 自动配置已启用. . . . . . . . . . : 是 IPv6 地址 . . . . . . . . . . . . : 2409:::4(首选) 获得租约的时间 . . . . . . . . . : 2024年9月25日 4:01:47 租约过期的时间 . . . . . . . . . : 2024年9月27日 8:56:15 IPv6 地址 . . . . . . . . . . . . : 2409:slaac(首选) IPv6 地址 . . . . . . . . . . . . : fd00::4(首选) 获得租约的时间 . . . . . . . . . : 2024年9月25日 4:01:48 租约过期的时间 . . . . . . . . . : 2160年11月1日 12:16:33 IPv6 地址 . . . . . . . . . . . . : fd00::slaac(首选) 临时 IPv6 地址. . . . . . . . . . : 2409:slaac(首选) 临时 IPv6 地址. . . . . . . . . . : fd00::slaac(首选) 本地链接 IPv6 地址. . . . . . . . : fe80::%20(首选) IPv4 地址 . . . . . . . . . . . . : 192.168.0.4(首选) 子网掩码 . . . . . . . . . . . . : 255.255.255.0 获得租约的时间 . . . . . . . . . : 2024年9月25日 4:01:46 租约过期的时间 . . . . . . . . . : 2160年11月1日 12:16:33 默认网关. . . . . . . . . . . . . : fe80::%20 192.168.0.1 DHCP 服务器 . . . . . . . . . . . : 192.168.0.1 DHCPv6 IAID . . . . . . . . . . . : DHCPv6 客户端 DUID . . . . . . . : DNS 服务器 . . . . . . . . . . . : fd00::1 192.168.0.1 TCPIP 上的 NetBIOS . . . . . . . : 已启用
日志