############################################## - ⚓️ 锚点区开始 - ##############################################
# 锚点 - 远程订阅组
PProviders: &PProviders {type: http, interval: 86400, proxy: DIRECT, health-check: {enable: true, url: 'https://www.gstatic.com/generate_204', interval: 300}, filter: '^(?!.*(群|邀请|返利|循环|官网|客服|网站|网址|获取|订阅|流量|到期|机场|下次|版本|官址|备用|过期|已用|联系|邮箱|工单|贩卖|通知|倒卖|防止|国内|地址|频道|无法|说明|使用|提示|特别|访问|支持|教程|关注|更新|作者|加入|USE|USED|TOTAL|EXPIRE|EMAIL|Panel|Channel|Author))'}
# 锚点 - 筛选组 
FilterHK: &FilterHK '^(?=.*(?i)(港|🇭🇰|HK|Hong|HKG))(?!.*(排除1|排除2|5x|iKuuu|Cloudflare|CF|免费|free)).*$'
FilterSG: &FilterSG '^(?=.*(?i)(坡|🇸🇬|SG|Sing|SIN|XSP))(?!.*(排除1|排除2|5x|iKuuu|Cloudflare|CF|免费|free)).*$'
FilterJP: &FilterJP '^(?=.*(?i)(日|🇯🇵|JP|Japan|NRT|HND|KIX|CTS|FUK))(?!.*(排除1|排除2|5x|iKuuu|Cloudflare|CF|免费|free)).*$'
FilterKR: &FilterKR '^(?=.*(?i)(韩|🇰🇷|韓|首尔|南朝鲜|KR|KOR|Korea|South))(?!.*(排除1|排除2|5x|iKuuu|Cloudflare|CF|免费|free)).*$'
FilterUS: &FilterUS '^(?=.*(?i)(美|🇺🇸|US|USA|JFK|LAX|ORD|ATL|DFW|SFO|MIA|SEA|IAD))(?!.*(排除1|排除2|5x|iKuuu|Cloudflare|CF|免费|free)).*$'
FilterTW: &FilterTW '^(?=.*(?i)(台|🇼🇸|🇹🇼|TW|tai|TPE|TSA|KHH))(?!.*(排除1|排除2|5x|iKuuu|Cloudflare|CF|免费|free)).*$'
FilterEU: &FilterEU '^(?=.*(?i)(奥|比|保|克罗地亚|塞|捷|丹|爱沙|芬|法|德|希|匈|爱尔|意|拉|立|卢|马其它|荷|波|葡|罗|斯洛伐|斯洛文|西|瑞|英|🇧🇪|🇨🇿|🇩🇰|🇫🇮|🇫🇷|🇩🇪|🇮🇪|🇮🇹|🇱🇹|🇱🇺|🇳🇱|🇵🇱|🇸🇪|🇬🇧|CDG|FRA|AMS|MAD|BCN|FCO|MUC|BRU))(?!.*(排除1|排除2|5x|iKuuu|Cloudflare|CF|免费|free)).*$'
FilterFE: &FilterFE '^(?=.*(?i)(iKuuu|Cloudflare|CF|免费|free))(?!.*(排除)).*$'
FilterOther: &FilterOther '^(?!.*(DIRECT|美|港|坡|台|新|日|韩|奥|比|保|克罗地亚|塞|捷|丹|爱沙|芬|法|德|希|匈|爱尔|意|拉|立|卢|马其它|荷|波|葡|罗|斯洛伐|斯洛文|西|瑞|英|🇭🇰|🇼🇸|🇹🇼|🇸🇬|🇯🇵|🇰🇷|🇺🇸|🇬🇧|🇦🇹|🇧🇪|🇨🇿|🇩🇰|🇫🇮|🇫🇷|🇩🇪|🇮🇪|🇮🇹|🇱🇹|🇱🇺|🇳🇱|🇵🇱|🇸🇪|HK|TW|SG|JP|KR|US|GB|CDG|FRA|AMS|MAD|BCN|FCO|MUC|BRU|HKG|TPE|TSA|KHH|SIN|XSP|NRT|HND|KIX|CTS|FUK|JFK|LAX|ORD|ATL|DFW|SFO|MIA|SEA|IAD|LHR|LGW))'
FilterAll: &FilterAll '^(?!.*(DIRECT|群|邀请|返利|循环|官网|客服|网站|网址|获取|订阅|流量|到期|机场|下次|版本|官址|备用|过期|已用|联系|邮箱|工单|贩卖|通知|倒卖|防止|国内|地址|频道|无法|说明|使用|提示|特别|访问|支持|教程|关注|更新|作者|加入|USE|USED|TOTAL|EXPIRE|EMAIL|Panel|Channel|Author))'
# 锚点 - 策略组
Smart: &Smart {type: smart, interval: 200, lazy: true, url: 'https://www.gstatic.com/generate_204', hidden: true, uselightgbm: true}
UrlTest: &UrlTest {type: url-test, interval: 60, tolerance: 20, lazy: true, url: 'https://www.gstatic.com/generate_204', disable-udp: false, timeout: 2000, max-failed-times: 3, hidden: true, include-all: true}
FallBack: &FallBack {type: fallback, interval: 60, lazy: true, url: 'https://www.gstatic.com/generate_204', disable-udp: false, timeout: 2000, max-failed-times: 3, hidden: false}
LoadBalanceCH: &LoadBalanceCH {type: load-balance, interval: 60, lazy: true, url: 'https://www.gstatic.com/generate_204', disable-udp: false, strategy: consistent-hashing, timeout: 2000, max-failed-times: 3, hidden: true, include-all: true}
LoadBalanceCR: &LoadBalanceCR {type: load-balance, interval: 60, lazy: true, url: 'https://www.gstatic.com/generate_204', disable-udp: false, strategy: round-robin, timeout: 2000, max-failed-times: 3, hidden: true, include-all: true}

# 锚点 - 选择组 
SelectFB: &SelectFB {type: select, proxies: [故障转移, 香港策略, 新加坡策略, 日本策略, 韩国策略, 美国策略, 台湾策略, 欧盟策略, 冷门自选, 免费策略, 全球手动, DIRECT]}
SelectHK: &SelectHK {type: select, proxies: [香港策略, 新加坡策略, 日本策略, 韩国策略, 美国策略, 台湾策略, 欧盟策略, 冷门自选, 免费策略, 全球手动, DIRECT]}
SelectSG: &SelectSG {type: select, proxies: [新加坡策略, 故障转移, 香港策略, 日本策略, 韩国策略, 美国策略, 台湾策略, 欧盟策略, 冷门自选, 免费策略, 全球手动, DIRECT]}
SelectUS: &SelectUS {type: select, proxies: [美国策略, 故障转移, 香港策略, 新加坡策略, 日本策略, 韩国策略, 台湾策略, 欧盟策略, 冷门自选, 免费策略, 全球手动, DIRECT]}
SelectFE: &SelectFE {type: select, proxies: [免费策略, 默认代理, 美国策略, 故障转移, 香港策略, 新加坡策略, 日本策略, 韩国策略, 台湾策略, 欧盟策略, 冷门自选, 全球手动, DIRECT]}
SelectProxy: &SelectProxy {type: select, proxies: [默认代理, 故障转移, 香港策略, 新加坡策略, 日本策略, 韩国策略, 美国策略, 台湾策略, 欧盟策略, 冷门自选, 免费策略, 全球手动, DIRECT]}
# 锚点 - 规则集 
DomainMrs: &DomainMrs {type: http, interval: 86400, behavior: domain, format: mrs}
DomainText: &DomainText {type: http, interval: 86400, behavior: domain, format: text}
domainYaml: &domainYaml {type: http, interval: 86400, behavior: domain, format: yaml}
IPcidrMrs: &IPcidrMrs {type: http, interval: 86400, behavior: ipcidr, format: mrs}
IPcidrText: &IPcidrText {type: http, interval: 86400, behavior: ipcidr, format: text}
ClassicalText: &ClassicalText {type: http, interval: 86400, behavior: classical, format: text}
ClassicalYaml: &ClassicalYaml {type: http, interval: 86400, behavior: classical, format: yaml}
############################################## - ⚓️ 锚点区结束 - ############################################## 

# 远程订阅组
# 注意：请提供您的机场订阅链接，每个链接一行，并为每个机场命名，末尾的[A]为每个节点添加机场名称前缀，可自定义
proxy-providers:
  机场A: {<<: *PProviders, url: '机场订阅地址', override: {additional-prefix: '[A] '}}
  机场B: {<<: *PProviders, url: '机场订阅地址', override: {additional-prefix: '[B] '}}

# ==================== 核心配置 ====================
# 基础配置
mode: rule
port: 7890
socks-port: 7891
redir-port: 7892
mixed-port: 7893
tproxy-port: 7895
ipv6: true
allow-lan: true
unified-delay: true
tcp-concurrent: true
log-level: warning
bind-address: "*"
find-process-mode: 'always'
global-client-fingerprint: chrome
keep-alive-interval: 15
keep-alive-idle: 600

# 认证配置
authentication:
  - s71557:s71557
skip-auth-prefixes:
  - 192.168.1.0/24
  - 192.168.31.0/24
  - 192.168.100.0/24
  - 127.0.0.1/8

# 实验性功能
experimental:
  quic-go-disable-gso: true
  
# 管理面板配置
external-ui-url: https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip
external-ui-name: zashboard
external-ui: ui
external-controller: 0.0.0.0:9090
secret: s71557

# 配置存储
profile:
  store-selected: true
  store-fake-ip: true
  
# 流量嗅探
sniffer:
  enable: true
  override-destination: false
  force-dns-mapping: true
  parse-pure-ip: true

# TUN模式配置
tun:
  enable: true
  stack: mixed
  dns-hijack:
    - "any:53"
    - "tcp://any:53"
  auto-route: true
  auto-redirect: true
  auto-detect-interface: true
    
# DNS配置
dns:
  enable: true
  ipv6: true
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  default-nameserver:
    - 119.29.29.29
    - 180.184.1.1
    - 223.5.5.5
  nameserver:
    - https://dns.alidns.com/dns-query
    - https://doh.pub/dns-query
  fake-ip-filter:
    - rule-set:connectivity-check
    - rule-set:private_domain
    - rule-set:cn_domain
    - +.miwifi.com
    - +.docker.io
    - +.market.xiaomi.com
    - +.push.apple.com

# 策略组 
proxy-groups:
  - {name: 默认代理,   <<: *SelectFB, icon: https://zl.shizongliang.cn/images/Static.png}
  - {name: AI平台,    <<: *SelectUS, include-all: true, filter: *FilterAll, icon: https://zl.shizongliang.cn/images/AI.png}
  - {name: Docker,   <<: *SelectFE, icon: https://zl.shizongliang.cn/images/docker.png}
  - {name: Github,   <<: *SelectFE, icon: https://zl.shizongliang.cn/images/GitHub.png}
  - {name: Emby,     <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/Emby.png}
  - {name: YouTube,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/YouTube.png}
  - {name: NetFlix,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/Netflix.png}
  - {name: 国际媒体,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/DomesticMedia.png}
  - {name: Telegram, <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/Telegram_X.png}
  - {name: Twitter,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/X.png}
  - {name: 社交平台,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/PBS.png}
  - {name: 货币平台,  <<: *SelectSG, icon: https://zl.shizongliang.cn/images/Bitcloud.png}
  - {name: 游戏平台,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/Game.png}
  - {name: 网速测试,  <<: *SelectProxy, include-all: true, filter: *FilterAll, icon: https://zl.shizongliang.cn/images/Speedtest.png}
  # 公司
  - {name: 微软服务,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/Microsoft.png}
  - {name: 谷歌服务,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/Google_Search.png}
  - {name: 苹果服务,  <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/Apple.png}
  - {name: 脸书服务,  <<: *SelectUS, icon: https://zl.shizongliang.cn/images/Facebook.png}
  # 地区策略
  - {name: 香港策略,  type: select, proxies: [香港智能, 香港自动, 香港均衡-散列, 香港均衡-轮询], include-all: true, filter: *FilterHK, icon: https://zl.shizongliang.cn/images/Hong_Kong.png}
  - {name: 新加坡策略,type: select, proxies: [新加坡智能, 新加坡自动, 新加坡均衡-散列, 新加坡均衡-轮询], include-all: true, filter: *FilterSG, icon: https://zl.shizongliang.cn/images/Singapore.png}
  - {name: 日本策略,  type: select, proxies: [日本智能, 日本自动, 日本均衡-散列, 日本均衡-轮询], include-all: true, filter: *FilterJP, icon: https://zl.shizongliang.cn/images/Japan.png}
  - {name: 韩国策略,  type: select, proxies: [韩国智能, 韩国自动, 韩国均衡-散列, 韩国均衡-轮询], include-all: true, filter: *FilterKR, icon: https://zl.shizongliang.cn/images/Korea.png}
  - {name: 美国策略,  type: select, proxies: [美国智能, 美国自动, 美国均衡-散列, 美国均衡-轮询], include-all: true, filter: *FilterUS, icon: https://zl.shizongliang.cn/images/United_States.png}
  - {name: 台湾策略,  type: select, proxies: [台湾智能, 台湾自动, 台湾均衡-散列, 台湾均衡-轮询], include-all: true, filter: *FilterTW, icon: https://zl.shizongliang.cn/images/Taiwan.png}
  - {name: 欧盟策略,  type: select, proxies: [欧盟智能, 欧盟自动, 欧盟均衡-散列, 欧盟均衡-轮询], include-all: true, filter: *FilterEU, icon: https://zl.shizongliang.cn/images/European_Union.png}
  - {name: 免费策略,  type: select, proxies: [免费智能, 免费自动, 免费均衡-散列, 免费均衡-轮询], include-all: true, filter: *FilterFE, icon: https://zl.shizongliang.cn/images/Cloudflare.png}
   # 其他策略
  - {name: 故障转移,  <<: *FallBack, proxies: [香港策略, 新加坡策略, 日本策略, 韩国策略, 美国策略, 台湾策略, 欧盟策略, 全球手动, 冷门自选, DIRECT], icon: https://zl.shizongliang.cn/images/ULB.png}
  - {name: 国内网站,  type: select, proxies: [DIRECT, 默认代理], icon: https://zl.shizongliang.cn/images/China.png}
  - {name: 国外网站,   <<: *SelectProxy, icon: https://zl.shizongliang.cn/images/Global.png}
  - {name: 全球手动,   type: select, include-all: true, filter: *FilterAll, icon: https://zl.shizongliang.cn/images/Clubhouse.png}
  - {name: 冷门自选,   type: select, include-all: true, filter: *FilterOther, icon: https://zl.shizongliang.cn/images/Europe_Map.png}
  - {name: 抖快书定位, type: select, proxies: [DIRECT, 香港策略, 台湾策略, 新加坡策略, 日本策略, 韩国策略, 美国策略, 欧盟策略], icon: https://zl.shizongliang.cn/images/Null_Nation.png}
  - {name: 漏网之鱼,   type: select, proxies: [默认代理, DIRECT], icon: https://zl.shizongliang.cn/images/Final.png}
  # Smart  
  - {name: 香港智能,   <<: *Smart, filter: *FilterHK, include-all: true, policy-priority: '花云:3;管人痴V6:2;IPLC:1', icon: https://zl.shizongliang.cn/images/Smart_logo.png}
  - {name: 台湾智能,   <<: *Smart, filter: *FilterTW, include-all: true, policy-priority: '花云:3;管人痴V6:2;IPLC:1', icon: https://zl.shizongliang.cn/images/Smart_logo.png}
  - {name: 新加坡智能, <<: *Smart, filter: *FilterSG, include-all: true, policy-priority: '花云:3;管人痴V6:2;IPLC:1', icon: https://zl.shizongliang.cn/images/Smart_logo.png}
  - {name: 日本智能,   <<: *Smart, filter: *FilterJP, include-all: true, policy-priority: '花云:3;管人痴V6:2;IPLC:1', icon: https://zl.shizongliang.cn/images/Smart_logo.png}
  - {name: 韩国智能,   <<: *Smart, filter: *FilterKR, include-all: true, policy-priority: '花云:3;管人痴V6:2;IPLC:1', icon: https://zl.shizongliang.cn/images/Smart_logo.png}
  - {name: 美国智能,   <<: *Smart, filter: *FilterUS, include-all: true, policy-priority: '花云:3;管人痴V6:2;IPLC:1', icon: https://zl.shizongliang.cn/images/Smart_logo.png}
  - {name: 欧盟智能,   <<: *Smart, filter: *FilterEU, include-all: true, policy-priority: '花云:3;管人痴V6:2;IPLC:1', icon: https://zl.shizongliang.cn/images/Smart_logo.png}
  - {name: 免费智能,   <<: *Smart, filter: *FilterFE, include-all: true, policy-priority: 'iKuuu:2;免费:1', icon: https://zl.shizongliang.cn/images/Smart_logo.png}
  # 自动测速
  - {name: 香港自动,        <<: *UrlTest, filter: *FilterHK, icon: https://zl.shizongliang.cn/images/Auto.png}
  - {name: 台湾自动,        <<: *UrlTest, filter: *FilterTW, icon: https://zl.shizongliang.cn/images/Auto.png}
  - {name: 新加坡自动,      <<: *UrlTest, filter: *FilterSG, icon: https://zl.shizongliang.cn/images/Auto.png}
  - {name: 日本自动,        <<: *UrlTest, filter: *FilterJP, icon: https://zl.shizongliang.cn/images/Auto.png}
  - {name: 韩国自动,        <<: *UrlTest, filter: *FilterKR, icon: https://zl.shizongliang.cn/images/Auto.png}
  - {name: 美国自动,        <<: *UrlTest, filter: *FilterUS, icon: https://zl.shizongliang.cn/images/Auto.png}
  - {name: 欧盟自动,        <<: *UrlTest, filter: *FilterEU, icon: https://zl.shizongliang.cn/images/Auto.png}
  - {name: 免费自动,        <<: *UrlTest, filter: *FilterFE, icon: https://zl.shizongliang.cn/images/Auto.png}
  # 负载均衡-散列
  - {name: 香港均衡-散列,   <<: *LoadBalanceCH, filter: *FilterHK, icon: https://zl.shizongliang.cn/images/Round_Robin_1.png}
  - {name: 台湾均衡-散列,   <<: *LoadBalanceCH, filter: *FilterTW, icon: https://zl.shizongliang.cn/images/Round_Robin_1.png}
  - {name: 新加坡均衡-散列, <<: *LoadBalanceCH, filter: *FilterSG, icon: https://zl.shizongliang.cn/images/Round_Robin_1.png}
  - {name: 日本均衡-散列,   <<: *LoadBalanceCH, filter: *FilterJP, icon: https://zl.shizongliang.cn/images/Round_Robin_1.png}
  - {name: 韩国均衡-散列,   <<: *LoadBalanceCH, filter: *FilterKR, icon: https://zl.shizongliang.cn/images/Round_Robin_1.png}
  - {name: 美国均衡-散列,   <<: *LoadBalanceCH, filter: *FilterUS, icon: https://zl.shizongliang.cn/images/Round_Robin_1.png}
  - {name: 欧盟均衡-散列,   <<: *LoadBalanceCH, filter: *FilterEU, icon: https://zl.shizongliang.cn/images/Round_Robin_1.png}
  - {name: 免费均衡-散列,   <<: *LoadBalanceCH, filter: *FilterFE, icon: https://zl.shizongliang.cn/images/Round_Robin_1.png}
  # 负载均衡-轮询
  - {name: 香港均衡-轮询,   <<: *LoadBalanceCR, filter: *FilterHK, icon: https://zl.shizongliang.cn/images/Round_Robin.png}
  - {name: 台湾均衡-轮询,   <<: *LoadBalanceCR, filter: *FilterTW, icon: https://zl.shizongliang.cn/images/Round_Robin.png}
  - {name: 新加坡均衡-轮询, <<: *LoadBalanceCR, filter: *FilterSG, icon: https://zl.shizongliang.cn/images/Round_Robin.png}
  - {name: 日本均衡-轮询,   <<: *LoadBalanceCR, filter: *FilterJP, icon: https://zl.shizongliang.cn/images/Round_Robin.png}
  - {name: 韩国均衡-轮询,   <<: *LoadBalanceCR, filter: *FilterKR, icon: https://zl.shizongliang.cn/images/Round_Robin.png}
  - {name: 美国均衡-轮询,   <<: *LoadBalanceCR, filter: *FilterUS, icon: https://zl.shizongliang.cn/images/Round_Robin.png}
  - {name: 欧盟均衡-轮询,   <<: *LoadBalanceCR, filter: *FilterEU, icon: https://zl.shizongliang.cn/images/Round_Robin.png}
  - {name: 免费均衡-轮询,   <<: *LoadBalanceCR, filter: *FilterFE, icon: https://zl.shizongliang.cn/images/Round_Robin.png}

# 远程规则集
rule-providers: 
  Stone:                     {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/st/mihomo/rules/Stone.yaml}
  Stone_Proxy:               {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/st/mihomo/rules/Stone_Proxy.yaml}
  Docker:                    {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/st/mihomo/rules/Docker.yaml}
  download:                  {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/download.yaml}
  location_ip:               {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/location_ip.yaml}
  XPTV:                      {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/XPTV.yaml}
  fix-direct:                {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/fix-direct.yaml}
  Line:                      {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/Line.yaml}
  speedtest:                 {<<: *ClassicalYaml, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/speedtest.yaml}
  emby:                      {<<: *ClassicalText, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/emby.list}
  openai:                    {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/openai.mrs}
  telegram:                  {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/telegram.mrs}
  twitter:                   {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/twitter.mrs}
  instagram:                 {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/instagram.mrs}
  youtube:                   {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/youtube.mrs}
  spotify:                   {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/spotify.mrs}
  netflix:                   {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/netflix.mrs}
  disney:                    {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/disney.mrs}
  hbo:                       {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/hbo.mrs}
  tiktok:                    {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/tiktok.mrs}
  github:                    {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/github.mrs}
  onedrive:                  {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/onedrive.mrs}
  microsoft:                 {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/microsoft.mrs}
  facebook:                  {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/facebook.mrs}
  meta:                      {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/meta.mrs}
  google:                    {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/google.mrs}
  apple-cn:                  {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/apple-cn.mrs}
  apple:                     {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/apple.mrs}
  paypal@cn:                 {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/paypal@cn.mrs}
  paypal:                    {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/paypal.mrs}
  cloudflare-cn:             {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/cloudflare-cn.mrs}
  category-public-tracker:   {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/category-public-tracker.mrs}
  category-games:            {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/category-games.mrs}
  category-cryptocurrency:   {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/category-cryptocurrency.mrs}
  category-social-media-!cn: {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/category-social-media-!cn.mrs}
  category-ai-!cn:           {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/category-ai-!cn.mrs}
  geolocation-!cn:           {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/geolocation-!cn.mrs}
  connectivity-check:        {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/connectivity-check.mrs}
  private_domain:            {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/private.mrs}
  cn_domain:                 {<<: *DomainMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/cn.mrs}
  # IP规则集
  facebook_ip:               {<<: *IPcidrMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/facebook_ip.mrs}
  google_ip:                 {<<: *IPcidrMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/google_ip.mrs}
  netflix_ip:                {<<: *IPcidrMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/netflix_ip.mrs}
  twitter_ip:                {<<: *IPcidrMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/twitter_ip.mrs}
  telegram_ip:               {<<: *IPcidrMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/telegram_ip.mrs}
  private_ip:                {<<: *IPcidrMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/private_ip.mrs}
  cn_ip:                     {<<: *IPcidrMrs, url: https://github.com/stone6689/YYDS/raw/main/mihomo/rules/cn_ip.mrs}

# 路由
rules:
  # 常用必备
  - DST-PORT,123,DIRECT
  - DOMAIN-SUFFIX,imee.me,DIRECT
  # 防御
  - RULE-SET,category-public-tracker,REJECT-DROP
  # 域名路由
  - RULE-SET,Stone,DIRECT
  - RULE-SET,Stone_Proxy,国际媒体
  - RULE-SET,Docker,Docker
  - RULE-SET,fix-direct,DIRECT
  - RULE-SET,XPTV,DIRECT
  - RULE-SET,location_ip,抖快书定位
  - RULE-SET,speedtest,网速测试
  - RULE-SET,openai,AI平台
  - RULE-SET,category-ai-!cn,AI平台
  - RULE-SET,telegram,Telegram
  - RULE-SET,twitter,Twitter
  - RULE-SET,emby,Emby
  - RULE-SET,youtube,YouTube
  - RULE-SET,spotify,国际媒体
  - RULE-SET,netflix,NetFlix
  - RULE-SET,disney,国际媒体
  - RULE-SET,hbo,国际媒体
  - RULE-SET,tiktok,国际媒体
  - RULE-SET,github,Github
  - RULE-SET,onedrive,微软服务
  - RULE-SET,microsoft,微软服务
  - RULE-SET,instagram,脸书服务
  - RULE-SET,facebook,脸书服务
  - RULE-SET,meta,脸书服务
  - RULE-SET,google,谷歌服务
  - RULE-SET,apple-cn,国内网站
  - RULE-SET,apple,苹果服务
  - RULE-SET,paypal@cn,国内网站
  - RULE-SET,paypal,货币平台
  - RULE-SET,category-cryptocurrency,货币平台
  - RULE-SET,cloudflare-cn,国内网站
  - RULE-SET,category-games,游戏平台
  - RULE-SET,Line,社交平台
  - RULE-SET,category-social-media-!cn,社交平台
  - RULE-SET,download,DIRECT
  - RULE-SET,cn_domain,国内网站
  - RULE-SET,geolocation-!cn,国外网站
  # IP路由
  - RULE-SET,private_ip,国内网站,no-resolve
  - RULE-SET,facebook_ip,脸书服务,no-resolve
  - RULE-SET,google_ip,谷歌服务,no-resolve
  - RULE-SET,netflix_ip,NetFlix,no-resolve
  - RULE-SET,twitter_ip,Twitter,no-resolve
  - RULE-SET,telegram_ip,Telegram,no-resolve
  - RULE-SET,cn_ip,国内网站,no-resolve
  - MATCH,漏网之鱼
