文章分类: Windows

Clash For Windows TUN模式教程

TUN 模式简介


在Windows中对于不遵循系统代理的软件,TAP 模式可以接管其流量并交由 CFW 处理。对于 0.13.8 及以后版本,更推荐使用TUN 模式。安装虚拟网卡功能后可以实现全局代理!


按照下方教程操作即可开启TUN模式进行网上冲浪


我们在配置好的Clash 里面点击服务模式的【Manage】



点击【install】,安装过程中,客户端会闪退,然后会自动重新打开



安装好之后服务模式旁边的地球就会变成绿色,如下图所示



点击【Manage】,可以看到服务模式已经安装好了



点击【Mixin】的编辑



打开后是这样的



复制下面的代码,填入上方图片内


mixin: 
hosts:
'mtalk.google.com': 108.177.125.188
'services.googleapis.cn': 74.125.203.94
'raw.githubusercontent.com': 151.101.76.133
dns:
enable: true
default-nameserver:
- 223.5.5.5
- 1.0.0.1
ipv6: false
enhanced-mode: redir-host #fake-ip
nameserver:
- https://dns.rubyfish.cn/dns-query
- https://223.5.5.5/dns-query
- https://dns.pub/dns-query
fallback:
- https://1.0.0.1/dns-query
- https://public.dns.iij.jp/dns-query
- https://dns.twnic.tw/dns-query
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
- 0.0.0.0/32
- 127.0.0.1/32
domain:
- +.google.com
- +.facebook.com
- +.twitter.com
- +.youtube.com
- +.xn--ngstr-lra8j.com
- +.google.cn
- +.googleapis.cn
- +.gvt1.com
tun:
enable: true
stack: gvisor
dns-hijack:
- 198.18.0.2:53
macOS-auto-route: true
macOS-auto-detect-interface: true # 自动检测出口网卡


复制成功后如下图




然后去自行选择节点,接着就可以开启开关了


更新于: 09/06/2023