mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
ipv6: true
unified-delay: true
proxies: []
proxy-providers:
  sub-a:
    type: http
    url: https://clash.daniu.win/daniu-vps.yaml
    interval: 3600
    path: ./providers/sub-a.yaml
    health-check:
      enable: true
      url: https://www.gstatic.com/generate_204
      interval: 120
    filter: ^(?!.*(到期时间|剩余流量|官网|邀请码|打不开网站|无法订阅|套餐信息|流量|重置|官网地址|复制导入|冰岛|巴西|韩国\ ISP)).*
  sub-b:
    type: http
    url: https://sub.cocoduck.cc/sub/67dcbc4710b65132/clash
    interval: 3600
    path: ./providers/sub-b.yaml
    health-check:
      enable: true
      url: https://www.gstatic.com/generate_204
      interval: 120
    filter: ^(?!.*(到期时间|剩余流量|官网|邀请码|打不开网站|无法订阅|套餐信息|流量|重置|官网地址|复制导入|冰岛|巴西|韩国\ ISP)).*
  sub-c:
    type: http
    url: https://api.mzapi.net/api/v5/subscribe/15039/FYZHUJI01309rudmj77xCx3Hx1
    interval: 3600
    path: ./providers/sub-c.yaml
    health-check:
      enable: true
      url: https://www.gstatic.com/generate_204
      interval: 120
    filter: ^(?!.*(到期时间|剩余流量|官网|邀请码|打不开网站|无法订阅|套餐信息|流量|重置|官网地址|复制导入|冰岛|巴西|韩国\ ISP)).*
proxy-groups:
- name: 三源故障转移
  type: fallback
  proxies:
  - 全局自动优选
  - 订阅B-自动
  - 订阅C-自动
  - 订阅A-自动
  url: https://www.gstatic.com/generate_204
  interval: 120
  lazy: false
- name: 全局自动优选
  type: url-test
  use:
  - sub-a
  - sub-b
  - sub-c
  url: https://www.gstatic.com/generate_204
  interval: 120
  tolerance: 50
  lazy: false
  exclude-filter: 到期时间|剩余流量|官网|邀请码|打不开网站|无法订阅|套餐信息|流量|重置|官网地址|复制导入|冰岛|巴西|韩国\ ISP
- name: 订阅B-自动
  type: url-test
  use:
  - sub-b
  url: https://www.gstatic.com/generate_204
  interval: 120
  tolerance: 50
  lazy: false
  exclude-filter: 到期时间|剩余流量|官网|邀请码|打不开网站|无法订阅|套餐信息|流量|重置|官网地址|复制导入|冰岛|巴西|韩国\ ISP
- name: 订阅C-自动
  type: url-test
  use:
  - sub-c
  url: https://www.gstatic.com/generate_204
  interval: 120
  tolerance: 50
  lazy: false
  exclude-filter: 到期时间|剩余流量|官网|邀请码|打不开网站|无法订阅|套餐信息|流量|重置|官网地址|复制导入|冰岛|巴西|韩国\ ISP
- name: 订阅A-自动
  type: url-test
  use:
  - sub-a
  url: https://www.gstatic.com/generate_204
  interval: 120
  tolerance: 50
  lazy: false
  exclude-filter: 到期时间|剩余流量|官网|邀请码|打不开网站|无法订阅|套餐信息|流量|重置|官网地址|复制导入|冰岛|巴西|韩国\ ISP
- name: 节点选择
  type: select
  proxies:
  - 三源故障转移
  - 全局自动优选
  - 订阅B-自动
  - 订阅C-自动
  - 订阅A-自动
  - DIRECT
  use:
  - sub-a
  - sub-b
  - sub-c
- name: 全球直连
  type: select
  proxies:
  - DIRECT
- name: 广告拦截
  type: select
  proxies:
  - REJECT
  - DIRECT
  - 节点选择
dns:
  enable: true
  listen: :53
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  fake-ip-filter-mode: blacklist
  fake-ip-filter:
  - '*.lan'
  - '*.local'
  - '*.arpa'
  - time.*.com
  - ntp.*.com
  - +.market.xiaomi.com
  - localhost.ptlogin2.qq.com
  - '*.msftncsi.com'
  - www.msftconnecttest.com
  - +.io.mi.com
  - +.mijia.tech
  - +.daniu.win
  - +.openai.com
  - +.chatgpt.com
  - +.ai.com
  - +.oaistatic.com
  - +.oaiusercontent.com
  default-nameserver:
  - system
  - 223.6.6.6
  - 8.8.8.8
  nameserver:
  - 8.8.8.8
  - https://doh.pub/dns-query
  fallback: []
  fallback-filter:
    domain:
    - +.google.com
    - +.facebook.com
    - +.youtube.com
    geoip: true
    geoip-code: CN
    ipcidr:
    - 240.0.0.0/4
  ipv6: true
tun:
  enable: true
  stack: system
  auto-route: true
  auto-detect-interface: true
  dns-hijack:
  - any:53
  route-exclude-address:
  - 198.13.34.15/32
rules:
- DOMAIN-SUFFIX,daniu.win,DIRECT
- DOMAIN-SUFFIX,argotunnel.com,DIRECT
- DOMAIN-SUFFIX,cloudflare.com,DIRECT
- DOMAIN-SUFFIX,douyin.com,DIRECT
- DOMAIN-SUFFIX,douyincdn.com,DIRECT
- DOMAIN-SUFFIX,douyinpic.com,DIRECT
- DOMAIN-SUFFIX,douyinstatic.com,DIRECT
- DOMAIN-SUFFIX,douyinvod.com,DIRECT
- DOMAIN-SUFFIX,iesdouyin.com,DIRECT
- DOMAIN-SUFFIX,openai.com,三源故障转移
- DOMAIN-SUFFIX,chatgpt.com,三源故障转移
- DOMAIN-SUFFIX,ai.com,三源故障转移
- DOMAIN-SUFFIX,oaistatic.com,三源故障转移
- DOMAIN-SUFFIX,oaiusercontent.com,三源故障转移
- DOMAIN-SUFFIX,anthropic.com,三源故障转移
- DOMAIN-SUFFIX,claude.ai,三源故障转移
- DOMAIN-SUFFIX,discord.com,三源故障转移
- DOMAIN-SUFFIX,discordapp.com,三源故障转移
- DOMAIN-SUFFIX,discordapp.net,三源故障转移
- DOMAIN-SUFFIX,google.com,三源故障转移
- DOMAIN-SUFFIX,youtube.com,三源故障转移
- DOMAIN-SUFFIX,telegram.org,三源故障转移
- DOMAIN-SUFFIX,t.me,三源故障转移
- DOMAIN-SUFFIX,github.com,三源故障转移
- DOMAIN-SUFFIX,githubusercontent.com,三源故障转移
- DOMAIN-SUFFIX,baidu.com,DIRECT
- DOMAIN-SUFFIX,qq.com,DIRECT
- DOMAIN-SUFFIX,taobao.com,DIRECT
- DOMAIN-SUFFIX,tmall.com,DIRECT
- DOMAIN-SUFFIX,jd.com,DIRECT
- DOMAIN-SUFFIX,bilibili.com,DIRECT
- DOMAIN-SUFFIX,163.com,DIRECT
- DOMAIN-SUFFIX,weibo.com,DIRECT
- DOMAIN-SUFFIX,zhihu.com,DIRECT
- DOMAIN-SUFFIX,xiaomi.com,DIRECT
- GEOIP,CN,DIRECT
- MATCH,三源故障转移
