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专线01
  server: 7d0a2gz0-7a0c.aws-agent.net
  port: 10011
  type: ss
  cipher: aes-128-gcm
  password: Sj10bnYDe7w6V29E
  plugin: obfs
  plugin-opts:
    mode: http
    host: af1691488c.m.ctrip.com
  udp: false
- name: JP专线01
  server: 63182sh8-4d7b.aws-agent.net
  port: 10021
  type: ss
  cipher: aes-128-gcm
  password: Sj10bnYDe7w6V29E
  plugin: obfs
  plugin-opts:
    mode: http
    host: af1691488c.m.ctrip.com
  udp: false
- name: SG专线01
  server: 7d0a2gz0-7a0c.aws-agent.net
  port: 10031
  type: ss
  cipher: aes-128-gcm
  password: Sj10bnYDe7w6V29E
  plugin: obfs
  plugin-opts:
    mode: http
    host: af1691488c.m.ctrip.com
  udp: false
- name: US专线01
  server: 63182sh8-4d7b.aws-agent.net
  port: 10051
  type: ss
  cipher: aes-128-gcm
  password: Sj10bnYDe7w6V29E
  plugin: obfs
  plugin-opts:
    mode: http
    host: af1691488c.m.ctrip.com
  udp: false
- name: HK备用01
  type: vless
  server: 152.175.13.8
  port: 6736
  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: eQl-SJK4p72OE9NDNbyaCb-9uURzKk3DNL9tF1qW02A
    short-id: 68afe7c9144f83e8
  client-fingerprint: chrome
  network: tcp
  servername: www.microsoft.com
- name: HK备用02
  type: vless
  server: 152.175.13.8
  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: JP备用01
  type: vless
  server: 85.149.218.28
  port: 5226
  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: SO7FOs2Fz3mmISk01G4seBNUWFPgfutqIqkJn5dX0GE
    short-id: a5f7966b85165587
  client-fingerprint: chrome
  network: tcp
  servername: download-porter.hoyoverse.com
- name: JP备用02
  type: vless
  server: 85.149.218.28
  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: SG备用01
  type: vless
  server: 152.175.13.8
  port: 8606
  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: 4dK1xO104hknltn7P8aBYjgag-sTCcboM9zCte8vJzc
    short-id: e96c9e2cd094d338
  client-fingerprint: chrome
  network: tcp
  servername: dl.google.com
- name: SG备用02
  type: vless
  server: 152.175.13.8
  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: US备用01
  type: vless
  server: 216.23.82.107
  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备用02
  type: vless
  server: 216.23.82.107
  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中转01
  type: vmess
  server: 82.109.227.89
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /c1b2dfe9-1c7d-51d5-8f7c-b3339272ddb4
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: HK中转02
  type: vmess
  server: 82.109.227.64
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /c8462d65-0e61-5eff-bb73-4afd084f3e68
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: JP中转01
  type: vmess
  server: 82.109.227.89
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /f2a1ea72-960b-50df-922f-f94db85815c5
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: JP中转02
  type: vmess
  server: 82.109.227.89
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /48b27e9e-1e69-5cc0-998f-6f1d1138a029
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: SG中转01
  type: vmess
  server: 82.109.227.64
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /c1c592aa-575d-5830-aec5-6de129ba7f2c
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: SG中转02
  type: vmess
  server: 82.109.227.64
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /b17d3a59-0106-59a8-84a9-b715cd3cfc1d
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: US中转01
  type: vmess
  server: 82.109.227.64
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /8636cf92-d82b-5288-835a-acdba0d05889
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: US中转02
  type: vmess
  server: 82.109.227.64
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /fd9ba1b8-fc82-52ff-b5fa-594377428617
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: GB中转01
  type: vmess
  server: 82.109.227.64
  port: 8080
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /78a5b4ff-0d73-5cdd-805e-c569b63e207a
    headers:
      Host: tms.dingtalk.com
  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专线01"
      - "JP专线01"
      - "SG专线01"
      - "US专线01"
      - "HK备用01"
      - "HK备用02"
      - "JP备用01"
      - "JP备用02"
      - "SG备用01"
      - "SG备用02"
      - "US备用01"
      - "US备用02"
      - "HK中转01"
      - "HK中转02"
      - "JP中转01"
      - "JP中转02"
      - "SG中转01"
      - "SG中转02"
      - "US中转01"
      - "US中转02"
      - "GB中转01"
  - name: 🎯 手动选择
    type: select
    proxies:
      - "HK专线01"
      - "JP专线01"
      - "SG专线01"
      - "US专线01"
      - "HK备用01"
      - "HK备用02"
      - "JP备用01"
      - "JP备用02"
      - "SG备用01"
      - "SG备用02"
      - "US备用01"
      - "US备用02"
      - "HK中转01"
      - "HK中转02"
      - "JP中转01"
      - "JP中转02"
      - "SG中转01"
      - "SG中转02"
      - "US中转01"
      - "US中转02"
      - "GB中转01"
  - name: 🛡️ 故障转移
    type: fallback
    url: https://www.youtube.com/generate_204
    interval: 300
    proxies:
      - ♻️ 自动选择
      - 🇭🇰 香港节点
      - 🇯🇵 日本节点
      - 🇸🇬 新加坡节点
      - 🇺🇸 美国节点
      - DIRECT

  - name: 🇭🇰 香港节点
    type: select
    proxies:
      - "HK专线01"
      - "HK备用01"
      - "HK备用02"
      - "HK中转01"
      - "HK中转02"
  - name: 🇯🇵 日本节点
    type: select
    proxies:
      - "JP专线01"
      - "JP备用01"
      - "JP备用02"
      - "JP中转01"
      - "JP中转02"
  - name: 🇸🇬 新加坡节点
    type: select
    proxies:
      - "SG专线01"
      - "SG备用01"
      - "SG备用02"
      - "SG中转01"
      - "SG中转02"
  - name: 🇺🇸 美国节点
    type: select
    proxies:
      - "US专线01"
      - "US备用01"
      - "US备用02"
      - "US中转01"
      - "US中转02"
  - 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