mixed-port: 7890 allow-lan: false bind-address: '*' mode: rule log-level: info unified-delay: true tcp-concurrent: true ipv6: false # 规则集 (云端每日维护更新,替代原配置臃肿的几千行死规则) rule-providers: reject: type: http behavior: domain url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt" path: ./ruleset/reject.yaml interval: 86400 direct: type: http behavior: domain url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt" path: ./ruleset/direct.yaml interval: 86400 proxy: type: http behavior: domain url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt" path: ./ruleset/proxy.yaml interval: 86400 telegramcidr: type: http behavior: ipcidr url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt" path: ./ruleset/telegramcidr.yaml interval: 86400 cncidr: type: http behavior: ipcidr url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt" path: ./ruleset/cncidr.yaml interval: 86400 lancidr: type: http behavior: ipcidr url: "https://testingcf.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt" path: ./ruleset/lancidr.yaml interval: 86400 dns: enable: true ipv6: false enhanced-mode: fake-ip fake-ip-range: 198.18.0.1/16 respect-rules: true use-hosts: true default-nameserver: - 223.5.5.5 - 119.29.29.29 nameserver: - https://dns.alidns.com/dns-query - https://doh.pub/dns-query proxy-server-nameserver: - https://dns.alidns.com/dns-query nameserver-policy: "geosite:geolocation-!cn": - https://dns.cloudflare.com/dns-query - https://dns.google/dns-query "+.fastmicrosoft.com": - "https://ns-cdn.jjjxgc.com/dns-query/24aa8776-5d98-4865-bb1c-37b9d556aade" - "https://system.microsoftcdns.com:8888/dns-query/24aa8776-5d98-4865-bb1c-37b9d556aade" fake-ip-filter: - "*.lan" - "*.local" - "*.localhost" - "localhost.ptlogin2.qq.com" - "+.stun.*.*" - "+.stun.*.*.*" - "+.stun.*.*.*.*" - "+.msftncsi.com" - "+.msftconnecttest.com" proxies: - { name: 香港1|IEPL||解NF|1x, type: anytls, server: co1-oss-cdn.fastmicrosoft.com, port: 10002, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: mpvideo.qpic.cn, skip-cert-verify: true } - { name: 香港2|IEPL||解NF|1x, type: anytls, server: co2-oss-cdn.fastmicrosoft.com, port: 10003, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: mpvideo.qpic.cn, skip-cert-verify: true } - { name: 香港3|IEPL||解NF|1x, type: anytls, server: co3-oss-cdn.fastmicrosoft.com, port: 10004, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 香港4|IEPL||解NF|1x, type: anytls, server: co4-oss-cdn.fastmicrosoft.com, port: 10005, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 香港5|IEPL||解NF|1x, type: anytls, server: co5-oss-cdn.fastmicrosoft.com, port: 10006, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 台湾1|IEPL|解NF+GPT|1x, type: anytls, server: co6-oss-cdn.fastmicrosoft.com, port: 10007, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 台湾2|IEPL|解NF+GPT|1x, type: anytls, server: co7-oss-cdn.fastmicrosoft.com, port: 10008, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 台湾3|IEPL|解NF+GPT|1x, type: anytls, server: co2-oss-cdn.fastmicrosoft.com, port: 10009, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 新加坡1|IEPL|极速1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10010, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 新加坡2|IEPL|极速1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10011, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 新加坡3|IEPL|极速1x, type: anytls, server: co2-oss-cdn.fastmicrosoft.com, port: 10012, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 日本1|IEPL|解GPT+流媒体|1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10023, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 日本2|IEPL|解GPT+流媒体|1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10024, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 日本3|IEPL|解GPT+流媒体|1x, type: anytls, server: co2-oss-cdn.fastmicrosoft.com, port: 10025, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 韩国1|IEPL|1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10013, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 越南1|IEPL|1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10014, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 泰国1|IEPL|1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10015, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 马来西亚1|IEPL|1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10026, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 美国1|IEPL|解TK+GPT|1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10016, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 美国2|IEPL|解TK+GPT|1x, type: anytls, server: co8-oss-cdn.fastmicrosoft.com, port: 10017, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 美国3|IEPL|解TK+GPT|1x, type: anytls, server: us-cdn-k.anywher789.com, port: 10018, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 美国4|IEPL|解TK+GPT|1x, type: anytls, server: us-cdn-k.anywher789.com, port: 10019, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 美国5|IEPL|解TK+GPT|1x, type: anytls, server: us-cdn-k.anywher789.com, port: 10020, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: mpvideo.qpic.cn, skip-cert-verify: true } - { name: 英国1|IEPL|1x, type: anytls, server: de-cdn.anywher789.com, port: 10021, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } - { name: 德国1|IEPL|1x, type: anytls, server: de-cdn.anywher789.com, port: 10022, password: 8c3dda6b-c67d-4c71-8fb6-b355218f6469, udp: true, client-fingerprint: chrome, sni: lf3-cdn-tos.bytecdntp.com, skip-cert-verify: true } proxy-groups: - name: 🚀 节点选择 type: select proxies: - ♻️ 自动选择 - 🔯 故障转移 - DIRECT - 香港1|IEPL||解NF|1x - 香港2|IEPL||解NF|1x - 香港3|IEPL||解NF|1x - 香港4|IEPL||解NF|1x - 香港5|IEPL||解NF|1x - 台湾1|IEPL|解NF+GPT|1x - 台湾2|IEPL|解NF+GPT|1x - 台湾3|IEPL|解NF+GPT|1x - 新加坡1|IEPL|极速1x - 新加坡2|IEPL|极速1x - 新加坡3|IEPL|极速1x - 日本1|IEPL|解GPT+流媒体|1x - 日本2|IEPL|解GPT+流媒体|1x - 日本3|IEPL|解GPT+流媒体|1x - 韩国1|IEPL|1x - 越南1|IEPL|1x - 泰国1|IEPL|1x - 马来西亚1|IEPL|1x - 美国1|IEPL|解TK+GPT|1x - 美国2|IEPL|解TK+GPT|1x - 美国3|IEPL|解TK+GPT|1x - 美国4|IEPL|解TK+GPT|1x - 美国5|IEPL|解TK+GPT|1x - 英国1|IEPL|1x - 德国1|IEPL|1x - name: ♻️ 自动选择 type: url-test url: https://www.gstatic.com/generate_204 interval: 300 tolerance: 50 proxies: - 香港1|IEPL||解NF|1x - 香港2|IEPL||解NF|1x - 香港3|IEPL||解NF|1x - 香港4|IEPL||解NF|1x - 香港5|IEPL||解NF|1x - 台湾1|IEPL|解NF+GPT|1x - 台湾2|IEPL|解NF+GPT|1x - 台湾3|IEPL|解NF+GPT|1x - 新加坡1|IEPL|极速1x - 新加坡2|IEPL|极速1x - 新加坡3|IEPL|极速1x - 日本1|IEPL|解GPT+流媒体|1x - 日本2|IEPL|解GPT+流媒体|1x - 日本3|IEPL|解GPT+流媒体|1x - 韩国1|IEPL|1x - 越南1|IEPL|1x - 泰国1|IEPL|1x - 马来西亚1|IEPL|1x - 美国1|IEPL|解TK+GPT|1x - 美国2|IEPL|解TK+GPT|1x - 美国3|IEPL|解TK+GPT|1x - 美国4|IEPL|解TK+GPT|1x - 美国5|IEPL|解TK+GPT|1x - 英国1|IEPL|1x - 德国1|IEPL|1x - name: 🔯 故障转移 type: fallback url: https://www.gstatic.com/generate_204 interval: 300 proxies: - 香港1|IEPL||解NF|1x - 新加坡1|IEPL|极速1x - 日本1|IEPL|解GPT+流媒体|1x - 美国1|IEPL|解TK+GPT|1x - name: 💬 AI平台 type: select proxies: - 🚀 节点选择 - 台湾1|IEPL|解NF+GPT|1x - 日本1|IEPL|解GPT+流媒体|1x - 新加坡1|IEPL|极速1x - 美国1|IEPL|解TK+GPT|1x - name: 📹 国外媒体 type: select proxies: - 🚀 节点选择 - ♻️ 自动选择 - DIRECT - name: 📲 电报消息 type: select proxies: - 🚀 节点选择 - 新加坡1|IEPL|极速1x - 台湾1|IEPL|解NF+GPT|1x - name: 🎮 Steam分流 type: select proxies: - DIRECT - 🚀 节点选择 - name: 🛑 广告拦截 type: select proxies: - REJECT - DIRECT - name: 🎯 全球直连 type: select proxies: - DIRECT - 🚀 节点选择 - name: 🐟 漏网之鱼 type: select proxies: - 🚀 节点选择 - 🎯 全球直连 rules: # 1. 本地局域网流量绝对直连 (置顶,保障局域网访问) - RULE-SET,lancidr,🎯 全球直连,no-resolve # 2. 广告拦截 - RULE-SET,reject,🛑 广告拦截 # 3. 常见特定服务分流 - RULE-SET,telegramcidr,📲 电报消息,no-resolve - GEOSITE,openai,💬 AI平台 - GEOSITE,anthropic,💬 AI平台 - GEOSITE,youtube,📹 国外媒体 - GEOSITE,netflix,📹 国外媒体 - GEOSITE,disney,📹 国外媒体 - GEOSITE,steam@cn,🎮 Steam分流 - GEOSITE,steam,🚀 节点选择 # 4. 国外常用代理网站 - RULE-SET,proxy,🚀 节点选择 - GEOSITE,geolocation-!cn,🚀 节点选择 # 5. 国内服务直连 - RULE-SET,direct,🎯 全球直连 - RULE-SET,cncidr,🎯 全球直连 - GEOIP,CN,🎯 全球直连 # 6. 兜底规则 - MATCH,🐟 漏网之鱼