mixed-port: 10020 allow-lan: true bind-address: '*' mode: rule log-level: info ipv6: true external-controller: 127.0.0.1:10000 #global-ua: clash.meta experimental: ignore-resolve-fail: true sniffer: enable: true override-destination: true force-dns-mapping: true parse-pure-ip: true dns: enable: true ipv6: true # false enhanced-mode: fake-ip # redir-host / fake-ip fake-ip-range: 198.18.0.1/16 fake-ip-filter: - "*" - "+.lan" - "+.local" use-hosts: true default-nameserver: ['223.5.5.5', '1.12.12.12'] nameserver: ['tls://223.5.5.5:853', 'tls://1.12.12.12:853'] ######### 锚点 start ####### # 策略组相关 p: &p {interval: 3600, health-check: {enable: true, url: https://www.gstatic.com/generate_204, interval: 300}} # 引入proxy-provider 使用 use 关键字 u: &u {use: ['lj']} ######### 锚点 end ####### proxy-providers: lj: <<: *p type: http url: https://ml.upupoo.top/lj.html proxies: #http://www.gstatic.com/generate_204 #Google http://www.gstatic.com/generate_204 ##Google http://www.google-analytics.com/generate_204 #Google http://www.google.com/generate_204 #Google http://connectivitycheck.gstatic.com/generate_204 #Apple http://captive.apple.com #Apple http://www.apple.com/library/test/success.html #MicroSoft http://www.msftconnecttest.com/connecttest.txt #Cloudflare http://cp.cloudflare.com/ #Firefox http://detectportal.firefox.com/success.txt #V2ex http://www.v2ex.com/generate_204 #小米 http://connect.rom.miui.com/generate_204 #华为 http://connectivitycheck.platform.hicloud.com/generate_204 #Vivo http://wifi.vivo.com.cn/generate_204 proxy-groups: - { name: 🚀 节点选择, type: select, proxies: ['♻️ 自动选择',DIRECT], <<: *u , exclude-filter: "局域网" } - { name: ♻️ 自动选择, type: url-test, url: http://cp.cloudflare.com/, interval: 300, tolerance: 50, proxies: [], <<: *u , exclude-filter: "局域网" } - { name: 🌐 自动选择, type: url-test, url: http://connectivitycheck.platform.hicloud.com/generate_204, interval: 300, tolerance: 50, proxies: [], <<: *u , filter: "局域网" } - { name: 🌐 局域网, type: select, proxies: ['DIRECT','🌐 自动选择'], <<: *u , filter: "局域网" } - { name: 🛠️ 自定义, type: select, proxies: ['🚀 节点选择','♻️ 自动选择',DIRECT], <<: *u , exclude-filter: "局域网"} - { name: 📺 哔哩哔哩HK, type: select, proxies: [DIRECT,'🚀 节点选择','♻️ 自动选择','🌐 自动选择'], <<: *u , filter: '🇭🇰|局域网' } - { name: 📺 哔哩哔哩, type: select, proxies: [DIRECT,'🚀 节点选择','♻️ 自动选择','🌐 自动选择'], <<: *u , filter: '🇭🇰|局域网' } - { name: ▶️ YouTube, type: select, proxies: ['🚀 节点选择','♻️ 自动选择'], <<: *u , exclude-filter: "局域网"} - { name: 📲 电报信息, type: select, proxies: ['🚀 节点选择'], <<: *u , exclude-filter: "局域网"} - { name: 🛑 全球拦截, type: select, proxies: [REJECT,DIRECT] } - { name: 🏹 国内网站, type: select, proxies: [DIRECT,'🚀 节点选择','♻️ 自动选择','🌐 自动选择','🌐 局域网']} - { name: 🐟 漏网之鱼, type: select, proxies: [DIRECT,'🚀 节点选择','♻️ 自动选择','🌐 自动选择','🌐 局域网']} rules: # - AND,(AND,(DST-PORT,443),(NETWORK,UDP)),(GEOSITE,geolocation-!cn),REJECT # quic - GEOSITE,youtube,▶️ YouTube - RULE-SET,bilibilihk,📺 哔哩哔哩HK - RULE-SET,bilibili,📺 哔哩哔哩 - RULE-SET,zdy,🛠️ 自定义 - RULE-SET,jyw,🌐 局域网 - RULE-SET,applications,🏹 国内网站 - DOMAIN,clash.razord.top,DIRECT - DOMAIN,yacd.haishan.me,DIRECT - RULE-SET,private,🏹 国内网站 - RULE-SET,reject,🛑 全球拦截 - RULE-SET,icloud,🚀 节点选择 - RULE-SET,apple,🚀 节点选择 - RULE-SET,google,🚀 节点选择 - RULE-SET,proxy,🚀 节点选择 - RULE-SET,direct,🏹 国内网站 - RULE-SET,lancidr,🌐 局域网 - RULE-SET,cncidr,🏹 国内网站 - RULE-SET,telegramcidr,📲 电报信息 - GEOIP,LAN,🌐 局域网 - GEOIP,CN,🏹 国内网站 - MATCH,🐟 漏网之鱼 rule-providers: zdy: type: http behavior: classical url: "https://cl.upupoo.top/zdy.yaml" path: ./ruleset/zdy.yaml interval: 1800 jyw: type: http behavior: classical url: "https://cl.upupoo.top/jyw.yaml" path: ./ruleset/jyw.yaml interval: 1800 bilibilihk: type: http behavior: classical url: "https://raw.kkgithub.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/Providers/Ruleset/BilibiliHMT.yaml" path: ./ruleset/bilibilihk.yaml interval: 1800 bilibili: type: http behavior: classical url: "https://raw.kkgithub.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/Providers/Ruleset/Bilibili.yaml" path: ./ruleset/bilibili.yaml interval: 1800 reject: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt" path: ./ruleset/reject.yaml interval: 86400 icloud: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt" path: ./ruleset/icloud.yaml interval: 86400 apple: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt" path: ./ruleset/apple.yaml interval: 86400 google: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt" path: ./ruleset/google.yaml interval: 86400 proxy: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt" path: ./ruleset/proxy.yaml interval: 86400 direct: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt" path: ./ruleset/direct.yaml interval: 86400 private: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt" path: ./ruleset/private.yaml interval: 86400 gfw: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt" path: ./ruleset/gfw.yaml interval: 86400 greatfire: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/greatfire.txt" path: ./ruleset/greatfire.yaml interval: 86400 tld-not-cn: type: http behavior: domain url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt" path: ./ruleset/tld-not-cn.yaml interval: 86400 telegramcidr: type: http behavior: ipcidr url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt" path: ./ruleset/telegramcidr.yaml interval: 86400 cncidr: type: http behavior: ipcidr url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt" path: ./ruleset/cncidr.yaml interval: 86400 lancidr: type: http behavior: ipcidr url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt" path: ./ruleset/lancidr.yaml interval: 86400 applications: type: http behavior: classical url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt" path: ./ruleset/applications.yaml interval: 86400