Arxhexa

Results 7 comments of Arxhexa

> > It is enabled by default under these protocols > > I've tried using a server without UDP support, but I can't access UDP Are there any special settings?...

确实会舍弃ipv6的解析地址 ``` time="2023-10-11T20:54:41.9983704+08:00" level=debug msg="[DNS] mirrors.tuna.tsinghua.edu.cn --> [2402:f000:1:400::2], from udp://172.21.0.21:53" time="2023-10-11T20:54:41.9983704+08:00" level=debug msg="[DNS] mirrors.tuna.tsinghua.edu.cn --> [101.6.15.130], from udp://172.21.0.21:53" time="2023-10-11T20:54:41.9983704+08:00" level=debug msg="[DNS] mirrors.tuna.tsinghua.edu.cn --> 101.6.15.130" ``` 之后链接发起也是通过本地ipv4地址 ``` time="2023-10-11T20:54:42.006791+08:00" level=info msg="[TCP]...

> > 确实会舍弃ipv6的解析地址 > > ``` > > time="2023-10-11T20:54:41.9983704+08:00" level=debug msg="[DNS] mirrors.tuna.tsinghua.edu.cn --> [2402:f000:1:400::2], from udp://172.21.0.21:53" > > time="2023-10-11T20:54:41.9983704+08:00" level=debug msg="[DNS] mirrors.tuna.tsinghua.edu.cn --> [101.6.15.130], from udp://172.21.0.21:53" > > time="2023-10-11T20:54:41.9983704+08:00" level=debug...

再补充说明一下,我没有用过go,所有的推论只是基于控制变量和查看log 指定ip-version为ipv6是为了确保clash仅通过ipv6建立连接,这一点我在同时有v4/v6地址的情况下试验过,是没有问题的 校园网仅单栈v6认证是为了确保物理网卡的ipv4地址无法访问外网,这样任何的外网连接都不可能通过ipv4地址建立 此时启用clash的tun 访问双栈支持的网站在log中会显示通过tun的ipv4地址与目标网站ipv4地址建立连接,由于网站可以正常加载同时无论是clash还是物理网卡都不可能让流量经过ipv4,所以我认为底层连接实际是通过ipv6建立的,虽然在log中不是这样 访问单栈ipv6的网站如果我没记错似乎在log中不会出现任何记录 虽然geoip规则由于默认返回ipv4地址无法分流,但geosite规则可能是可以做到的,比如说 `-GEOSITE, cnipv6, v6direct` 但我不确定是否会有人维护这样一个域名列表

ipcidr6的问题应该是修复了,今天试了一下`- IP-CIDR6,::/0,v6direct`对存在ipv6地址的双栈网站可以匹配直连 ![1710927776779](https://github.com/MetaCubeX/mihomo/assets/98107500/7995dfa0-f623-462c-a521-7b217f8582a9) 你可以尝试使用校园网ipv4访问b站,分配bilivideo的cdn可以匹配 IP-CIDR6,::/0 的规则

> > 确实会舍弃ipv6的解析地址 > > ``` > > time="2023-10-11T20:54:41.9983704+08:00" level=debug msg="[DNS] mirrors.tuna.tsinghua.edu.cn --> [2402:f000:1:400::2], from udp://172.21.0.21:53" > > time="2023-10-11T20:54:41.9983704+08:00" level=debug msg="[DNS] mirrors.tuna.tsinghua.edu.cn --> [101.6.15.130], from udp://172.21.0.21:53" > > time="2023-10-11T20:54:41.9983704+08:00" level=debug...