mode: rule
dns:
  enable: true
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  nameserver:
    - tls://8.8.8.8
    - tls://1.1.1.1
  direct-nameserver:
    - https://120.53.53.53/dns-query
  nameserver-policy:
    geosite:cn:
      - 223.5.5.5
      - 119.29.29.29
  proxy-server-nameserver:
    - https://120.53.53.53/dns-query
  ipv6: false
  listen: 0.0.0.0:7874
  default-nameserver:
    - tls://1.12.12.12
  fake-ip-filter:
    - +.lan
    - +.local
    - +.example.com
    # 连通性探测 / NTP / 推送:需真实 IP,被 fake-ip 劫持会误判无网(许可证站 #165)
    - +.msftconnecttest.com
    - +.msftncsi.com
    - +.market.xiaomi.com
    - localhost.ptlogin2.qq.com
    - '*.battlenet.com.cn'
    - stun.*.*.*
    - stun.*.*
    - time.*.com
    - time.*.gov
    - time.*.edu.cn
    - time.*.apple.com
    - time-ios.apple.com
    - +.ntp.org
    - +.pool.ntp.org
    # 安卓 / Google Play 连通性 + GMS 推送:被 fake-ip 劫持会导致 Play 无法更新
    - mtalk.google.com
    # FCM 实际使用的主机名(Firebase network-configuration)。旧写法用 alt 星号做 label 内
    # 部分通配 —— mihomo domain trie 从不当通配处理(哑规则),且 v1.19.30 起直接判
    # invalid domain 令整份配置拒绝加载。而真实 FCM 主机 alt1-mtalk.google.com 是
    # google.com 直接子域(连字符,非点号),任何 mtalk 前的整-label 通配都够不着,只能逐条列。
    - '*.mtalk.google.com'
    - mtalk4.google.com
    - mtalk-staging.google.com
    - mtalk-dev.google.com
    - alt1-mtalk.google.com
    - alt2-mtalk.google.com
    - alt3-mtalk.google.com
    - alt4-mtalk.google.com
    - alt5-mtalk.google.com
    - alt6-mtalk.google.com
    - alt7-mtalk.google.com
    - alt8-mtalk.google.com
    - android.apis.google.com
    - +.gvt1.com
    - +.gvt2.com
    - +.gvt3.com
    - connectivitycheck.gstatic.com
    - connectivitycheck.android.com
    - clients3.google.com
    - '*.googleapis.cn'
proxies:
  - name: 🇺🇸 美国-01
    type: vless
    server: 35.93.195.131
    port: 29517
    uuid: 314511c1-968d-459b-9d56-5fc7565a949e
    udp: true
    tls: true
    skip-cert-verify: false
    servername: www.microsoft.com
    network: tcp
    reality-opts:
      public-key: e_JpCpJ5FinqIUlupmtlGKhnvY72nFbjRUgi3dcEHhI
      short-id: ""
    flow: xtls-rprx-vision
    client-fingerprint: chrome
  - name: 🇯🇵 东京-01
    type: vless
    server: 13.115.227.243
    port: 40413
    uuid: 5451199b-318c-43c6-bc9b-c74f9c27d23e
    udp: true
    tls: true
    skip-cert-verify: false
    servername: www.microsoft.com
    network: tcp
    reality-opts:
      public-key: yUA2Vm2osQju4CnBtyfwpgbuljJb6nAvQ6AwNsFqsng
      short-id: ""
    flow: xtls-rprx-vision
    client-fingerprint: chrome
proxy-groups:
  - name: 🚀 手动选择
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/System/Proxy/Proxy.png
    proxies:
      - ♻️ 自动选择
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: ♻️ 自动选择
    type: url-test
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/System/Auto/Auto.png
    proxies:
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
    url: https://cp.cloudflare.com/generate_204
    interval: 300
    tolerance: 50
  - name: 🚀 GitHub
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/Microsoft/GitHub/GitHub.png
    proxies:
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🎯 全球直连
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: 📢 谷歌FCM
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/Google/GooglePlay/GooglePlay.png
    proxies:
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🎯 全球直连
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: 🇬 谷歌服务
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/Google/Google/Google.png
    proxies:
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🎯 全球直连
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: 🍎 苹果服务
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/Apple/Apple/Apple.png
    proxies:
      - 🎯 全球直连
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: Ⓜ️ 微软服务
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/Microsoft/Microsoft/Microsoft.png
    proxies:
      - 🎯 全球直连
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: 🎮 游戏平台
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/System/Game/Game.png
    proxies:
      - 🎯 全球直连
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: 🎮 Steam
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/Game/Steam/Steam.png
    proxies:
      - 🎯 全球直连
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: 🚀 测速工具
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/Utilities/Speedtest/Speedtest.png
    proxies:
      - 🎯 全球直连
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: 🐟 漏网之鱼
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/System/Final/Final.png
    proxies:
      - 🚀 手动选择
      - ♻️ 自动选择
      - 🎯 全球直连
      - 🇺🇸 美国-01
      - 🇯🇵 东京-01
  - name: 🔀 非标端口
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/System/Traffic/Traffic.png
    proxies:
      - 🐟 遵循规则
      - 🎯 全球直连
  - name: 🎯 全球直连
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/System/Direct/Direct.png
    proxies:
      - DIRECT
  - name: 🐟 遵循规则
    type: select
    icon: https://raw.githubusercontent.com/Hawaiine/Oasisic-Icons/main/icons/System/Area/Area.png
    proxies:
      - 🐟 漏网之鱼
rules:
  - GEOSITE,private,🎯 全球直连
  - GEOIP,private,🎯 全球直连,no-resolve
  - RULE-SET,Custom_Direct_Domain,🎯 全球直连
  - RULE-SET,Custom_Direct_Classical_IP,🎯 全球直连
  - RULE-SET,Custom_Proxy_Domain,🚀 手动选择
  - RULE-SET,Custom_Proxy_Classical_IP,🚀 手动选择
  - GEOSITE,google-cn,🎯 全球直连
  - GEOSITE,category-games@cn,🎯 全球直连
  - RULE-SET,Steam_CDN_Classical,🎯 全球直连
  - GEOSITE,category-game-platforms-download,🎯 全球直连
  - GEOSITE,category-public-tracker,🎯 全球直连
  - GEOSITE,github,🚀 GitHub
  - GEOSITE,category-speedtest,🚀 测速工具
  - GEOSITE,apple,🍎 苹果服务
  - GEOSITE,steam,🎮 Steam
  - GEOSITE,microsoft,Ⓜ️ 微软服务
  - GEOSITE,googlefcm,📢 谷歌FCM
  - GEOSITE,google,🇬 谷歌服务
  - GEOSITE,gfw,🚀 手动选择
  - GEOSITE,category-games,🎮 游戏平台
  - GEOIP,google,🇬 谷歌服务,no-resolve
  - GEOSITE,cn,🎯 全球直连
  - GEOIP,cn,🎯 全球直连,no-resolve
  - AND,((RULE-SET,Custom_Port_Direct),(GEOIP,cn)),🎯 全球直连
  - RULE-SET,Custom_Port_Direct,🔀 非标端口
  - MATCH,🐟 漏网之鱼
rule-providers:
  Custom_Direct_Domain:
    type: http
    behavior: domain
    url: https://testingcf.jsdelivr.net/gh/Aethersailor/Custom_OpenClash_Rules@main/rule/Custom_Direct_Domain.yaml
    path: ./providers/Custom_Direct_Domain.yaml
    interval: 28800
  Custom_Direct_Classical_IP:
    type: http
    behavior: classical
    url: https://testingcf.jsdelivr.net/gh/Aethersailor/Custom_OpenClash_Rules@main/rule/Custom_Direct_Classical_IP.yaml
    path: ./providers/Custom_Direct_Classical_IP.yaml
    interval: 28800
  Custom_Proxy_Domain:
    type: http
    behavior: domain
    url: https://testingcf.jsdelivr.net/gh/Aethersailor/Custom_OpenClash_Rules@main/rule/Custom_Proxy_Domain.yaml
    path: ./providers/Custom_Proxy_Domain.yaml
    interval: 28800
  Custom_Proxy_Classical_IP:
    type: http
    behavior: classical
    url: https://testingcf.jsdelivr.net/gh/Aethersailor/Custom_OpenClash_Rules@main/rule/Custom_Proxy_Classical_IP.yaml
    path: ./providers/Custom_Proxy_Classical_IP.yaml
    interval: 28800
  Steam_CDN_Classical:
    type: http
    behavior: classical
    url: https://testingcf.jsdelivr.net/gh/Aethersailor/Custom_OpenClash_Rules@main/rule/Steam_CDN_Classical.yaml
    path: ./providers/Steam_CDN_Classical.yaml
    interval: 2880
  Custom_Port_Direct:
    type: http
    behavior: classical
    url: https://testingcf.jsdelivr.net/gh/Aethersailor/Custom_OpenClash_Rules@main/rule/Custom_Port_Direct.yaml
    path: ./providers/Custom_Port_Direct.yaml
    interval: 28800
