port: 7890
socks-port: 7891
allow-lan: true
mode: rule
log-level: info
ipv6: true
# Meta 内核特性 https://wiki.metacubex.one/config/general
# 统一延迟
# 更换延迟计算方式,去除握手等额外延迟
unified-delay: true
# TCP 并发
# 同时对所有ip进行连接，返回延迟最低的地址
tcp-concurrent: true

external-controller: :9999
external-ui: ./ui
external-ui-url: "https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip"
secret:

tun:
  enable: true
  stack: mixed
  auto-route: true
  auto-redirect: true
  auto-detect-interface: true
  dns-hijack:
    - any:53
    - tcp://any:53
  mtu: 9000

sniffer:
  enable: true
  sniff:
    HTTP:
      ports: [80, 8080-8880]
      override-destination: true
    TLS:
      ports: [443, 8443]
      override-destination: true
    QUIC:
      ports: [443, 8443]
      override-destination: true
  force-dns-mapping: true
  parse-pure-ip: true
  override-destination: true
  skip-domain:
    - dlg.io.mi.com

find-process-mode: strict

routing-mark: 7894

# 使用 Country.mmdb 执行 GEOIP,CN
geodata-mode: false
geox-url:
  geoip: "https://github.com/MetaCubeX/meta-rules-dat/blob/release/geoip.dat"
  geosite: "https://github.com/MetaCubeX/meta-rules-dat/blob/release/geosite.dat"
  mmdb: "https://raw.githubusercontent.com/Hackl0us/GeoIP2-CN/release/Country.mmdb"
  asn: "https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb"

profile:
  store-selected: true
  store-fake-ip: true

geo-auto-update: true # 是否自动更新 geodata
geo-update-interval: 24 # 更新间隔，单位：小时
dns:
  enable: true
  listen: 0.0.0.0:1053
  ipv6: true

  cache-algorithm: arc
  prefer-h3: false

  use-hosts: true
  use-system-hosts: true

  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  fake-ip-range6: fdfe:dcba:9876::1/64
  fake-ip-filter-mode: rule

  # 用于解析 DoH 服务器本身的域名，必须使用纯 IP DNS
  default-nameserver:
    - 223.5.5.5
    - 119.29.29.29
    - "2400:3200::1"
    - "2402:4e00::"

  # DNS 请求遵循 mihomo 路由规则。
  # 这样 Cloudflare/Google DoH 可以按规则经代理访问。
  respect-rules: true

  # CN 域名固定交给阿里和腾讯
  nameserver-policy:
    "rule-set:cn":
      - https://dns.alidns.com/dns-query
      - https://doh.pub/dns-query

  # 未命中 CN 规则，即 CN 之外的域名
  nameserver:
    - https://cloudflare-dns.com/dns-query
    - https://dns.google/dns-query

  # 代理节点服务器域名仅使用阿里 DoH 解析，
  # 避免解析节点域名时产生 DNS/代理循环
  proxy-server-nameserver:
    - https://dns.alidns.com/dns-query

  # 最终走 DIRECT 的域名使用境内 DoH
  direct-nameserver:
    - https://dns.alidns.com/dns-query
    - https://doh.pub/dns-query

  # 让直连域名仍然优先遵守 nameserver-policy
  direct-nameserver-follow-policy: true
  fake-ip-filter:
    # Fakeip
    - RULE-SET,fakeip,fake-ip

    # Realip
    - RULE-SET,realip,real-ip
    - RULE-SET,cn,real-ip

    # 没有命中的域名默认使用 Fake-IP
    - MATCH,fake-ip
hosts:
  "time.android.com": 203.107.6.88
  "time.facebook.com": 203.107.6.88
  "services.googleapis.cn": services.googleapis.com
  "localhost": 127.0.0.1
  
proxies: []

proxy-groups:
  - name: "🐟 漏网之鱼"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "☁️ Cloudflare"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎯 国内流量"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
        "VPNGATE",
        "CF-Nodes",
      ]

  - name: "⏱️Speedtest测速"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
        "VPNGATE",
        "CF-Nodes",
        "🎯 本机直连",
      ]

  - name: "🤖 人工智障"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
        "VPNGATE",
        "CF-Nodes",
      ]

  - name: "🤖API"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
        "VPNGATE",
        "CF-Nodes",
      ]

  - name: "📲 电报消息"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "📲 电报选择",
        "🚀 手动切换",
        "🚀 手动切换2",
        "VPNGATE",
        "CF-Nodes",
        "🎯 本机直连",
      ]

  - name: "SSH"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "非标端口"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "Webrtc"
    type: select
    proxies:
      [
        "REJECT",
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥国外媒体（未细分）"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥Youtube"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥Bilibili"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
      ]

  - name: "🎥Netflix"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥Disney"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥Bytedance"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥Twitch"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥Niconico"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥HBOHK"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥HBOUSA"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥 EMBY"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
        "🎥 EMBY选择",
      ]

  - name: "🎥TVB"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥BBC"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎥18+"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "📲Meta"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "📲Discord"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "📲X/Twitter"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "📲 WifiCallingUK"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "📲 WifiCallingHK"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎮 国内游戏"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎮 Steam"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🚀 游戏选择",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎮 Epic"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🚀 游戏选择",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎮 EA"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🚀 游戏选择",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎮 Ubisoft"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🚀 游戏选择",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎮 DMM"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🚀 游戏选择",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "📲Zoom"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "Ⓜ️ 微软服务(国区)"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "Ⓜ️ 微软服务(国际)"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🎯 订阅转换"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "📢 谷歌服务"
    type: select
    proxies:
      [
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🍎 苹果服务(国区)"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🍎 苹果服务(国际)"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "🍎 Apple Intelligence"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "Docker"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  - name: "Github"
    type: select
    proxies:
      [
        "🎯 本机直连",
        "🇭🇰 香港",
        "🇲🇴 澳门",
        "🇹🇼 台湾",
        "🇯🇵 日本",
        "🇸🇬 新加坡",
        "🇺🇸 美国",
        "🇬🇧 英国",
        "冷门",
        "VPNGATE",
        "CF-Nodes",
        "🚀 手动切换",
        "🚀 手动切换2",
      ]

  # 通用节点选择
  - name: "🎥 EMBY选择"
    type: select
    proxies: ["🎯 本机直连"]
    use: [Allinone, DirectNodes, CFNodesProvider]

  - name: "🎯 本机直连"
    type: select
    proxies: [DIRECT]

  - name: "🚀 手动切换"
    type: select
    proxies: ["🎯 本机直连"]
    use: [Allinone, DirectNodes, CFNodesProvider]

  - name: "🚀 游戏选择"
    type: select
    proxies: ["🎯 本机直连"]
    use: [Allinone, DirectNodes, CFNodesProvider]

  - name: "🚀 手动切换2"
    type: select
    proxies: ["🎯 本机直连"]
    use: [Allinone, DirectNodes, CFNodesProvider]

  - name: "📲 电报选择"
    type: select
    use: [Allinone, DirectNodes, CFNodesProvider]

  # 香港
  - name: "🇭🇰 HK Select"
    type: select
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇭🇰|香港|Hong[ _-]?Kong|(^|[ _-])HK([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"

  - name: "🇭🇰 HK FB"
    type: fallback
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇭🇰|香港|Hong[ _-]?Kong|(^|[ _-])HK([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇭🇰 HK 测速"
    type: url-test
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇭🇰|香港|Hong[ _-]?Kong|(^|[ _-])HK([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 50
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇭🇰 香港"
    type: select
    proxies: ["🇭🇰 HK Select", "🇭🇰 HK FB", "🇭🇰 HK 测速"]

  # 澳门
  - name: "🇲🇴 MO Select"
    type: select
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇲🇴|澳门|澳門|Macau|Macao|(^|[ _-])MO([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"

  - name: "🇲🇴 MO FB"
    type: fallback
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇲🇴|澳门|澳門|Macau|Macao|(^|[ _-])MO([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇲🇴 MO 测速"
    type: url-test
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇲🇴|澳门|澳門|Macau|Macao|(^|[ _-])MO([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 50
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇲🇴 澳门"
    type: select
    proxies: ["🇲🇴 MO Select", "🇲🇴 MO FB", "🇲🇴 MO 测速"]

  # 台湾
  - name: "🇹🇼 TW Select"
    type: select
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇹🇼|台湾|台灣|Taiwan|(^|[ _-])TW([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"

  - name: "🇹🇼 TW FB"
    type: fallback
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇹🇼|台湾|台灣|Taiwan|(^|[ _-])TW([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇹🇼 TW 测速"
    type: url-test
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇹🇼|台湾|台灣|Taiwan|(^|[ _-])TW([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 50
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇹🇼 台湾"
    type: select
    proxies: ["🇹🇼 TW Select", "🇹🇼 TW FB", "🇹🇼 TW 测速"]

  # 日本
  - name: "🇯🇵 JP Select"
    type: select
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇯🇵|日本|Japan|(^|[ _-])JP([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"

  - name: "🇯🇵 JP FB"
    type: fallback
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇯🇵|日本|Japan|(^|[ _-])JP([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇯🇵 JP 测速"
    type: url-test
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇯🇵|日本|Japan|(^|[ _-])JP([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 50
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇯🇵 日本"
    type: select
    proxies: ["🇯🇵 JP Select", "🇯🇵 JP FB", "🇯🇵 JP 测速"]

  # 新加坡
  - name: "🇸🇬 SG Select"
    type: select
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇸🇬|新加坡|狮城|獅城|Singapore|(^|[ _-])SG([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"

  - name: "🇸🇬 SG FB"
    type: fallback
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇸🇬|新加坡|狮城|獅城|Singapore|(^|[ _-])SG([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇸🇬 SG 测速"
    type: url-test
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇸🇬|新加坡|狮城|獅城|Singapore|(^|[ _-])SG([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 50
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇸🇬 新加坡"
    type: select
    proxies: ["🇸🇬 SG Select", "🇸🇬 SG FB", "🇸🇬 SG 测速"]

  # 美国
  - name: "🇺🇸 US Select"
    type: select
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇺🇸|美国|美國|United[ _-]?States|America|(^|[ _-])US(A)?([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"

  - name: "🇺🇸 US FB"
    type: fallback
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇺🇸|美国|美國|United[ _-]?States|America|(^|[ _-])US(A)?([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇺🇸 US 测速"
    type: url-test
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇺🇸|美国|美國|United[ _-]?States|America|(^|[ _-])US(A)?([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 50
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇺🇸 美国"
    type: select
    proxies: ["🇺🇸 US Select", "🇺🇸 US FB", "🇺🇸 US 测速"]

  # 英国
  - name: "🇬🇧 UK Select"
    type: select
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇬🇧|英国|英國|United[ _-]?Kingdom|Britain|(^|[ _-])(UK|GB)([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"

  - name: "🇬🇧 UK FB"
    type: fallback
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇬🇧|英国|英國|United[ _-]?Kingdom|Britain|(^|[ _-])(UK|GB)([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇬🇧 UK 测速"
    type: url-test
    use: [Allinone, DirectNodes]
    filter: "(?i)(🇬🇧|英国|英國|United[ _-]?Kingdom|Britain|(^|[ _-])(UK|GB)([ _-]|$))"
    exclude-filter: "(?i)(剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 50
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "🇬🇧 英国"
    type: select
    proxies: ["🇬🇧 UK Select", "🇬🇧 UK FB", "🇬🇧 UK 测速"]

  # 冷门地区
  - name: "冷门 Select"
    type: select
    use: [Allinone, DirectNodes]
    exclude-filter: "(?i)(🇭🇰|香港|Hong[ _-]?Kong|(^|[ _-])HK([ _-]|$)|🇲🇴|澳门|澳門|Macau|Macao|(^|[ _-])MO([ _-]|$)|🇹🇼|台湾|台灣|Taiwan|(^|[ _-])TW([ _-]|$)|🇯🇵|日本|Japan|(^|[ _-])JP([ _-]|$)|🇸🇬|新加坡|狮城|獅城|Singapore|(^|[ _-])SG([ _-]|$)|🇺🇸|美国|美國|United[ _-]?States|America|(^|[ _-])US(A)?([ _-]|$)|🇬🇧|英国|英國|United[ _-]?Kingdom|Britain|(^|[ _-])(UK|GB)([ _-]|$)|剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"

  - name: "冷门 FB"
    type: fallback
    use: [Allinone, DirectNodes]
    exclude-filter: "(?i)(🇭🇰|香港|Hong[ _-]?Kong|(^|[ _-])HK([ _-]|$)|🇲🇴|澳门|澳門|Macau|Macao|(^|[ _-])MO([ _-]|$)|🇹🇼|台湾|台灣|Taiwan|(^|[ _-])TW([ _-]|$)|🇯🇵|日本|Japan|(^|[ _-])JP([ _-]|$)|🇸🇬|新加坡|狮城|獅城|Singapore|(^|[ _-])SG([ _-]|$)|🇺🇸|美国|美國|United[ _-]?States|America|(^|[ _-])US(A)?([ _-]|$)|🇬🇧|英国|英國|United[ _-]?Kingdom|Britain|(^|[ _-])(UK|GB)([ _-]|$)|剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "冷门 测速"
    type: url-test
    use: [Allinone, DirectNodes]
    exclude-filter: "(?i)(🇭🇰|香港|Hong[ _-]?Kong|(^|[ _-])HK([ _-]|$)|🇲🇴|澳门|澳門|Macau|Macao|(^|[ _-])MO([ _-]|$)|🇹🇼|台湾|台灣|Taiwan|(^|[ _-])TW([ _-]|$)|🇯🇵|日本|Japan|(^|[ _-])JP([ _-]|$)|🇸🇬|新加坡|狮城|獅城|Singapore|(^|[ _-])SG([ _-]|$)|🇺🇸|美国|美國|United[ _-]?States|America|(^|[ _-])US(A)?([ _-]|$)|🇬🇧|英国|英國|United[ _-]?Kingdom|Britain|(^|[ _-])(UK|GB)([ _-]|$)|剩余|流量|到期|过期|套餐|官网|重置|通知|公告|群组|频道|客服|Traffic|Expire|Official|Website)"
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 80
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "冷门"
    type: select
    proxies: ["冷门 Select", "冷门 FB", "冷门 测速"]

  # CF 节点
  - name: "CF-Nodes Select"
    type: select
    use: [CFNodesProvider]

  - name: "CF-Nodes FB"
    type: fallback
    use: [CFNodesProvider]
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "CF-Nodes 测速"
    type: url-test
    use: [CFNodesProvider]
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 50
    timeout: 5000
    max-failed-times: 2
    lazy: true

  - name: "CF-Nodes"
    type: select
    proxies: ["CF-Nodes Select", "CF-Nodes FB", "CF-Nodes 测速"]

  # VPNGate
  - name: "VPNGATE Select"
    type: select
    use: [VpnGate]

  - name: "VPNGATE FB"
    type: fallback
    use: [VpnGate]
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 8000
    max-failed-times: 2
    lazy: true

  - name: "VPNGATE 测速"
    type: url-test
    use: [VpnGate]
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    tolerance: 100
    timeout: 8000
    max-failed-times: 2
    lazy: true

  - name: "VPNGATE"
    type: select
    proxies: ["VPNGATE Select", "VPNGATE FB", "VPNGATE 测速"]

  - name: "链式中继"
    type: fallback
    use: [Allinone]
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    timeout: 5000
    max-failed-times: 2
    lazy: true

proxy-providers:
  Allinone:
    type: http
    url: ""
    path: "./providers/allinone.yaml"
    interval: 43200
    health-check:
      enable: true
      lazy: true
      url: "https://www.apple.com/library/test/success.html"
      interval: 600
    override:
      udp: true
  DirectNodes:
    type: http
    url: ""
    path: "./providers/direct.yaml"
    interval: 43200
    health-check:
      enable: true
      lazy: true
      url: "https://www.gstatic.com/generate_204"
      interval: 600
    override:
      dialer-proxy: 链式中继
  VpnGate:
    type: http
    url: ""
    path: "./providers/vpngate.yaml"
    interval: 43200
    health-check:
      enable: true
      lazy: true
      url: "https://www.gstatic.com/generate_204"
      interval: 600
    override:
      dialer-proxy: 链式中继
    filter: "(?i)VG"
  CFNodesProvider:
    type: http
    url: ""
    interval: 43200
    health-check:
      enable: true
      lazy: true
      url: "https://www.apple.com/library/test/success.html"
      interval: 600

rules:
  # 私网规则优先，避免 LAN 流量先命中服务或端口规则
  - IP-CIDR,0.0.0.0/24,REJECT,no-resolve
  - IP-CIDR,192.168.5.0/24,🎯 本机直连,no-resolve
  - IP-CIDR,192.168.50.0/24,🎯 本机直连,no-resolve
  - IP-CIDR,192.168.51.0/24,🎯 本机直连,no-resolve
  - IP-CIDR,192.168.52.0/24,🎯 本机直连,no-resolve
  - IP-CIDR,192.168.10.0/24,🎯 本机直连,no-resolve
  - IP-CIDR,192.168.20.0/24,🎯 本机直连,no-resolve
  - IP-CIDR,192.168.30.0/24,🎯 本机直连,no-resolve
  - IP-CIDR,100.100.0.0/16,🎯 本机直连,no-resolve
  - RULE-SET,privateip,🎯 本机直连,no-resolve

  # Stun服务器
  - RULE-SET,stun,Webrtc,no-resolve
  - DST-PORT,3478,Webrtc
  - DST-PORT,5349,Webrtc
  - SRC-PORT,3478,Webrtc
  - DOMAIN-KEYWORD,stun,Webrtc
  - DOMAIN-KEYWORD,webrtc,Webrtc

  #自定义规则

  - RULE-SET,API,🤖API

  - DOMAIN-KEYWORD,leak,🐟 漏网之鱼
  - DOMAIN-KEYWORD,ytools,🎯 订阅转换
  - DOMAIN-KEYWORD,bybit,🐟 漏网之鱼

  - RULE-SET,gemini,🤖 人工智障

  # 谷歌相关服务
  - RULE-SET,YouTube,🎥Youtube
  - RULE-SET,YouTubemusic,🎥Youtube
  - DOMAIN-KEYWORD,googleapis,📢 谷歌服务
  - DOMAIN-KEYWORD,xn-ngstr-cn-8za9o.com,📢 谷歌服务
  - DOMAIN-KEYWORD,xn-ngstr-Ira8j.com,📢 谷歌服务
  - RULE-SET,google,📢 谷歌服务
  - DOMAIN-KEYWORD,antigravity,📢 谷歌服务

  # 人工智能服务
  - RULE-SET,claude,🤖 人工智障
  - RULE-SET,openai,🤖 人工智障
  - RULE-SET,cursor,🤖 人工智障
  - RULE-SET,perplexity,🤖 人工智障
  - RULE-SET,Ai,🤖 人工智障

  # 其他类软件
  - RULE-SET,Zoom,📲Zoom

  # 流媒体服务（按平台细分）
  - RULE-SET,Bilibili,🎥Bilibili
  - RULE-SET,Netflix,🎥Netflix
  - RULE-SET,bytedance@!cn,🎥Bytedance
  - RULE-SET,TikTok,🎥Bytedance
  - RULE-SET,TVB,🎥TVB
  - RULE-SET,Niconico,🎥Niconico
  - RULE-SET,BBC,🎥BBC
  - RULE-SET,HBOHK,🎥HBOHK
  - RULE-SET,HBOUSA,🎥HBOUSA
  - RULE-SET,twitch,🎥Twitch

  # 其他国外流媒体
  - RULE-SET,Disney,🎥国外媒体（未细分）
  - RULE-SET,Bahamut,🎥国外媒体（未细分）
  - RULE-SET,Hulu,🎥国外媒体（未细分）
  - RULE-SET,PandoraTV,🎥国外媒体（未细分）
  - RULE-SET,FOXNOW,🎥国外媒体（未细分）
  - RULE-SET,FOXPlus,🎥国外媒体（未细分）
  - RULE-SET,KKTV,🎥国外媒体（未细分）
  - RULE-SET,NaverTV,🎥国外媒体（未细分）
  - RULE-SET,NowE,🎥国外媒体（未细分）
  - RULE-SET,ParamountPlus,🎥国外媒体（未细分）
  - RULE-SET,PrimeVideo,🎥国外媒体（未细分）
  - RULE-SET,TVer,🎥国外媒体（未细分）
  - RULE-SET,myTVSUPER,🎥国外媒体（未细分）
  - RULE-SET,HBOAsia,🎥国外媒体（未细分）
  - RULE-SET,DiscoveryPlus,🎥国外媒体（未细分）
  - RULE-SET,Overcast,🎥国外媒体（未细分）
  - RULE-SET,Peacock,🎥国外媒体（未细分）
  - RULE-SET,BritboxUK,🎥国外媒体（未细分）
  - RULE-SET,HKOpenTV,🎥国外媒体（未细分）
  - RULE-SET,Acplay,🎥国外媒体（未细分）
  - RULE-SET,pikpak,🎥国外媒体（未细分）

  # WifiCalling
  - RULE-SET,UK-wifi-call,📲 WifiCallingUK,no-resolve
  - RULE-SET,HK-wifi-call,📲 WifiCallingHK,no-resolve

  # 速度测试相关
  - RULE-SET,Speedtest7,⏱️Speedtest测速
  - RULE-SET,speedtest,⏱️Speedtest测速

  # 游戏相关
  - RULE-SET,Tencent,🎮 国内游戏
  - RULE-SET,steamCN,🎮 国内游戏
  - RULE-SET,TencentGame@cn,🎮 国内游戏
  - RULE-SET,Ubisoftcn,🎮 国内游戏

  # 测试分组游戏代理
  - RULE-SET,steam,🎮 Steam
  - DOMAIN-KEYWORD,playbattlegrounds,🎮 Steam
  - RULE-SET,Epic,🎮 Epic
  - RULE-SET,EA,🎮 EA
  - RULE-SET,Ubisoft,🎮 Ubisoft
  - RULE-SET,DMM,🎮 DMM

  # 成人内容
  - DOMAIN-KEYWORD,porn,🎥18+
  - DOMAIN-KEYWORD,xvideos,🎥18+
  - DOMAIN-KEYWORD,kinky,🎥18+
  - DOMAIN-KEYWORD,sex,🎥18+
  - DOMAIN-KEYWORD,hentai,🎥18+
  - DOMAIN-KEYWORD,comic,🎥18+

  # 社交与通信
  - RULE-SET,Meta,📲Meta
  - RULE-SET,X,📲X/Twitter
  - RULE-SET,Discord,📲Discord
  - RULE-SET,telegramip,📲 电报消息,no-resolve

  # 特殊应用
  - RULE-SET,docker,Docker
  - RULE-SET,github,Github

  # 特殊服务
  - DST-PORT,65438,非标端口
  - DST-PORT,22,SSH

  # 科技公司服务
  - RULE-SET,microsoft-cn,Ⓜ️ 微软服务(国区)
  - RULE-SET,microsoft-global,Ⓜ️ 微软服务(国际)

  - RULE-SET,apple-cn,🍎 苹果服务(国区)
  - RULE-SET,apple-relay,🍎 苹果服务(国际)
  - RULE-SET,apple-cdn,🍎 苹果服务(国际)

  - RULE-SET,apple-service,🍎 Apple Intelligence

  - RULE-SET,Ai_selfmatain,🤖 人工智障

  - RULE-SET,cloudflare,☁️ Cloudflare

  # 国内域名 + GeoIP-CN。覆盖优先模式会解析尚无目标 IP 的域名。
  - RULE-SET,cn,🎯 国内流量
  - GEOIP,CN,🎯 国内流量

  # 如需禁止该 GEOIP 规则主动解析 DNS，请改用 low-dns 版本。

  # 最终匹配规则
  - MATCH,🐟 漏网之鱼

rule-providers:
  # Fakeip Filter
  fakeip:
    type: http
    behavior: classical
    url: 
    path: ./providers/fakeip.yaml
    interval: 86400
  realip:
    type: http
    behavior: classical
    url: 
    path: ./providers/realip.yaml
    interval: 86400
  # 规则集开始
  claude:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/7999264969a0318095fd6e27a182feec1de951b5/rule/Clash/Claude/Claud\
      e.yaml"
    path: ./providers/ai.yaml
    interval: 86400
  cursor:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/803368e10b7d6694af40f79897a1b57ed2af31d5/geo/geosite/cursor.yaml"
    path: ./providers/cursor.yaml
    interval: 86400
  gemini:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/803368e10b7d6694af40f79897a1b57ed2af31d5/geo/geosite/google-gemini.y\
      aml"
    path: ./providers/gemini.yaml
    interval: 86400
  microsoft-cn:
    type: http
    behavior: domain
    url:
      "https://raw.githubusercontent.com/MetaCubeX/\
      meta-rules-dat/refs/heads/meta/geo/geosite/microsoft%40cn.yaml"
    path: ./providers/microsoft-cn.yaml
    interval: 86400
  microsoft-global:
    type: http
    behavior: domain
    url:
      "https://raw.githubusercontent.com/MetaCubeX/\
      meta-rules-dat/refs/heads/meta/geo/geosite/microsoft.yaml"
    path: ./providers/microsoft-global.yaml
    interval: 86400
  apple-cdn:
    type: http
    behavior: domain
    url: "https://raw.githubusercontent.com/SukkaLab/ruleset.skk.moe/master/Clash/domainset/apple_cdn.txt"
    path: ./providers/apple-cdn.txt
    interval: 86400
    format: text
  apple-relay:
    type: http
    behavior: domain
    url: "https://raw.githubusercontent.com/SukkaLab/ruleset.skk.moe/master/Clash/domainset/icloud_private_relay.txt"
    path: ./providers/apple-relay.txt
    interval: 86400
    format: text
  apple-service:
    type: http
    behavior: classical
    url: "https://raw.githubusercontent.com/SukkaLab/ruleset.skk.moe/master/Clash/non_ip/apple_intelligence.txt"
    path: ./providers/apple-service.txt
    interval: 86400
    format: text
  apple-cn:
    type: http
    behavior: classical
    url: "https://raw.githubusercontent.com/SukkaLab/ruleset.skk.moe/master/Clash/non_ip/apple_cn.txt"
    path: ./providers/apple-cn.txt
    interval: 86400
    format: text
  google:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Google/Google.yaml"
    path: ./providers/google.yaml
    interval: 86400
  telegramip:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Telegram/Telegram.yaml"
    path: ./providers/telegramip.yaml
    interval: 86400
  Netflix:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Netflix/Netflix.yaml"
    path: ./providers/Netflix.yaml
    interval: 86400
  YouTube:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/9557ce42ca5e529f86ae333ef1a321d63d23965a/rule/Clash/YouTube/YouT\
      ube.yaml"
    path: ./providers/youtube.yaml
    interval: 86400
  YouTubemusic:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/YouTubeMusic/YouTubeMusic.yaml"
    path: ./providers/youtubemusic.yaml
    interval: 86400
  Discord:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Discord/Discord.yaml"
    path: ./providers/Discord.yaml
    interval: 86400
  Disney:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Disney/Disney.yaml"
    path: ./providers/Disney.yaml
    interval: 86400
  TikTok:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/9985167809ffffc96d4322bbf83d45e17d2a652d/geo/geosite/tiktok.yaml"
    path: ./providers/TikTok.yaml
    interval: 86400
  steamCN:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/5ef8c0a440b1a708f1fa89fe687ac4821c992cda/geo/geosite/steam%40cn.yaml"
    path: ./providers/steamcn.yaml
    interval: 86400
  steam:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/5ef8c0a440b1a708f1fa89fe687ac4821c992cda/geo/geosite/steam.yaml"
    path: ./providers/steam.yaml
    interval: 86400
  Ubisoft:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/5ef8c0a440b1a708f1fa89fe687ac4821c992cda/geo/geosite/ubisoft.yaml"
    path: ./providers/Ubisoft.yaml
    interval: 86400
  Ubisoftcn:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/5ef8c0a440b1a708f1fa89fe687ac4821c992cda/geo/geosite/ubisoft%40cn.ya\
      ml"
    path: ./providers/Ubisoftcn.yaml
    interval: 86400
  EA:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/e628d6909cebd6ea95257745440d43493e03495f/rule/Clash/EA/EA.yaml"
    path: ./ruleset/EA.yaml
    interval: 86400
  Epic:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/5ef8c0a440b1a708f1fa89fe687ac4821c992cda/geo/geosite/epicgames.yaml"
    path: ./ruleset/EPIC.yaml
    interval: 86400
  X:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Twitter/Twitter.yaml"
    path: ./providers/X.yaml
    interval: 86400
  Niconico:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Niconico/Niconico.yaml"
    path: ./ruleset/Niconico.yaml
    interval: 86400
  BBC:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/BBC/BBC.yaml"
    path: ./ruleset/BBC.yaml
    interval: 86400
  Bahamut:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Bahamut/Bahamut.yaml"
    path: ./ruleset/Bahamut.yaml
    interval: 86400
  Hulu:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Hulu/Hulu.yaml"
    path: ./ruleset/Hulu.yaml
    interval: 86400
  PandoraTV:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/PandoraTV/PandoraTV.yaml"
    path: ./ruleset/PandoraTV.yaml
    interval: 86400
  TVB:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/TVB/TVB.yaml"
    path: ./ruleset/TVB.yaml
    interval: 86400
  HBOHK:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/HBOHK/HBOHK.yaml"
    path: ./ruleset/HBOHK.yaml
    interval: 86400
  HBOUSA:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/HBOUSA/HBOUSA.yaml"
    path: ./ruleset/HBOUSA.yaml
    interval: 86400
  FOXNOW:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/FOXNOW/FOXNOW.yaml"
    path: ./ruleset/FOXNOW.yaml
    interval: 86400
  FOXPlus:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/FOXPlus/FOXPlus.yaml"
    path: ./ruleset/FOXPlus.yaml
    interval: 86400
  KKTV:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/KKTV/KKTV.yaml"
    path: ./ruleset/KKTV.yaml
    interval: 86400
  NaverTV:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/NaverTV/NaverTV.yaml"
    path: ./ruleset/NaverTV.yaml
    interval: 86400
  NowE:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/NowE/NowE.yaml"
    path: ./ruleset/NowE.yaml
    interval: 86400
  ParamountPlus:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/ParamountPlus/ParamountPlus.yaml"
    path: ./ruleset/ParamountPlus.yaml
    interval: 86400
  PrimeVideo:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/PrimeVideo/PrimeVideo.yaml"
    path: ./ruleset/PrimeVideo.yaml
    interval: 86400
  TVer:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/TVer/TVer.yaml"
    path: ./ruleset/TVer.yaml
    interval: 86400
  myTVSUPER:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/myTVSUPER/myTVSUPER.yaml"
    path: ./ruleset/myTVSUPER.yaml
    interval: 86400
  HBOAsia:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/HBOAsia/HBOAsia.yaml"
    path: ./ruleset/HBOAsia.yaml
    interval: 86400
  DiscoveryPlus:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/DiscoveryPlus/DiscoveryPlus.yaml"
    path: ./ruleset/DiscoveryPlus.yaml
    interval: 86400
  Overcast:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Overcast/Overcast.yaml"
    path: ./ruleset/Overcast.yaml
    interval: 86400
  Peacock:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/Peacock/Peacock.yaml"
    path: ./ruleset/Peacock.yaml
    interval: 86400
  BritboxUK:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/9557ce42ca5e529f86ae333ef1a321d63d23965a/rule/Clash/BritboxUK/Br\
      itboxUK.yaml"
    path: ./ruleset/BritboxUK.yaml
    interval: 86400
  HKOpenTV:
    type: http
    behavior: classical
    url:
      "https://raw.githubusercontent.com/blackmatri\
      x7/ios_rule_script/master/rule/Clash/HKOpenTV/HKOpenTV.yaml"
    path: ./ruleset/HKOpenTV.yaml
    interval: 86400
  Acplay:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/Acplay/Acpla\
      y.yaml"
    path: ./ruleset/Acplay.yaml
    interval: 86400
  Tencentvideo:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/TencentVideo\
      /TencentVideo.yaml"
    path: ./ruleset/tencentvideo.yaml
    interval: 86400
  Tencent:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/Tencent/Tenc\
      ent.yaml"
    path: ./ruleset/Tencent.yaml
    interval: 86400
  ChinaMAX:
    type: http
    behavior: classical
    url: "https://github.com/blackmatrix7/ios_rule_script/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/ChinaMax/ChinaMax.yaml"
    path: ./ruleset/ChinaMax.yaml
    interval: 86400
  ChinaMAX_Domain:
    type: http
    behavior: domain
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/ChinaMax/Chi\
      naMax_Domain.yaml"
    path: ./ruleset/ChinaMax_Domain.yaml
    interval: 86400
  ChinaMAX_IP:
    type: http
    behavior: ipcidr
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/ChinaMax/Chi\
      naMax_IP.yaml"
    path: ./ruleset/ChinaMax_IP.yaml
    interval: 86400
  docker:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/Docker/Docke\
      r.yaml"
    path: ./ruleset/Docker.yaml
    interval: 86400
  github:
    type: http
    behavior: classical
    url: "https://github.com/blackmatrix7/ios_rule_script/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/GitHub/GitHub.yaml"
    path: ./ruleset/github.yaml
    interval: 86400
  TencentGame@cn:
    type: http
    behavior: domain
    url:
      "https://raw.githubusercontent.com/MetaCubeX/\
      meta-rules-dat/8ccfafe264fdd0a16021c9aa342a0cc8f30f28d8/geo/geosite/tence\
      nt-games%40cn.yaml"
    path: ./ruleset/tencentgamecn.yaml
    interval: 86400
  Speedtest7:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/Speedtest/Sp\
      eedtest.yaml"
    path: ./ruleset/Speedtest7.yaml
    interval: 86400
  speedtest:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/84ca448190a059fc921a90ede27af88c1904fbe2/geo/geosite/speedtest.yaml"
    path: ./ruleset/speedtest1.yaml
    interval: 86400
  twitch:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/9b728577fb9e07454a03d0ec9e7374af23191c17/rule/Clash/Twitch/Twitc\
      h.yaml"
    path: ./ruleset/twitch.yaml
    interval: 86400
  openai:
    type: http
    behavior: classical
    url:
      "https://github.com/blackmatrix7/ios_rule_scr\
      ipt/blob/41d59ed0629ffb7aabc99cdcaafc1505b9a25991/rule/Clash/OpenAI/OpenA\
      I.yaml"
    path: ./ruleset/openai.yaml
    interval: 86400
  cn:
    type: http
    behavior: domain
    format: mrs
    path: ./ruleset/cn.mrs
    url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
    interval: 86400
  privateip:
    type: http
    behavior: ipcidr
    format: mrs
    path: ./ruleset/privateip.mrs
    url:
      "https://github.com/DustinWin/ruleset_geodata\
      /releases/download/mihomo-ruleset/privateip.mrs"
    interval: 86400
  cnip:
    type: http
    behavior: ipcidr
    format: mrs
    path: ./ruleset/cnip.mrs
    url:
      "https://github.com/DustinWin/ruleset_geodata\
      /releases/download/mihomo-ruleset/cnip.mrs"
    interval: 86400
  cloudflare:
    type: http
    behavior: classical
    url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Cloudflare/Cloudflare.yaml"
    path: ./ruleset/cf.yaml
    interval: 86400
  Zoom:
    type: http
    behavior: domain
    url:
      "https://raw.githubusercontent.com/MetaCubeX/\
      meta-rules-dat/refs/heads/meta/geo/geosite/zoom.yaml"
    path: ./ruleset/zoom.yaml
    interval: 86400
  Bilibili:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/82929607bd6d0545bfa430deebfa701c426b62fc/geo/geosite/bilibili.yaml"
    path: ./ruleset/bilibili.yaml
    interval: 86400
  perplexity:
    type: http
    behavior: domain
    url: "https://github.com/MetaCubeX/meta-rules-dat/blob/4a598c2e93774116158f4f815bdb6f8c1f6bb9fc/geo/geosite/perplexity.yaml"
    path: ./ruleset/perplexity.yaml
    interval: 86400
  Ai:
    type: http
    behavior: domain
    format: mrs
    url: "https://github.com/DustinWin/ruleset_geodata/blob/fe4db235dd6f2d50b80b2e7500c2071d5a7d3174/ai.mrs"
    path: ./ruleset/ai.mrs
    interval: 86400
  UK-wifi-call:
    type: http
    behavior: classical
    url: "https://raw.githubusercontent.com/HenryChiao/the_clash_ruleset/bde9a2635ac0b1c2ebea4e276e56554b2458399b/The_Location_rule-set/Wi-Fi_Calling_rule-set/wificalling-uk.list"
    path: ./ruleset/wificallingUK.list
    interval: 86400
    format: text
  HK-wifi-call:
    type: http
    behavior: classical
    url: "https://raw.githubusercontent.com/HenryChiao/the_clash_ruleset/bde9a2635ac0b1c2ebea4e276e56554b2458399b/The_Location_rule-set/Wi-Fi_Calling_rule-set/wificalling-hk.list"
    path: ./ruleset/wificallingHK.list
    interval: 86400
    format: text
  bytedance@!cn:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/f0893e2081d4cc8bf8e14b11220aa7e5c757e6ec/geo/geosite/bytedance%40!cn\
      .yaml"
    path: ./ruleset/bytedance@!cn.yaml
    interval: 86400
  DMM:
    type: http
    behavior: domain
    url:
      "https://github.com/MetaCubeX/meta-rules-dat/\
      blob/caca9b0f8229d0e9911384db4b85bb7448caddf2/geo/geosite/dmm.yaml"
    path: ./ruleset/dmm.yaml
    interval: 86400
  Meta:
    type: http
    behavior: domain
    url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/d71b578f6023f05760aaccd22bad8069ae5af2f7/geo/geosite/meta.yaml"
    path: ./ruleset/meta.yaml
    interval: 86400
  stun:
    type: http
    behavior: classical
    url: "https://github.com/blackmatrix7/ios_rule_script/blob/10019dab77fbd59393c9477cfcb1354ed10f8e55/rule/Clash/STUN/STUN.yaml"
    path: ./ruleset/stun.yaml
    interval: 86400
  pikpak:
    type: http
    behavior: domain
    url: "https://github.com/MetaCubeX/meta-rules-dat/blob/e662bcc9c046c1ac70156afa222f1415ebe70129/geo/geosite/pikpak.yaml"
    path: ./ruleset/pikpak.yaml
    interval: 86400
