# CFW/Clash.for.Windows

## [**下载地址**](https://github.com/Fndroid/clash_for_windows_pkg/releases) [**备用地址**](https://raw.nameless13.com/api/public/dl/xyT2pW4v/cfw.7z) [**tap模式**](#tap) [**tun模式**](#tun-mo-shi) **教程以本页面客户端版本为准** <a href="#down" id="down"></a>

也可以手动添加把订阅地址最后的 ?mu=1 改为 ?clash=2

**最新clash用mixport socks5 http端口默认为7890**&#x20;

![最新版cfw才支持 电脑拨号用户得安装 SwitchyOmega 手动填代理](/files/-MDcPRJO4XNnIe2Vud-w)

```
 mixin: 
   dns:
     enable: true
     listen: 127.0.0.1:53
     default-nameserver:
       - 223.5.5.5
       - 1.0.0.1
     ipv6: false
     enhanced-mode: fake-ip #redir-host
     nameserver:
       - tls://223.6.6.6:853
       - tls://dot.pub
       - 114.114.114.114
     fallback:
       - https://1.0.0.1/dns-query
       - tls://8.8.4.4
       - https://public.dns.iij.jp/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
         - +.youtube.com
         - +.xn--ngstr-lra8j.com
         - +.google.cn
         - +.googleapis.cn
         - +.gvt1.com
```

[常见问题](/shr.md#7)

![切换节点打断建议打开](/files/-MIsln7IikGfnPp72fwi)

{% file src="/files/-MDcfaVEdvx8ygO3Kyva" %}

## **tap模式**(透明代理可以代理不走系统代理的app) <a href="#tap" id="tap"></a>

**托管默认没开udp如果需要玩游戏请自行用** [**api**](https://api.nameless13.com/) **转换把udp勾上(但可能会导致看youtube速度慢需要关闭浏览器的quic机能)**

### 修改mixin没有的话请下载最新版

```
 mixin: 
   dns:
     enable: true
     listen: :53
     default-nameserver:
       - 223.5.5.5
       - 1.0.0.1
     ipv6: false
     enhanced-mode: fake-ip
     fake-ip-filter:
       #- "+" 
       #LAN
       - "*.lan"
       - "*.localdomain"
       - "*.example"
       - "*.invalid"
       - "*.localhost"
       - "*.test"
       - "*.local"
       - "*.home.arpa"
       #放行NTP服务"
       - "time.*.com"
       - "time.*.gov"
       - "time.*.edu.cn"
       - "time.*.apple.com"
       - "time1.*.com"
       - "time2.*.com"
       - "time3.*.com"
       - "time4.*.com"
       - "time5.*.com"
       - "time6.*.com"
       - "time7.*.com"
       - "ntp.*.com"
       - "ntp1.*.com"
       - "ntp2.*.com"
       - "ntp3.*.com"
       - "ntp4.*.com"
       - "ntp5.*.com"
       - "ntp6.*.com"
       - "ntp7.*.com"
       - "*.time.edu.cn"
       - "*.ntp.org.cn"
       - "+.pool.ntp.org"
       - "time1.cloud.tencent.com"
       #放行网易云音乐"
       - "music.163.com"
       - "*.music.163.com"
       - "*.126.net"
       #百度音乐"
       - "musicapi.taihe.com"
       - "music.taihe.com"
       #酷狗音乐"
       - "songsearch.kugou.com"
       - "trackercdn.kugou.com"
       #酷我音乐"
       - "*.kuwo.cn"
       #JOOX音乐"
       - "api-jooxtt.sanook.com"
       - "api.joox.com"
       - "joox.com"
       #QQ音乐"
       - "y.qq.com"
       - "*.y.qq.com"
       - "streamoc.music.tc.qq.com"
       - "mobileoc.music.tc.qq.com"
       - "isure.stream.qqmusic.qq.com"
       - "dl.stream.qqmusic.qq.com"
       - "aqqmusic.tc.qq.com"
       - "amobile.music.tc.qq.com"
       #虾米音乐"
       - "*.xiami.com"
       #咪咕音乐"
       - "*.music.migu.cn"
       - "music.migu.cn"
       #win10本地连接检测"
       - "+.msftconnecttest.com"
       - "+.msftncsi.com"
       - "msftconnecttest.com"
       - "msftncsi.com"
       #QQ快捷登录"
       - "localhost.ptlogin2.qq.com"
       - "localhost.sec.qq.com"
       #Game"
       #Nintendo Switch"
       - "+.srv.nintendo.net"
       #Sony PlayStation"
       - "+.stun.playstation.net"
       #Microsoft Xbox"
       - "xbox.*.microsoft.com"
       - "xnotify.xboxlive.com"
       - "+.ipv6.microsoft.com"
       #Wotgame"
       - "+.battlenet.com.cn"
       - "+.wotgame.cn"
       - "+.wggames.cn"
       - "+.wowsgame.cn"
       - "+.wargaming.net"
       #Golang"
       - "proxy.golang.org"
       #STUN"
       - "stun.*.*"
       - "stun.*.*.*"
       - "+.stun.*.*"
       - "+.stun.*.*.*"
       - "+.stun.*.*.*.*"
       - "+.pvp.net"
       #Linksys Router"
       - "heartbeat.belkin.com"
       - "*.linksys.com"
       - "*.linksyssmartwifi.com"
       #ASUS Router"
       - "*.router.asus.com"
       #Apple Software Update Service"
       - "mesu.apple.com"
       - "swscan.apple.com"
       - "swquery.apple.com"
       - "swdownload.apple.com"
       - "swcdn.apple.com"
       - "swdist.apple.com"
       #Google"
       - "lens.l.google.com"
       - "stun.l.google.com"
       #Netflix"
       - "+.nflxvideo.net"
       #FinalFantasy XIV Worldwide Server & CN Server"
       - "*.square-enix.com"
       - "*.finalfantasyxiv.com"
       - "*.ffxiv.com"
       - "*.ff14.sdo.com"
       - "ff.dorado.sdo.com"
       #Bilibili"
       - "*.mcdn.bilivideo.cn"
       #Disney Plus"
       - "+.media.dssott.com"
     nameserver:
       - tls://dot.pub
       - 114.114.114.114
       - tls://223.6.6.6:853
     fallback:
       - https://1.0.0.1/dns-query
       - tls://8.8.4.4
       - https://public.dns.iij.jp/dns-query
     fallback-filter:
       geoip: true
       ipcidr:
         - 240.0.0.0/4
         - 0.0.0.0/32
         - 127.0.0.1/32
```

![复制上面代码到mixin里面保存](/files/-MF4Mv36IRSDIrV6Fog7)

![](/files/-MF4N1I2VM4PJ4qL5AwP)

### 安装tap

![以防万一先卸载一遍再装](/files/-MF4OUEYxAWgQfGKWCPS)

![安装后会多一个cfw-tap和打开mixin即可连接 系统代理不需要打开](/files/-MF4P4DJ66-3Pj3wsndY)

<div align="left"><img src="/files/-MF4PLnwPI3KqszWS9NX" alt="注意outbound是物理网卡我的连接外网的网卡是以太网就选以太网"></div>

### tun模式 <a href="#tun-mo-shi" id="tun-mo-shi"></a>

![点击manage](https://2539514365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMVr7010Jjg6iUmzffT%2Fuploads%2FH8I3zyP244Nrb79nzhvh%2Fimage.png?alt=media\&token=04da7916-185f-4112-b26e-30279024ed46)

![然后安装](https://2539514365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMVr7010Jjg6iUmzffT%2Fuploads%2FMdUbRYjrRv7xmA6OjL7S%2Fimage.png?alt=media\&token=3a025fd9-03dc-462a-9ded-310d38ea853e)

![安装成功后地球会变绿色 打开tun mode即可](https://2539514365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMVr7010Jjg6iUmzffT%2Fuploads%2FAS7NQRAgEUqBUmnYzxSs%2Fimage.png?alt=media\&token=c6aef38a-5359-4f38-8abf-fc46dc02735e)

tun mode设置(可选)

![玩游戏可以尝试 filter添加一个+解决某些游戏nat问题](https://2539514365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMVr7010Jjg6iUmzffT%2Fuploads%2Fmz15E8ECUiKVJeY571nG%2Fimage.png?alt=media\&token=7eca0161-fec4-4b70-9807-28fd468c6499)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nameless13.com/clash/cfw.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
