Clash TUN和TAP模式(搬运备用)

YeYo(博主) 随记杂谈 电脑应用212.7K字数 1465阅读4分53秒阅读模式

浏览器之类的应用都是使用系统DL的,一些非系统DL应用,可以通过设置被cfw接管。目前有两种模式,TAP模式和TUN模式,更推荐使用TUN模式。

TUN模式
点击General(常规)中Service Mode(服务模式)右边Manage(管理),在打开窗口中Install(安装)服务模式,安装完成应用会自动重启,Service Mode(服务模式)右边地球图标变为绿色即安装成功。文章源自《智享阁》智享阁-https://www.esnpc.com/clash-tun-tap-mode/

点击settings(设置)——Profile Mixin(混合配置)——YAML,点击edit(编辑),输入下面的内容,点击保存:文章源自《智享阁》智享阁-https://www.esnpc.com/clash-tun-tap-mode/

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 # 自动检测出口网卡

返回general(常规)页面开启Mixin(混合模式)即可,之后点击connections(连接)会发现所有连接都是TUN模式。文章源自《智享阁》智享阁-https://www.esnpc.com/clash-tun-tap-mode/

文章源自《智享阁》智享阁-https://www.esnpc.com/clash-tun-tap-mode/

TAP模式
点击General(常规)页面中TAP Device(TAP 网络适配器)选项的Manage(管理)按钮,在弹出对话框中选择Install(安装)将会安装 TAP 网卡,此网卡用于接管系统流量,安装完成可在系统网络连接中看到名为cfw-tap的网卡。文章源自《智享阁》智享阁-https://www.esnpc.com/clash-tun-tap-mode/

启动 TAP 模式:点击settings(设置)——Profile Mixin(混合配置)——YAML,点击edit(编辑),输入下面的内容,点击保存:文章源自《智享阁》智享阁-https://www.esnpc.com/clash-tun-tap-mode/

mixin:
dns:
enable: true
enhanced-mode: redir-host
listen: :53
nameserver:
- https://doh.dns.sb/dns-query
- https://dns.adguard.com/dns-query
- https://cdn-doh.ssnm.xyz/dns-query
- 119.29.29.29 #腾讯
- 223.5.5.5 #阿里

返回general页面开启Mixin(混合配置)即可。文章源自《智享阁》智享阁-https://www.esnpc.com/clash-tun-tap-mode/ 文章源自《智享阁》智享阁-https://www.esnpc.com/clash-tun-tap-mode/

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布、售卖本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

YeYo(博主)
  • 本文由 YeYo(博主) 发表于 2022年6月7日14:30:07
  • 转载请保留本文链接:https://www.esnpc.com/clash-tun-tap-mode/
评论  2  访客  2
    • 新用户
      新用户 2

      谢谢你们辛苦了

      • 老手掌按摩
        老手掌按摩 0

        谢谢你们辛苦了!

      发表评论