mixed-port: 7890

allow-lan: true

mode: rule

log-level: info

ipv6: false

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

dns:
  enable: true
  enhanced-mode: fake-ip
  nameserver:
    - 223.5.5.5
    - 1.1.1.1

proxies:
- name: 🇭🇰HK香港NW01
  type: vless
  server: aws-sg-apccd.domestic.nowhere-backend.xyz
  port: 8850
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: OZ_b_-5Y13dxWmoCt6O-e_LR1zFqQkoLQEPVu3LfBzg
    short-id: a705f8454a183dd4
  client-fingerprint: chrome
  network: tcp
  servername: gateway.icloud.com
- name: 🇭🇰HK香港NW02
  type: vless
  server: aws-sg-apccd.domestic.nowhere-backend.xyz
  port: 9417
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: evMHV07qo64e9jr6BeoeY0Oved-zo0gG8Wpq5-klMgM
    short-id: ad22ba9b52d7435d
  client-fingerprint: chrome
  network: tcp
  servername: dl.google.com
- name: 🇼🇸TW台湾NW01
  type: vless
  server: aws-sg-apccd.domestic.nowhere-backend.xyz
  port: 5045
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: dXSlA1oCoZUnqTpBAhNTUsmL5_DlFtnF7DbCg9jYd3k
    short-id: 26ee50ce4d072b89
  client-fingerprint: chrome
  network: tcp
  servername: gateway.icloud.com
- name: 🇼🇸TW台湾NW02
  type: vless
  server: aws-sg-apccd.domestic.nowhere-backend.xyz
  port: 6128
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: A_2BYwcaV6KJMA8uvwIovEOVNA_NGMalda4WYr2YokA
    short-id: 14b589ce356132e3
  client-fingerprint: chrome
  network: tcp
  servername: ajax.microsoft.com
- name: 🇸🇬SG狮城NW01
  type: vless
  server: aws-sg-apccd.domestic.nowhere-backend.xyz
  port: 9467
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: qtcBUnnONu0zgc3YCB3SBESQJvOUGMaK2jOmCuaiCRQ
    short-id: 54598d3ec9d7f209
  client-fingerprint: chrome
  network: tcp
  servername: www.cloudflare.com
- name: 🇸🇬SG狮城NW02
  type: vless
  server: aws-sg-apccd.domestic.nowhere-backend.xyz
  port: 7409
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: 6kw0oWDbY1Z-cd0yCa9QXB_ll1_f9NYISGlORtDU8Hw
    short-id: 5705126b86857079
  client-fingerprint: chrome
  network: tcp
  servername: www.microsoft.com
- name: 🇯🇵JP日本NW01
  type: vless
  server: cdn-jp-hr5k.domestic.nowhere-backend.xyz
  port: 7185
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: m0IRiI3EipRwvNHd1dJIm7iCxpz-ny-kaFNdPkTwtBI
    short-id: 0dbf5cab8ac47793
  client-fingerprint: chrome
  network: tcp
  servername: swdist.apple.com
- name: 🇯🇵JP日本NW02
  type: vless
  server: cdn-jp-hr5k.domestic.nowhere-backend.xyz
  port: 7397
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: alA-RnK0ssRMoKgDFmr4JndXCCojboQ-chXF5Xgvy0M
    short-id: 1b1e8a3dccc86ccd
  client-fingerprint: chrome
  network: tcp
  servername: www.apple.com
- name: 🇺🇸US美国NW01
  type: vless
  server: cdn-jp-hr5k.domestic.nowhere-backend.xyz
  port: 9559
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: CQaaERP19MvGGrGrGUFVPZyC-Yfx2XsnobpDmBgh3gw
    short-id: da843aee6f5e26e6
  client-fingerprint: chrome
  network: tcp
  servername: gateway.icloud.com
- name: 🇺🇸US美国NW02
  type: vless
  server: cdn-jp-hr5k.domestic.nowhere-backend.xyz
  port: 7222
  uuid: a4adf959-f282-471e-aa6d-d02146171a74
  alterId: 0
  cipher: auto
  udp: true
  flow: xtls-rprx-vision
  encryption: none
  tls: true
  skip-cert-verify: false
  reality-opts:
    public-key: -y_sGlu-aD3MBve2LMP6ihYk7U3QUQn3ZUzxGOhu-RU
    short-id: 1df922e6ef69fd9b
  client-fingerprint: chrome
  network: tcp
  servername: www.microsoft.com
- name: 🇭🇰HK香港PR01
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /3d12cad2-05d4-469e-b5b4-05ebff3fbf9e
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇭🇰HK香港PR02
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /16a63e68-73aa-4903-8246-734447385c6c
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇼🇸TW台湾PR01
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /8fa09dd1-1631-5ed4-9de3-bd8faa585dbd
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇼🇸TW台湾PR02
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /9fa3a7b0-c800-50e3-8dc7-6fa584ee1d53
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇸🇬SG狮城PR01
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /4974fc04-f192-44fd-bf9f-5228e2d36dab
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇸🇬SG狮城PR02
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /c1c592aa-575d-5830-aec5-6de129ba7f2c
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇯🇵JP日本PR01
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /48b27e9e-1e69-5cc0-998f-6f1d1138a029
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇯🇵JP日本PR02
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /f2a1ea72-960b-50df-922f-f94db85815c5
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇺🇸US美国PR01
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /31f83ea2-6059-5c83-8271-b26b4eb00f99
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: 🇺🇸US美国PR02
  type: vmess
  server: 183.232.141.132
  port: 21331
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  cipher: auto
  network: ws
  ws-opts:
    path: /961fec53-0864-5d90-9da9-8bc55e926e45
    headers:
      Host: tms.dingtalk.com
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇭🇰HK香港IF01
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 49556
  server: a4d1dff4-1aba-4f0b-80f2-d8d392ea6c0b.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇭🇰HK香港IF02
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 49556
  server: f4dbeaed-e4c1-4a3a-a21b-0d6fef2b0db0.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇼🇸TW台湾IF01
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 38239
  server: f4dbeaed-e4c1-4a3a-a21b-0d6fef2b0db0.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇼🇸TW台湾IF02
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 38239
  server: a4d1dff4-1aba-4f0b-80f2-d8d392ea6c0b.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇸🇬SG狮城IF01
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 35531
  server: a4d1dff4-1aba-4f0b-80f2-d8d392ea6c0b.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇸🇬SG狮城IF02
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 33288
  server: a4d1dff4-1aba-4f0b-80f2-d8d392ea6c0b.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇯🇵JP日本IF01
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 49816
  server: f4dbeaed-e4c1-4a3a-a21b-0d6fef2b0db0.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇯🇵JP日本IF02
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 49816
  server: a4d1dff4-1aba-4f0b-80f2-d8d392ea6c0b.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇺🇸US美国IF01
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 30198
  server: f4dbeaed-e4c1-4a3a-a21b-0d6fef2b0db0.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true
- alpn:
  - h2
  - http/1.1
  client-fingerprint: chrome
  name: 🇺🇸US美国IF02
  password: 54395053-7086-4f39-b05e-cb4aad2c89b2
  port: 30198
  server: a4d1dff4-1aba-4f0b-80f2-d8d392ea6c0b.kunlun-oss.com
  skip-cert-verify: true
  sni: mpvideo.qpic.cn
  type: anytls
  udp: true

proxy-groups:

  - name: 🚀 节点选择
    type: select
    proxies:
      - ♻️ 自动选择
      - 🎯 手动选择
      - 🛡️ 故障转移
      - 🇭🇰 香港节点
      - 🇯🇵 日本节点
      - 🇸🇬 新加坡节点
      - 🇺🇸 美国节点
      - DIRECT

  - name: ♻️ 自动选择
    type: url-test
    url: https://www.youtube.com/generate_204
    interval: 300
    tolerance: 50
    proxies:
      - "🇭🇰HK香港NW01"
      - "🇭🇰HK香港NW02"
      - "🇼🇸TW台湾NW01"
      - "🇼🇸TW台湾NW02"
      - "🇸🇬SG狮城NW01"
      - "🇸🇬SG狮城NW02"
      - "🇯🇵JP日本NW01"
      - "🇯🇵JP日本NW02"
      - "🇺🇸US美国NW01"
      - "🇺🇸US美国NW02"
      - "🇭🇰HK香港PR01"
      - "🇭🇰HK香港PR02"
      - "🇼🇸TW台湾PR01"
      - "🇼🇸TW台湾PR02"
      - "🇸🇬SG狮城PR01"
      - "🇸🇬SG狮城PR02"
      - "🇯🇵JP日本PR01"
      - "🇯🇵JP日本PR02"
      - "🇺🇸US美国PR01"
      - "🇺🇸US美国PR02"
  - name: 🎯 手动选择
    type: select
    proxies:
      - "🇭🇰HK香港NW01"
      - "🇭🇰HK香港NW02"
      - "🇼🇸TW台湾NW01"
      - "🇼🇸TW台湾NW02"
      - "🇸🇬SG狮城NW01"
      - "🇸🇬SG狮城NW02"
      - "🇯🇵JP日本NW01"
      - "🇯🇵JP日本NW02"
      - "🇺🇸US美国NW01"
      - "🇺🇸US美国NW02"
      - "🇭🇰HK香港PR01"
      - "🇭🇰HK香港PR02"
      - "🇼🇸TW台湾PR01"
      - "🇼🇸TW台湾PR02"
      - "🇸🇬SG狮城PR01"
      - "🇸🇬SG狮城PR02"
      - "🇯🇵JP日本PR01"
      - "🇯🇵JP日本PR02"
      - "🇺🇸US美国PR01"
      - "🇺🇸US美国PR02"
  - name: 🛡️ 故障转移
    type: fallback
    url: https://www.youtube.com/generate_204
    interval: 300
    proxies:
      - ♻️ 自动选择
      - 🇭🇰 香港节点
      - 🇯🇵 日本节点
      - 🇸🇬 新加坡节点
      - 🇺🇸 美国节点
      - DIRECT

  - name: 🇭🇰 香港节点
    type: select
    proxies:
      - "🇭🇰HK香港NW01"
      - "🇭🇰HK香港NW02"
      - "🇭🇰HK香港PR01"
      - "🇭🇰HK香港PR02"
  - name: 🇯🇵 日本节点
    type: select
    proxies:
      - "🇯🇵JP日本NW01"
      - "🇯🇵JP日本NW02"
      - "🇯🇵JP日本PR01"
      - "🇯🇵JP日本PR02"
  - name: 🇸🇬 新加坡节点
    type: select
    proxies:
      - "🇸🇬SG狮城NW01"
      - "🇸🇬SG狮城NW02"
      - "🇸🇬SG狮城PR01"
      - "🇸🇬SG狮城PR02"
  - name: 🇺🇸 美国节点
    type: select
    proxies:
      - "🇺🇸US美国NW01"
      - "🇺🇸US美国NW02"
      - "🇺🇸US美国PR01"
      - "🇺🇸US美国PR02"
  - name: 🤖 AI服务
    type: select
    proxies:
      - ♻️ 自动选择
      - 🛡️ 故障转移
      - 🇺🇸 美国节点
      - 🇯🇵 日本节点
      - 🚀 节点选择

  - name: 🌐 Google
    type: select
    proxies:
      - ♻️ 自动选择
      - 🛡️ 故障转移
      - 🇺🇸 美国节点
      - 🇯🇵 日本节点
      - 🚀 节点选择

  - name: 🎬 流媒体
    type: select
    proxies:
      - ♻️ 自动选择
      - 🛡️ 故障转移
      - 🇭🇰 香港节点
      - 🇯🇵 日本节点
      - 🇺🇸 美国节点
      - 🚀 节点选择

  - name: 💬 Telegram
    type: select
    proxies:
      - ♻️ 自动选择
      - 🛡️ 故障转移
      - 🇸🇬 新加坡节点
      - 🇯🇵 日本节点
      - 🚀 节点选择

  - name: 🍎 Apple
    type: select
    proxies:
      - DIRECT
      - 🚀 节点选择

  - name: 🪟 Microsoft
    type: select
    proxies:
      - DIRECT
      - 🚀 节点选择

  - name: 🔚 Final
    type: select
    proxies:
      - 🚀 节点选择
      - ♻️ 自动选择
      - 🎯 手动选择
      - 🛡️ 故障转移
      - DIRECT


rule-providers:

  Apple:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Apple/Apple.yaml
    path: ./ruleset/apple.yaml
    interval: 86400

  Microsoft:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Microsoft/Microsoft.yaml
    path: ./ruleset/microsoft.yaml
    interval: 86400

  Google:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Google/Google.yaml
    path: ./ruleset/google.yaml
    interval: 86400

  GitHub:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/GitHub/GitHub.yaml
    path: ./ruleset/github.yaml
    interval: 86400

  AI:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/AI/AI.yaml
    path: ./ruleset/ai.yaml
    interval: 86400

  Telegram:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Telegram/Telegram.yaml
    path: ./ruleset/telegram.yaml
    interval: 86400

  GlobalMedia:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/GlobalMedia/GlobalMedia.yaml
    path: ./ruleset/globalmedia.yaml
    interval: 86400


rules:

  - RULE-SET,Apple,🍎 Apple

  - RULE-SET,Microsoft,🪟 Microsoft

  - RULE-SET,AI,🤖 AI服务

  - RULE-SET,Google,🌐 Google

  - RULE-SET,Telegram,💬 Telegram

  - RULE-SET,GlobalMedia,🎬 流媒体

  - RULE-SET,GitHub,🚀 节点选择

  - GEOIP,CN,DIRECT

  - MATCH,🔚 Final