# ===================================================================== # mihomo / Clash.Meta 配置 — 4 台 NAT 小鸡 Argo 隧道版 (2026-11-08 重建) # ===================================================================== mixed-port: 7890 allow-lan: true bind-address: '*' mode: rule log-level: warning # ---------- 性能调优 ---------- ipv6: false unified-delay: true tcp-concurrent: true keep-alive-interval: 30 keep-alive-idle: 600 find-process-mode: off geodata-mode: false external-controller: 127.0.0.1:9090 secret: 'change-me' external-controller-cors: allow-private-network: true allow-origins: - tauri://localhost - http://tauri.localhost profile: store-selected: true store-fake-ip: true # ---------- GeoX 数据源 ---------- geox-url: geoip: "https://ghproxy.net/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat" geosite: "https://ghproxy.net/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat" mmdb: "https://ghproxy.net/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb" asn: "https://ghproxy.net/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb" geo-auto-update: true geo-update-interval: 24 # ---------- TUN 模式 ---------- tun: enable: false stack: mixed device: Mihomo auto-route: true auto-detect-interface: true dns-hijack: - any:53 - tcp://any:53 mtu: 1500 strict-route: false # ---------- DNS 模块(已修复死锁) ---------- dns: enable: true listen: 0.0.0.0:1053 ipv6: false prefer-h3: false use-hosts: true use-system-hosts: false respect-rules: false # 避免规则递归查询导致超时 enhanced-mode: fake-ip fake-ip-range: 198.18.0.1/16 fake-ip-filter-mode: blacklist fake-ip-filter: - '*.lan' - '*.local' - '*.localdomain' - '+.msftconnecttest.com' - '+.msftncsi.com' - 'time.*.com' - 'ntp.*.com' - '+.pool.ntp.org' - '+.stun.*.*' - '+.stun.*.*.*' - 'localhost.ptlogin2.qq.com' - '+.market.xiaomi.com' - 'lens.l.google.com' # 彻底删除 trycloudflare 和 doon.eu.org,避免强制本地真解析导致卡死 default-nameserver: - 223.5.5.5 - 119.29.29.29 proxy-server-nameserver: - 223.5.5.5 - 119.29.29.29 nameserver: - 223.5.5.5 - 119.29.29.29 - https://223.5.5.5/dns-query fallback: - https://1.1.1.1/dns-query - https://8.8.8.8/dns-query fallback-filter: geoip: true geoip-code: CN geosite: - gfw # ---------- 嗅探 ---------- sniffer: enable: true force-dns-mapping: true parse-pure-ip: true override-destination: false sniff: TLS: ports: [443, 8443] HTTP: ports: [80, 8080-8880] override-destination: false # ===================================================================== # 节点列表(已修正 ALPN 字符串格式) # ===================================================================== proxies: - name: "🇯🇵 JP-ByteVirt" type: vmess server: 104.21.84.249 port: 443 uuid: d7648ce4-89a2-4145-8c89-98566b997a90 alterId: 0 cipher: auto udp: true tls: true alpn: - "http/1.1" servername: princess-faced-thousand-greetings.trycloudflare.com network: ws client-fingerprint: chrome ip-version: ipv4-prefer ws-opts: path: "/vmess-argo?ed=2560" headers: Host: princess-faced-thousand-greetings.trycloudflare.com max-early-data: 2048 early-data-header-name: Sec-WebSocket-Protocol - name: "🇸🇬 SG-Lighthouse" type: vmess server: 104.21.86.13 port: 443 uuid: a5abf247-0126-4ae8-acf5-4597a482435a alterId: 0 cipher: auto udp: true tls: true alpn: - "http/1.1" servername: somehow-modern-flight-suite.trycloudflare.com network: ws client-fingerprint: chrome ip-version: ipv4-prefer ws-opts: path: "/vmess-argo?ed=2560" headers: Host: somehow-modern-flight-suite.trycloudflare.com max-early-data: 2048 early-data-header-name: Sec-WebSocket-Protocol - name: "🇺🇸 US-IT7" type: vmess server: 172.66.0.71 port: 443 uuid: d864fc79-5bcb-4a56-9d07-c145a32ba06c alterId: 0 cipher: auto udp: true tls: true alpn: - "http/1.1" servername: continuity-conversation-chosen-competitors.trycloudflare.com network: ws client-fingerprint: chrome ip-version: ipv4-prefer ws-opts: path: "/vmess-argo?ed=2560" headers: Host: continuity-conversation-chosen-competitors.trycloudflare.com max-early-data: 2048 early-data-header-name: Sec-WebSocket-Protocol - name: "🇹🇷 TR-VPS" type: vmess server: 104.21.84.249 port: 443 uuid: da0dedaa-c86a-4ac8-83b6-9005ea19b664 alterId: 0 cipher: auto udp: true tls: true alpn: - "http/1.1" servername: flights-controversial-affecting-mailed.trycloudflare.com network: ws client-fingerprint: chrome ip-version: ipv4-prefer ws-opts: path: "/vmess-argo?ed=2560" headers: Host: flights-controversial-affecting-mailed.trycloudflare.com max-early-data: 2048 early-data-header-name: Sec-WebSocket-Protocol - name: "🇺🇸 US-IT7 直连" type: vless server: 45.78.7.33 port: 13426 uuid: d864fc79-5bcb-4a56-9d07-c145a32ba06c network: tcp udp: true tls: true flow: xtls-rprx-vision servername: www.iij.ad.jp client-fingerprint: firefox reality-opts: public-key: t4FwoiCKRMQnRZuvJQEJ7Vw_pMp1i93Gv6oE0K0C6lg short-id: 76863bd9def16492 proxy-groups: - name: "🚀 节点选择" type: select proxies: ["♻️ 自动选择", "🇸🇬 SG-Lighthouse", "🇯🇵 JP-ByteVirt", "🇺🇸 US-IT7 直连", "🇺🇸 US-IT7", "🇹🇷 TR-VPS", DIRECT] - name: "♻️ 自动选择" type: url-test url: "http://cp.cloudflare.com/generate_204" interval: 300 tolerance: 50 proxies: ["🇸🇬 SG-Lighthouse", "🇯🇵 JP-ByteVirt", "🇺🇸 US-IT7 直连", "🇺🇸 US-IT7", "🇹🇷 TR-VPS"] - name: "🔯 故障转移" type: fallback url: "http://cp.cloudflare.com/generate_204" interval: 180 proxies: ["🇸🇬 SG-Lighthouse", "🇯🇵 JP-ByteVirt", "🇺🇸 US-IT7 直连", "🇺🇸 US-IT7", "🇹🇷 TR-VPS"] - name: "🤖 AI 服务" type: select proxies: ["🇺🇸 US-IT7 直连", "🇺🇸 US-IT7", "🇯🇵 JP-ByteVirt", "🚀 节点选择"] - name: "📲 电报消息" type: select proxies: ["🇸🇬 SG-Lighthouse", "🇯🇵 JP-ByteVirt", "🚀 节点选择"] - name: "🎬 国际媒体" type: select proxies: ["🇸🇬 SG-Lighthouse", "🇯🇵 JP-ByteVirt", "🇺🇸 US-IT7 直连", "🚀 节点选择"] - name: "🎮 游戏平台" type: select proxies: ["DIRECT", "🇯🇵 JP-ByteVirt", "🚀 节点选择"] - name: "Ⓜ️ 微软服务" type: select proxies: ["DIRECT", "🚀 节点选择"] - name: "🍎 苹果服务" type: select proxies: ["DIRECT", "🚀 节点选择"] - name: "🐟 漏网之鱼" type: select proxies: ["🚀 节点选择", "DIRECT"] - name: "🛑 广告拦截" type: select proxies: [REJECT, DIRECT] # ===================================================================== # 规则集 # ===================================================================== rule-providers: ads: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/category-ads-all.mrs" path: ./ruleset/ads.mrs interval: 86400 cn-domain: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/geolocation-cn.mrs" path: ./ruleset/cn-domain.mrs interval: 86400 cn-ip: type: http behavior: ipcidr format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/cn.mrs" path: ./ruleset/cn-ip.mrs interval: 86400 private: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs" path: ./ruleset/private.mrs interval: 86400 ai: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/category-ai-!cn.mrs" path: ./ruleset/ai.mrs interval: 86400 telegram: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/telegram.mrs" path: ./ruleset/telegram.mrs interval: 86400 telegram-ip: type: http behavior: ipcidr format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/telegram.mrs" path: ./ruleset/telegram-ip.mrs interval: 86400 google: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/google.mrs" path: ./ruleset/google.mrs interval: 86400 youtube: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/youtube.mrs" path: ./ruleset/youtube.mrs interval: 86400 netflix: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/netflix.mrs" path: ./ruleset/netflix.mrs interval: 86400 spotify: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/spotify.mrs" path: ./ruleset/spotify.mrs interval: 86400 microsoft: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/microsoft.mrs" path: ./ruleset/microsoft.mrs interval: 86400 apple-cn: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/apple-cn.mrs" path: ./ruleset/apple-cn.mrs interval: 86400 github: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/github.mrs" path: ./ruleset/github.mrs interval: 86400 tld-not-cn: type: http behavior: domain format: mrs url: "https://ghproxy.net/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/tld-!cn.mrs" path: ./ruleset/tld-not-cn.mrs interval: 86400 # ===================================================================== # 分流规则 # ===================================================================== rules: # 0. 内网与本地网段 - RULE-SET,private,DIRECT - IP-CIDR,127.0.0.0/8,DIRECT,no-resolve - IP-CIDR,10.0.0.0/8,DIRECT,no-resolve - IP-CIDR,172.16.0.0/12,DIRECT,no-resolve - IP-CIDR,192.168.0.0/16,DIRECT,no-resolve - IP-CIDR,100.64.0.0/10,DIRECT,no-resolve - IP-CIDR,198.18.0.0/16,DIRECT,no-resolve - IP-CIDR,224.0.0.0/4,DIRECT,no-resolve - GEOIP,lan,DIRECT,no-resolve # 1. 广告 - RULE-SET,ads,🛑 广告拦截 # 2. 镜像加速直连放行 - DOMAIN-SUFFIX,ghproxy.net,DIRECT - DOMAIN-SUFFIX,gh-proxy.com,DIRECT - DOMAIN-SUFFIX,ghfast.top,DIRECT # 3. AI 服务 - RULE-SET,ai,🤖 AI 服务 # 4. 电报消息 - RULE-SET,telegram,📲 电报消息 - RULE-SET,telegram-ip,📲 电报消息,no-resolve # 5. 国际媒体 - RULE-SET,youtube,🎬 国际媒体 - RULE-SET,netflix,🎬 国际媒体 - RULE-SET,spotify,🎬 国际媒体 # 6. 常用海外服务 - RULE-SET,github,🚀 节点选择 - RULE-SET,microsoft,Ⓜ️ 微软服务 - RULE-SET,apple-cn,🍎 苹果服务 - RULE-SET,google,🚀 节点选择 # 7. 国内直连 - RULE-SET,cn-domain,DIRECT - RULE-SET,cn-ip,DIRECT,no-resolve # 8. 非 CN 后缀走代理 - RULE-SET,tld-not-cn,🚀 节点选择 # 9. 最终兜底 - GEOIP,CN,DIRECT - MATCH,🐟 漏网之鱼