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

TUN模式
点击General(常规)中Service Mode(服务模式)右边Manage(管理),在打开窗口中Install(安装)服务模式,安装完成应用会自动重启,Service Mode(服务模式)右边地球图标变为绿色即安装成功。

点击settings(设置)——Profile Mixin(混合配置)——YAML,点击edit(编辑),输入下面的内容,点击保存:
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模式。

TAP模式
点击General(常规)页面中TAP Device(TAP 网络适配器)选项的Manage(管理)按钮,在弹出对话框中选择Install(安装)将会安装 TAP 网卡,此网卡用于接管系统流量,安装完成可在系统网络连接中看到名为cfw-tap的网卡。

启动 TAP 模式:点击settings(设置)——Profile Mixin(混合配置)——YAML,点击edit(编辑),输入下面的内容,点击保存:
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(混合配置)即可。

发表回复

后才能评论

评论(2)