# Author:https://github.com/Repcz # TG:https://t.me/@LUCYChannel_1024 # 最后更新时间: 2026-9-17 11:30 # # mihomo ≥ v1.19.31 # 官方文档: https://github.com/MetaCubeX/mihomo/blob/Meta/docs/config.yaml # # 以 ';' 或 '#' 或 '//' 开头的配置文件行为注释行 # # ================ p: &p {type: http, interval: 86400, health-check: {enable: true, url: http://1.1.1.1/generate_204, interval: 1800, timeout: 5000}} proxy-providers: Subscribe: # 在此将 "http://your-service-provider" 替换为你的机场订阅,推荐使用 base64 或者 node list url: http://your-service-provider <<: *p #override: # 修改节点前后缀时,需移除前方的 "#" 符号 #additional-prefix: "节点前缀" #additional-suffix: "节点后缀" #Subscribe2: {url: http://your-service-provider, <<: *p} #Subscribe3: {url: http://your-service-provider, <<: *p} #Subscribe4: {url: http://your-service-provider, <<: *p} mixed-port: 7893 tcp-concurrent: true allow-lan: true ipv6: false log-level: info unified-delay: true geodata-mode: false geo-auto-update: true geo-update-interval: 24 geox-url: mmdb: "https://fastly.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country-without-asn.mmdb" profile: { store-selected: true, store-fake-ip: false } sniffer: enable: true force-dns-mapping: true # 对 redir-host/TUN 流量强制嗅探 parse-pure-ip: true # 对无域名流量的纯 IP 连接强制嗅探 sniff: { HTTP: { ports: [80], override-destination: true }, TLS: { ports: [443, 8443] }, QUIC: { ports: [443, 8443] } } tun: enable: true stack: mips dns-hijack: [any:53] auto-route: true # 配置路由表 auto-detect-interface: true # 自动识别出口网卡 strict-route: false dns: enable: true ipv6: false enhanced-mode: fake-ip listen: :1053 fake-ip-range: 198.18.0.1/16 fake-ip-filter: ['+.lan', '*', '+.local', '+.cmpassport.com', 'id6.me', 'open.e.189.cn', 'mdn.open.wo.cn', 'opencloud.wostore.cn', 'auth.wosms.cn', '+.10099.com.cn', '+.msftconnecttest.com', '+.msftncsi.com', 'lancache.steamcontent.com'] cache-algorithm: arc default-nameserver: # 默认 DNS, 用于解析 DNS 服务器 的域名 - 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 - https://doh.pub/dns-query hosts: dns.alidns.com: [223.5.5.5,223.6.6.6] doh.pub: [1.12.12.21,120.53.53.53] # 锚点参数 pg: &pg {type: select, proxies: [Manual, HongKong, United States, Singapore, Japan, Taiwan, DIRECT]} url-test: &url-test {type: url-test, url: http://1.1.1.1/generate_204, interval: 300, tolerance: 0, include-all: true} select: &select {type: select, include-all: true} fallback: &fallback {type: fallback, url: http://1.1.1.1/generate_204, interval: 300, include-all: true} load-balance: &load-balance {type: load-balance, strategy: consistent-hashing, url: http://1.1.1.1/generate_204, interval: 300, include-all: true} c: &c {type: http, behavior: classical, format: text, interval: 86400} proxy-groups: - {name: Manual, type: select, include-all: true, proxies: [HongKong, United States, Singapore, Japan, Taiwan, DIRECT], icon: https://github.com/shindgewongxj/WHATSINStash/raw/main/icon/applesafari.png} - {name: Global, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png} - {name: Streaming, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/YouTube.png} - {name: Microsoft, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Microsoft.png} - {name: Google, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Google_Search.png} - {name: AI, <<: *pg, icon: https://raw.githubusercontent.com/Orz-3/mini/master/Color/OpenAI.png} - {name: Social, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Twitter.png} - {name: Telegram, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Telegram.png} - {name: Game, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Game.png} - {name: Emby, <<: *pg, include-all: true, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Emby.png} - {name: Spotify, <<: *pg, include-all: true, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Spotify.png} - {name: Final, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Final.png} - {name: HongKong, <<: *url-test, filter: '(?i)🇭🇰|香港|(\b(HK|Hong)\b)', icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png} - {name: United States, <<: *url-test, filter: '(?i)🇺🇸|美国|洛杉矶|圣何塞|(\b(US|United States)\b)', icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png} - {name: Singapore, <<: *url-test, filter: '(?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b)', icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Singapore.png} - {name: Japan, <<: *url-test, filter: '(?i)🇯🇵|日本|东京|(\b(JP|Japan)\b)', icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png} - {name: Taiwan, <<: *url-test, filter: '(?i)🇨🇳|🇹🇼|台湾|(\b(TW|Tai|Taiwan)\b)', icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China.png} rule-providers: Direct: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Direct.list} Lan: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Lan.list} Reject: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Reject.list} AppleProxy: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/AppleServers.list} Microsoft: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Microsoft.list} Github: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Github.list} Google: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Google.list} Telegram: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Telegram.list} Twitter: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Twitter.list} Facebook: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Facebook.list} Steam: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Steam.list} Epic: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Epic.list} AI: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/AI.list} Emby: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Emby.list} Spotify: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Spotify.list} Bahamut: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Bahamut.list} Netflix: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Netflix.list} Disney: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Disney.list} PrimeVideo: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/PrimeVideo.list} HBO: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/HBO.list} TikTok: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/TikTok.list} Proxy: {<<: *c, url: https://github.com/Repcz/Tool/raw/X/mihomo/Rules/Proxy.list} rules: - RULE-SET,Lan,DIRECT - RULE-SET,Direct,DIRECT - RULE-SET,Reject,REJECT - RULE-SET,AI,AI - RULE-SET,Telegram,Telegram - RULE-SET,Twitter,Social - RULE-SET,Facebook,Social - RULE-SET,TikTok,Social - RULE-SET,Steam,Game - RULE-SET,Epic,Game - RULE-SET,Google,Google - RULE-SET,Github,Microsoft - RULE-SET,Microsoft,Microsoft - RULE-SET,Emby,Emby - RULE-SET,Spotify,Spotify - RULE-SET,Bahamut,Streaming - RULE-SET,Netflix,Streaming - RULE-SET,Disney,Streaming - RULE-SET,PrimeVideo,Streaming - RULE-SET,HBO,Streaming - RULE-SET,Proxy,Global - RULE-SET,AppleProxy,HongKong - GEOIP,CN,DIRECT - MATCH,Final