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":"香港专线","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":"日本专线","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":"狮城专线","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":"美国专线","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":"台湾备用","type":"vmess","server":"120.240.141.17","port":8072,"cipher":"aes-128-gcm","uuid":"d40d7099-be60-4b4f-8b41-e192bb39ef81","alterId":0,"network":"ws","ws-opts":{"path":"/3ff53f15-4c9a-45b0-99ad-c8dfa3825d8f","headers":{"Host":"tms.dingtalk.com"}},"udp":true}
  - {"name":"狮城备用","type":"vmess","server":"120.240.141.17","port":8063,"cipher":"aes-128-gcm","uuid":"d40d7099-be60-4b4f-8b41-e192bb39ef81","alterId":0,"network":"ws","ws-opts":{"path":"/3ff53f15-4c9a-45b0-99ad-c8dfa3825d8f","headers":{"Host":"tms.dingtalk.com"}},"udp":true}
  - {"name":"日本备用","type":"vmess","server":"120.240.141.17","port":8053,"cipher":"aes-128-gcm","uuid":"d40d7099-be60-4b4f-8b41-e192bb39ef81","alterId":0,"network":"ws","ws-opts":{"path":"/3ff53f15-4c9a-45b0-99ad-c8dfa3825d8f","headers":{"Host":"tms.dingtalk.com"}},"udp":true}
  - {"name":"美国备用","type":"vmess","server":"120.240.141.17","port":8033,"cipher":"aes-128-gcm","uuid":"d40d7099-be60-4b4f-8b41-e192bb39ef81","alterId":0,"network":"ws","ws-opts":{"path":"/3ff53f15-4c9a-45b0-99ad-c8dfa3825d8f","headers":{"Host":"tms.dingtalk.com"}},"udp":true}
  - {"type":"trojan","password":"C969E66F-844F-DC7A-20EB-7289B34DC9A7","server":"oracle-gz.linkcubecloud.org","port":8400,"name":"台湾专线","skip-cert-verify":true,"sni":"cos.ap-guangzhou.myqcloud.com","udp":true,"network":"tcp"}
  - {"name":"狮城直连","type":"anytls","server":"sg-aws.xn--9kqp42aims.top","port":22712,"password":"7fe32c95-5838-42ca-bc0a-1608595a02ca","client-fingerprint":"chrome","udp":true,"alpn":["h2","http/1.1"],"sni":"gw.alicdn.com","skip-cert-verify":true}
  - {"name":"日本直连","type":"anytls","server":"awsjptest.qqa456.com","port":45677,"password":"7fe32c95-5838-42ca-bc0a-1608595a02ca","client-fingerprint":"chrome","udp":true,"alpn":["h2","http/1.1"],"sni":"gw.alicdn.com","skip-cert-verify":true}
  - {"name":"香港直连","server":"38.6.219.47","port":20000,"ports":"20000-55000","mport":"20000-55000","udp":true,"skip-cert-verify":true,"sni":"gw.alicdn.com","type":"hysteria2","password":"7fe32c95-5838-42ca-bc0a-1608595a02ca","obfs":"salamander","obfs-password":"OTA2ZjRiOGQ7MWYxOmQyZA=="}
  - {"name":"美国直连","server":"107.172.252.201","port":20000,"ports":"20000-55000","mport":"20000-55000","udp":true,"skip-cert-verify":true,"sni":"gw.alicdn.com","type":"hysteria2","password":"7fe32c95-5838-42ca-bc0a-1608595a02ca","obfs":"salamander","obfs-password":"OTA2ZjRiOGQ5MWYxNmQyZA=="}


proxy-groups:

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


  - name: ♻️ 自动选择
    type: url-test
    url: https://www.gstatic.com/generate_204
    interval: 300
    tolerance: 50
    proxies:
      - "香港专线"
      - "日本专线"
      - "狮城专线"
      - "美国专线"
      - "台湾备用"
      - "狮城备用"
      - "日本备用"
      - "美国备用"
      - "台湾专线"
      - "狮城直连"
      - "日本直连"
      - "香港直连"
      - "美国直连"


  - name: 🛡️ 故障转移
    type: fallback
    url: https://www.gstatic.com/generate_204
    interval: 300
    proxies:
      - ♻️ 自动选择
      - 🇭🇰 香港节点
      - 🇯🇵 日本节点
      - 🇸🇬 新加坡节点
      - 🇺🇸 美国节点
      - DIRECT


  - name: 🇭🇰 香港节点
    type: select
    proxies:
      - "香港专线"
      - "香港直连"


  - name: 🇯🇵 日本节点
    type: select
    proxies:
      - "日本专线"
      - "日本备用"
      - "日本直连"


  - name: 🇸🇬 新加坡节点
    type: select
    proxies:
      - "狮城专线"
      - "狮城备用"
      - "狮城直连"


  - name: 🇺🇸 美国节点
    type: select
    proxies:
      - "美国专线"
      - "美国备用"
      - "美国直连"


  - 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
      - 🚀 节点选择



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,🚀 节点选择