[BUG]开启TUN的情况下,WSA偶发性无法连接
HAMAN23333 opened this issue · comments
Describe the bug
WSA有时能连接网络,有时直接无网络,第一张图为无法连接网络的情况,第二三张为正常连接的情况
在无法连接的情况下,Verge的日志也没有任何记录,尝试过修改子系统的DNS也无效,在Clash for windows下没有此问题
Verge配置如下:
tun:
enable: true
stack: mixed
dns-hijack:
- 'any:53'
- 'tcp://any:53'
auto-route: true
auto-detect-interface: true
dns:
enable: true
listen: :53
ipv6: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter: []
default-nameserver:
- 119.29.29.29
- 223.5.5.5
nameserver:
- 'https://1.1.1.1/dns-query#DNS'
- 'https://dns.google/dns-query#DNS'
proxy-server-nameserver:
- https://doh.pub/dns-query
- https://dns.alidns.com/dns-query
nameserver-policy:
"rule-set:ChinaMax,ChinaMax_Domain":
- https://doh.pub/dns-query
- https://dns.alidns.com/dns-query
"rule-set:Lan":
- 192.168.50.1
Information
- OS: Windows 11 22621.2428
- Clash Verge Version: 1.3.7
- Clash Core: Clash Meta
遇到同样的问题,目前根据多次尝试的情况总结:可能 是TUN模式下使用system stack导致的TCP连接相关问题
你的配置中TUN使用了mixed stack也就是对TCP连接使用system stack
tun:
enable: true
stack: mixed
dns-hijack:
- 'any:53'
- 'tcp://any:53'
auto-route: true
auto-detect-interface: true
这和我曾经在使用system stack的情况是一样的,WSA间歇性断网
临时性的解决办法
- 不要使用mixed stack下导致的TCP连接使用system stack,以及不要使用system stack
- 换用gvisor stack可以 缓解 这个问题
我说 缓解 是因为不确定是不是彻底解决了问题,只是目前使用下来没有再出现过之前的WSA断网情况
以上,欢迎讨论这个问题的后续现象 ♥
遇到同样的问题,目前根据多次尝试的情况总结:可能 是TUN模式下使用system stack导致的TCP连接相关问题
你的配置中TUN使用了mixed stack也就是对TCP连接使用system stack
tun:
enable: true
stack: mixed
dns-hijack:
- 'any:53'
- 'tcp://any:53'
auto-route: true
auto-detect-interface: true这和我曾经在使用system stack的情况是一样的,WSA间歇性断网
临时性的解决办法
- 不要使用mixed stack下导致的TCP连接使用system stack,以及不要使用system stack
- 换用gvisor stack可以 缓解 这个问题
我说 缓解 是因为不确定是不是彻底解决了问题,只是目前使用下来没有再出现过之前的WSA断网情况
以上,欢迎讨论这个问题的后续现象 ♥
感谢,确实有效