# update: 2026-02-08 mihomo/v1.19.19 # 简介: https://github.com/echs-top/proxy providers: &providers { type: http, interval: 86400, proxy: DIRECT, header: { User-Agent: ["clash-verge/v2.4.4"] }, health-check: { enable: true, url: 'https://8.8.8.8/generate_204', expected-status: 204, interval: 600, timeout: 3000, max-failed-times: 2, lazy: false }, exclude-filter: '(?i)套餐|剩余|流量|到期|重置|频道|订阅|官网|禁止|客户端|有效|联系|测试|节点|日期|群组|加入|通知|维护|网址|地址|下载|更新|APP|登录|严禁|海外' } cn-lite: &cn-lite { url: 'https://static-file-global.353355.xyz/rules/cn-additional-list.mrs' } cn-all: &cn-all { url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/rules/mrs/cn_domain.mrs' } gfw: &gfw { url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/gfw.mrs' } all: &all { url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs' } direct-dns: &direct-dns ['https://dns.alidns.com/dns-query#DIRECT','https://doh.pub/dns-query#DIRECT&h3=false'] proxy-dns: &proxy-dns ['https://dns.google/dns-query#PROXYDNS','https://dns.quad9.net/dns-query#PROXYDNS'] dns-lite: &dns-lite nameserver: *direct-dns dns-all: &dns-all proxy-server-nameserver: *direct-dns nameserver: *proxy-dns direct-nameserver: *direct-dns direct-nameserver-follow-policy: true nameserver-policy: 'rule-set:AWAvenue-Ads': [rcode://name_error] 'rule-set:private': *direct-dns 'rule-set:direct_domain': *direct-dns 'rule-set:category-speedtest': *proxy-dns 'rule-set:googlefcm': *direct-dns 'rule-set:verification': *proxy-dns 'rule-set:telegram': *proxy-dns 'rule-set:meta': *proxy-dns 'rule-set:twitter': *proxy-dns 'rule-set:tiktok': *proxy-dns 'rule-set:netflix': *proxy-dns 'rule-set:spotify': *proxy-dns 'rule-set:bilibili': *direct-dns 'rule-set:youtube': *proxy-dns 'rule-set:ai': *proxy-dns 'rule-set:google': *proxy-dns 'rule-set:apple-cn': *direct-dns 'rule-set:microsoft-cn': *direct-dns 'rule-set:games-cn': *direct-dns 'rule-set:proxy': *proxy-dns 'rule-set:cn': *direct-dns # 设置区 proxy-providers: link1: { <<: *providers, url: '订阅链接1', path: ./providers/link1.yaml } link2: { <<: *providers, url: '订阅链接2', path: ./providers/link2.yaml } link3: { <<: *providers, url: '订阅链接3', path: ./providers/link3.yaml } # 策略分组 use: &use { use: [link1,link2] } # 手动选择 select: &select { use: [link3] } # 直连规则:cn-lite/cn-all 分应用代理选lite,全局tun选all cn: &cn { <<: *cn-lite } # 代理规则:gfw/all 推荐同上,轻量选gfw,全局tun选all proxy: &proxy { <<: *gfw } # dns方案: dns-lite/dns-all 不在乎DNS分流用dns-lite scheme: &scheme { <<: *dns-all } ipv6: true allow-lan: false bind-address: '*' mode: rule log-level: error unified-delay: true tcp-concurrent: true find-process-mode: off disable-keep-alive: false keep-alive-interval: 15 keep-alive-idle: 300 etag-support: true # global-ua: 'Mozilla/5.0 (Linux; Android 16; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.109 Mobile Safari/537.36' # external-controller: 127.0.0.1:9090 # secret: '密码' # external-ui: ./zashboard # external-ui-url: 'https://cdn.gh-proxy.org/https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip' geodata-loader: standard profile: { store-selected: true, store-fake-ip: true } # experimental: { quic-go-disable-gso: true, quic-go-disable-ecn: true, dialer-ip4p-convert: false } port: 0 socks-port: 0 mixed-port: 0 tproxy-port: 0 redir-port: 0 # authentication: ["用户:密码"] tun: enable: true # device: meta stack: mixed auto-route: true auto-redirect: true auto-detect-interface: true strict-route: true dns-hijack: [any:53,tcp://any:53] # mtu: 9000 # udp-timeout: 300 ip: &ip { type: http, interval: 86400, proxy: DIRECT, behavior: ipcidr, format: mrs } domain: &domain { type: http, interval: 86400, proxy: DIRECT, behavior: domain, format: mrs } rule-providers: private_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/privateip.mrs', path: ./rules/private_ip.mrs } AWAvenue-Ads: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/rules/mrs/AWAvenue-Ads_domain.mrs', path: ./rules/AWAvenue-Ads.mrs } private: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/private.mrs', path: ./rules/private.mrs } connectivity-check: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/connectivity-check.mrs', path: ./rules/connectivity-check.mrs } direct_domain: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/rules/mrs/direct_domain.mrs', path: ./rules/direct_domain.mrs } category-speedtest: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/category-speedtest.mrs', path: ./rules/category-speedtest.mrs } googlefcm: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/googlefcm.mrs', path: ./rules/googlefcm.mrs } verification: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/rules/mrs/verification_domain.mrs', path: ./rules/verification.mrs } telegram: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/telegram.mrs', path: ./rules/telegram.mrs } meta: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/meta.mrs', path: ./rules/meta.mrs } twitter: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/twitter.mrs', path: ./rules/twitter.mrs } tiktok: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/tiktok.mrs', path: ./rules/tiktok.mrs } netflix: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/netflix.mrs', path: ./rules/netflix.mrs } spotify: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/spotify.mrs', path: ./rules/spotify.mrs } bilibili: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/bilibili.mrs', path: ./rules/bilibili.mrs } youtube: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/youtube.mrs', path: ./rules/youtube.mrs } ai: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ai.mrs', path: ./rules/ai.mrs } google: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/google.mrs', path: ./rules/google.mrs } apple-cn: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/apple-cn.mrs', path: ./rules/apple-cn.mrs } microsoft-cn: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/microsoft-cn.mrs', path: ./rules/microsoft-cn.mrs } games-cn: { <<: *domain, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/games-cn.mrs', path: ./rules/games-cn.mrs } proxy: { <<: [*domain,*proxy], path: ./rules/proxy.mrs } cn: { <<: [*domain,*cn], path: ./rules/cn.mrs } direct_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/rules/mrs/direct_ip.mrs', path: ./rules/direct_ip.mrs } telegram_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/rules/mrs/telegram_ip.mrs', path: ./rules/telegram_ip.mrs } facebook_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/facebook.mrs', path: ./rules/facebook_ip.mrs } twitter_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/twitter.mrs', path: ./rules/twitter_ip.mrs } netflix_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/netflix.mrs', path: ./rules/netflix_ip.mrs } google_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/google.mrs', path: ./rules/google_ip.mrs } enhanced-FaaS-in-China_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/rules/mrs/enhanced-FaaS-in-China_ip.mrs', path: ./rules/enhanced-FaaS-in-China_ip.mrs } cn_ip: { <<: *ip, url: 'https://cdn.gh-proxy.org/https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cnip.mrs', path: ./rules/cn_ip.mrs } rules: - DST-PORT,53,dns-hijack - DST-PORT,5228-5230,FCM - RULE-SET,private_ip,DIRECT,no-resolve - RULE-SET,AWAvenue-Ads,AD - RULE-SET,private,DIRECT - RULE-SET,direct_domain,DIRECT - RULE-SET,category-speedtest,SPEEDTEST - RULE-SET,googlefcm,FCM - RULE-SET,verification,BOTTEST - RULE-SET,telegram,TELEGRAM - RULE-SET,meta,META - RULE-SET,twitter,TWITTER - RULE-SET,tiktok,TIKTOK - RULE-SET,netflix,NETFLIX - RULE-SET,spotify,SPOTIFY - RULE-SET,bilibili,BILIBILI - RULE-SET,youtube,YOUTUBE - RULE-SET,ai,AI - RULE-SET,google,GOOGLE - RULE-SET,apple-cn,DIRECT - RULE-SET,microsoft-cn,DIRECT - RULE-SET,games-cn,DIRECT - RULE-SET,proxy,PROXY - RULE-SET,cn,DIRECT - RULE-SET,direct_ip,DIRECT - RULE-SET,telegram_ip,TELEGRAM - RULE-SET,facebook_ip,META - RULE-SET,twitter_ip,TWITTER - RULE-SET,netflix_ip,NETFLIX - RULE-SET,google_ip,GOOGLE - RULE-SET,enhanced-FaaS-in-China_ip,DIRECT - RULE-SET,cn_ip,DIRECT - MATCH,PROXY hosts: dns.alidns.com: [223.5.5.5,223.6.6.6,'2400:3200::1','2400:3200:baba::1'] doh.pub: [120.53.53.53,1.12.12.21] dns.google: [8.8.8.8,8.8.4.4,'2001:4860:4860::8888','2001:4860:4860::8844'] dns.quad9.net: [9.9.9.9,149.112.112.112,'2620:fe::fe','2620:fe::9'] services.googleapis.cn: services.googleapis.com dns: enable: true cache-algorithm: arc ipv6: true prefer-h3: true use-hosts: true use-system-hosts: true respect-rules: false # listen: 0.0.0.0:1053 enhanced-mode: fake-ip fake-ip-range: 198.18.0.1/16 fake-ip-range6: fd00:bada:55ed::1/64 # fake-ip-ttl: 5 fake-ip-filter-mode: rule fake-ip-filter: - RULE-SET,AWAvenue-Ads,fake-ip - RULE-SET,private,real-ip - RULE-SET,connectivity-check,real-ip - RULE-SET,direct_domain,real-ip - RULE-SET,category-speedtest,fake-ip - RULE-SET,googlefcm,fake-ip - RULE-SET,verification,fake-ip - RULE-SET,telegram,fake-ip - RULE-SET,meta,fake-ip - RULE-SET,twitter,fake-ip - RULE-SET,tiktok,fake-ip - RULE-SET,netflix,fake-ip - RULE-SET,spotify,fake-ip - RULE-SET,bilibili,fake-ip - RULE-SET,youtube,fake-ip - RULE-SET,ai,fake-ip - RULE-SET,google,fake-ip - RULE-SET,apple-cn,real-ip - RULE-SET,microsoft-cn,real-ip - RULE-SET,games-cn,real-ip - RULE-SET,proxy,fake-ip - RULE-SET,cn,real-ip - MATCH,fake-ip default-nameserver: [223.5.5.5,119.29.29.29] <<: *scheme sniffer: enable: true force-dns-mapping: false parse-pure-ip: true override-destination: false sniff: HTTP: { ports: [80,8080-8880] } TLS: { ports: [443,8443] } QUIC: { ports: [443,8443] } skip-domain: ['rule-set:private'] skip-src-address: ['rule-set:private_ip'] skip-dst-address: ['rule-set:private_ip'] proxies: [{ name: dns-hijack, type: dns }] zl: &zl { type: select, proxies: [DIRECT,PROXY,URLTEST,港澳台|FALLBACK,香港|FALLBACK,台湾|FALLBACK,日本|FALLBACK,新加坡|FALLBACK,美国|FALLBACK,德国|FALLBACK,英国|FALLBACK,荷兰|FALLBACK], <<: *select } dl: &dl { type: select, proxies: [PROXY,DIRECT,URLTEST,港澳台|FALLBACK,香港|FALLBACK,台湾|FALLBACK,日本|FALLBACK,新加坡|FALLBACK,美国|FALLBACK,德国|FALLBACK,英国|FALLBACK,荷兰|FALLBACK], <<: *select } auto: &auto { type: url-test, tolerance: 20, <<: *use, hidden: true } fall: &fall { type: fallback, <<: *use, hidden: true } proxy-groups: - { name: PROXY, type: select, proxies: [URLTEST,港澳台|FALLBACK,香港|FALLBACK,台湾|FALLBACK,日本|FALLBACK,新加坡|FALLBACK,美国|FALLBACK,德国|FALLBACK,英国|FALLBACK,荷兰|FALLBACK], <<: *select, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Global.webp' } - { name: PROXYDNS, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Server.webp' } - { name: AD, type: select, proxies: [REJECT,REJECT-DROP], icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Forbidden.webp' } - { name: SPEEDTEST, type: select, include-all-providers: true, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/SpeedTest.webp' } - { name: FCM, <<: *zl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/FCM_Firebase_Cloud_Messaging.webp' } - { name: BOTTEST, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/CloudFlare.webp' } - { name: TELEGRAM, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Telegram.webp' } - { name: META, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Meta_1.webp' } - { name: TWITTER, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/X.webp' } - { name: TIKTOK, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/TikTok.webp' } - { name: NETFLIX, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Netflix.webp' } - { name: SPOTIFY, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Spotify.webp' } - { name: BILIBILI, <<: *zl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Bilibili.webp' } - { name: YOUTUBE, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/YouTube.webp' } - { name: AI, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/AI.webp' } - { name: GOOGLE, <<: *dl, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Google.webp' } - { name: URLTEST, <<: *auto, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Fast.webp' } - { name: 港澳台|FALLBACK, <<: *fall, filter: '(?i)🇭🇰|香港|\bHK\b|\bhongkong\b|\bhong\s?kong\b|🇲🇴|澳门|\bMO\b|\bmacau\b|\bmacao\b|🇹🇼|台湾|\bTW\b|\btaiwan\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/cn.svg' } - { name: 香港|FALLBACK, <<: *fall, filter: '(?i)🇭🇰|香港|\bHK\b|\bhongkong\b|\bhong\s?kong\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/hk.svg' } - { name: 台湾|FALLBACK, <<: *fall, filter: '(?i)🇹🇼|台湾|\bTW\b|\btaiwan\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/tw.svg' } - { name: 日本|FALLBACK, <<: *fall, filter: '(?i)🇯🇵|日本|\bJP\b|\bjapan\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/jp.svg' } - { name: 新加坡|FALLBACK, <<: *fall, filter: '(?i)🇸🇬|新加坡|狮城|\bSG\b|\bsingapore\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/sg.svg' } - { name: 美国|FALLBACK, <<: *fall, filter: '(?i)🇺🇸|美国|\bUS\b|\bunitedstates\b|\bunited\s?states\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/us.svg' } - { name: 德国|FALLBACK, <<: *fall, filter: '(?i)🇩🇪|德国|\bDE\b|\bgermany\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/de.svg' } - { name: 英国|FALLBACK, <<: *fall, filter: '(?i)🇬🇧|英国|\bUK\b|\bGB\b|\bunitedkingdom\b|\bunited\s?kingdom\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/gb.svg' } - { name: 荷兰|FALLBACK, <<: *fall, filter: '(?i)🇳🇱|荷兰|\bNL\b|\bnetherlands?\b', icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/lipis/flag-icons/main/flags/4x3/nl.svg' } - { name: GLOBAL, type: select, proxies: [PROXY,PROXYDNS,AD,SPEEDTEST,FCM,BOTTEST,TELEGRAM,META,TWITTER,TIKTOK,NETFLIX,SPOTIFY,BILIBILI,YOUTUBE,AI,GOOGLE,URLTEST,港澳台|FALLBACK,香港|FALLBACK,台湾|FALLBACK,日本|FALLBACK,新加坡|FALLBACK,美国|FALLBACK,德国|FALLBACK,英国|FALLBACK,荷兰|FALLBACK], include-all-providers: true, hidden: true, icon: 'https://cdn.gh-proxy.org/https://raw.githubusercontent.com/echs-top/proxy/main/icon/Globefish.webp' }