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: 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: 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: 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: SG备用01
  type: vless
  server: 152.175.13.8
  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: SG备用02
  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: 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: 7587
  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: eIoCcSuOiE-N7TjMtBADLOoWLh7Fqi67GE-uX1ARhyI
    short-id: 21e534fa0bd78697
  client-fingerprint: chrome
  network: tcp
  servername: www.apple.com
- name: HK中转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: /407a2d9d-fee4-5d45-a787-8158bc39b597
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: HK中转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: /c1b2dfe9-1c7d-51d5-8f7c-b3339272ddb4
    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: /fd968c3a-b965-579f-8c82-75670fd11eef
    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: /f2a1ea72-960b-50df-922f-f94db85815c5
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: KR中转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: /274a7731-03a7-5585-8461-b34b7512a701
    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: /b17d3a59-0106-59a8-84a9-b715cd3cfc1d
    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: /c1c592aa-575d-5830-aec5-6de129ba7f2c
    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: /961fec53-0864-5d90-9da9-8bc55e926e45
    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"
      - "KR中转01"
      - "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"
      - "KR中转01"
      - "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