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 auto-route: true 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 applications: type: http behavior: classical url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt" path: ./ruleset/applications.yaml interval: 36000 rules: - RULE-SET,applications,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,lancidr,DIRECT - RULE-SET,cncidr,DIRECT - RULE-SET,telegramcidr,PROXY - MATCH,PROXY