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: 8c65f2f39c.m.ctrip.com
  udp: true
- 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: 8c65f2f39c.m.ctrip.com
  udp: true
- 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: 8c65f2f39c.m.ctrip.com
  udp: true
- 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: 8c65f2f39c.m.ctrip.com
  udp: true
- name: JP备用01
  type: anytls
  server: 85.149.218.124
  port: 44898
  password: a4adf959-f282-471e-aa6d-d02146171a74
  udp: true
  sni: cache-proxy.ahdohpiechei.com
  skip-cert-verify: true
- name: JP备用02
  type: anytls
  server: 85.149.218.124
  port: 45382
  password: a4adf959-f282-471e-aa6d-d02146171a74
  udp: true
  sni: cache-proxy.ahdohpiechei.com
  skip-cert-verify: true
- name: US备用01
  type: anytls
  server: 85.149.218.124
  port: 43727
  password: a4adf959-f282-471e-aa6d-d02146171a74
  udp: true
  sni: cache-proxy.ahdohpiechei.com
  skip-cert-verify: true
- name: US备用02
  type: anytls
  server: 85.149.218.124
  port: 57339
  password: a4adf959-f282-471e-aa6d-d02146171a74
  udp: true
  sni: cache-proxy.ahdohpiechei.com
  skip-cert-verify: true
- 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: /0b95429d-fb7b-5c42-b9d2-09e7d9538070
    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: /627491bf-5840-5255-8c29-d055299cb1bf
    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: KR中转01
  type: vmess
  server: 120.232.202.14
  port: 8059
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /3ff53f15-4c9a-45b0-99ad-c8dfa3825d8f
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: KR中转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: /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: /c1c592aa-575d-5830-aec5-6de129ba7f2c
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: SG中转02
  type: vmess
  server: 120.232.202.14
  port: 8061
  cipher: aes-128-gcm
  uuid: 08c97f35-8174-44f6-a2b9-ce248cf519eb
  alterId: 0
  network: ws
  ws-opts:
    path: /3ff53f15-4c9a-45b0-99ad-c8dfa3825d8f
    headers:
      Host: tms.dingtalk.com
  udp: true
- name: US中转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: /871605c2-5b56-52e0-8b15-c480f22d88c3
    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"
      - "JP备用01"
      - "JP备用02"
      - "US备用01"
      - "US备用02"
      - "HK中转01"
      - "HK中转02"
      - "JP中转01"
      - "JP中转02"
      - "KR中转01"
      - "KR中转02"
      - "SG中转01"
      - "SG中转02"
      - "US中转01"
      - "US中转02"
      - "GB中转01"
  - name: 🎯 手动选择
    type: select
    proxies:
      - "HK专线01"
      - "JP专线01"
      - "SG专线01"
      - "US专线01"
      - "JP备用01"
      - "JP备用02"
      - "US备用01"
      - "US备用02"
      - "HK中转01"
      - "HK中转02"
      - "JP中转01"
      - "JP中转02"
      - "KR中转01"
      - "KR中转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"
  - name: 🇯🇵 日本节点
    type: select
    proxies:
      - "JP专线01"
      - "JP备用01"
      - "JP备用02"
      - "JP中转01"
      - "JP中转02"
  - name: 🇸🇬 新加坡节点
    type: select
    proxies:
      - "SG专线01"
      - "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