proxy-providers: CNIX: type: http url: "这里需要替换为你的订阅链接,请保留双引号和双引号前面的空格" path: ./cnix.yaml interval: 7200 mixed-port: 7890 allow-lan: false mode: rule log-level: debug ipv6: false external-controller: 0.0.0.0:9090 dns: enable: true listen: 0.0.0.0:53 ipv6: false default-nameserver: - 114.114.114.114 nameserver: - tls://223.5.5.5:853 - 114.114.114.114 - 119.29.29.29 - 180.76.76.76 enhanced-mode: fake-ip fake-ip-range: 198.18.0.1/16 fake-ip-filter: - '*.lan' - '*.localdomain' - '*.example' - '*.invalid' - '*.localhost' - '*.test' - '*.local' - '*.home.arpa' - router.asus.com - localhost.sec.qq.com - localhost.ptlogin2.qq.com - '+.msftconnecttest.com' tun: enable: true stack: system macOS-auto-route: true macOS-auto-detect-interface: true dns-hijack: - 114.114.114.114 - 180.76.76.76 - 119.29.29.29 - 223.5.5.5 - 8.8.8.8 - 8.8.4.4 - 1.1.1.1 - 1.0.0.1 proxy-groups: - name: PROXY type: select proxies: - CNIX - DIRECT - name: CNIX type: select use: - CNIX rule-providers: reject: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt" path: ./ruleset/reject.yaml interval: 36000 icloud: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt" path: ./ruleset/icloud.yaml interval: 36000 apple: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt" path: ./ruleset/apple.yaml interval: 36000 google: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt" path: ./ruleset/google.yaml interval: 36000 proxy: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt" path: ./ruleset/proxy.yaml interval: 36000 direct: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt" path: ./ruleset/direct.yaml interval: 36000 private: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt" path: ./ruleset/private.yaml interval: 36000 telegramcidr: type: http behavior: ipcidr url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt" path: ./ruleset/telegramcidr.yaml interval: 36000 cncidr: type: http behavior: ipcidr url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt" path: ./ruleset/cncidr.yaml interval: 36000 lancidr: type: http behavior: ipcidr url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt" path: ./ruleset/lancidr.yaml interval: 36000 rules: - PROCESS-NAME,v2ray,DIRECT - PROCESS-NAME,xray,DIRECT - PROCESS-NAME,naive,DIRECT - PROCESS-NAME,trojan,DIRECT - PROCESS-NAME,trojan-go,DIRECT - PROCESS-NAME,ss-local,DIRECT - PROCESS-NAME,privoxy,DIRECT - PROCESS-NAME,leaf,DIRECT - PROCESS-NAME,v2ray.exe,DIRECT - PROCESS-NAME,xray.exe,DIRECT - PROCESS-NAME,naive.exe,DIRECT - PROCESS-NAME,trojan.exe,DIRECT - PROCESS-NAME,trojan-go.exe,DIRECT - PROCESS-NAME,ss-local.exe,DIRECT - PROCESS-NAME,privoxy.exe,DIRECT - PROCESS-NAME,leaf.exe,DIRECT - PROCESS-NAME,Surge,DIRECT - PROCESS-NAME,Surge 2,DIRECT - PROCESS-NAME,Surge 3,DIRECT - PROCESS-NAME,Surge 4,DIRECT - PROCESS-NAME,Surge%202,DIRECT - PROCESS-NAME,Surge%203,DIRECT - PROCESS-NAME,Surge%204,DIRECT - PROCESS-NAME,Thunder,DIRECT - PROCESS-NAME,DownloadService,DIRECT - PROCESS-NAME,qBittorrent,DIRECT - PROCESS-NAME,Transmission,DIRECT - PROCESS-NAME,fdm,DIRECT - PROCESS-NAME,aria2c,DIRECT - PROCESS-NAME,Folx,DIRECT - PROCESS-NAME,NetTransport,DIRECT - PROCESS-NAME,uTorrent,DIRECT - PROCESS-NAME,WebTorrent,DIRECT - PROCESS-NAME,aria2c.exe,DIRECT - PROCESS-NAME,BitComet.exe,DIRECT - PROCESS-NAME,fdm.exe,DIRECT - PROCESS-NAME,NetTransport.exe,DIRECT - PROCESS-NAME,qbittorrent.exe,DIRECT - PROCESS-NAME,Thunder.exe,DIRECT - PROCESS-NAME,ThunderVIP.exe,DIRECT - PROCESS-NAME,transmission-daemon.exe,DIRECT - PROCESS-NAME,transmission-qt.exe,DIRECT - PROCESS-NAME,uTorrent.exe,DIRECT - PROCESS-NAME,WebTorrent.exe,DIRECT - DOMAIN,clash.razord.top,DIRECT - DOMAIN,yacd.haishan.me,DIRECT - RULE-SET,private,DIRECT - RULE-SET,reject,REJECT - DOMAIN,www.icloud.com,PROXY - DOMAIN-SUFFIX,icloud-content.com,PROXY - RULE-SET,icloud,DIRECT - RULE-SET,apple,PROXY - RULE-SET,google,PROXY - RULE-SET,proxy,PROXY - RULE-SET,direct,DIRECT - RULE-SET,telegramcidr,PROXY - GEOIP,,DIRECT - GEOIP,CN,DIRECT - MATCH,PROXY