添加 clash.yaml
This commit is contained in:
215
clash.yaml
Normal file
215
clash.yaml
Normal file
@@ -0,0 +1,215 @@
|
|||||||
|
port: 7890
|
||||||
|
socks-port: 7891
|
||||||
|
allow-lan: true
|
||||||
|
mode: rule
|
||||||
|
log-level: info
|
||||||
|
external-controller: :9090
|
||||||
|
|
||||||
|
# ---------------------------------------------------
|
||||||
|
# 策略组
|
||||||
|
# ---------------------------------------------------
|
||||||
|
proxy-groups:
|
||||||
|
# --- 1. 核心入口 ---
|
||||||
|
- name: 🚀 节点选择
|
||||||
|
type: select
|
||||||
|
proxies:
|
||||||
|
- ♻️ 自动选择
|
||||||
|
- 🖐 手动选择
|
||||||
|
- 🤖 AI 人工智能
|
||||||
|
- 🎬 流媒体服务
|
||||||
|
- 🇭🇰 香港节点
|
||||||
|
- 🇯🇵 日本节点
|
||||||
|
- 🇺🇸 美国节点
|
||||||
|
- 🇸🇬 新加坡节点
|
||||||
|
- 🌍 其他地区
|
||||||
|
- DIRECT
|
||||||
|
include-all: true
|
||||||
|
|
||||||
|
# --- 2. 全量手动选择 (救急用) ---
|
||||||
|
- name: 🖐 手动选择
|
||||||
|
type: select
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)^(?!.*(剩余|到期|重置|官网|更新|群|流量)).*"
|
||||||
|
|
||||||
|
# --- 🤖 AI 专用 ---
|
||||||
|
- name: 🤖 AI 人工智能
|
||||||
|
type: url-test
|
||||||
|
url: http://cp.cloudflare.com/generate_204
|
||||||
|
interval: 300
|
||||||
|
tolerance: 50
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)(美|US|United|新|SG|Singapore|日|JP|Japan|台|TW|Taiwan)"
|
||||||
|
|
||||||
|
# --- 🎬 流媒体总入口 ---
|
||||||
|
# 包含 Netflix, Disney, HBO, YouTube, Spotify 等
|
||||||
|
- name: 🎬 流媒体服务
|
||||||
|
type: select
|
||||||
|
proxies:
|
||||||
|
- 🇭🇰 香港节点
|
||||||
|
- 🇸🇬 新加坡节点
|
||||||
|
- 🇯🇵 日本节点
|
||||||
|
- 🇺🇸 美国节点
|
||||||
|
- 🇹🇼 台湾节点
|
||||||
|
- 🌍 其他地区
|
||||||
|
- 🖐 手动选择
|
||||||
|
|
||||||
|
# --- ♻️ 自动测速 ---
|
||||||
|
- name: ♻️ 自动选择
|
||||||
|
type: url-test
|
||||||
|
url: http://cp.cloudflare.com/generate_204
|
||||||
|
interval: 300
|
||||||
|
tolerance: 50
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)^(?!.*(剩余|到期|重置|官网|更新|群|流量)).*"
|
||||||
|
|
||||||
|
# --- 🌍 国家分组 (自动测速) ---
|
||||||
|
- name: 🇭🇰 香港节点
|
||||||
|
type: url-test
|
||||||
|
url: http://cp.cloudflare.com/generate_204
|
||||||
|
interval: 300
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)港|HK|Hong"
|
||||||
|
|
||||||
|
- name: 🇯🇵 日本节点
|
||||||
|
type: url-test
|
||||||
|
url: http://cp.cloudflare.com/generate_204
|
||||||
|
interval: 300
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)日|JP|Japan"
|
||||||
|
|
||||||
|
- name: 🇺🇸 美国节点
|
||||||
|
type: url-test
|
||||||
|
url: http://cp.cloudflare.com/generate_204
|
||||||
|
interval: 300
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)美|US|United States"
|
||||||
|
|
||||||
|
- name: 🇸🇬 新加坡节点
|
||||||
|
type: url-test
|
||||||
|
url: http://cp.cloudflare.com/generate_204
|
||||||
|
interval: 300
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)新|SG|Singapore"
|
||||||
|
|
||||||
|
- name: 🇹🇼 台湾节点
|
||||||
|
type: url-test
|
||||||
|
url: http://cp.cloudflare.com/generate_204
|
||||||
|
interval: 300
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)台|TW|Taiwan"
|
||||||
|
|
||||||
|
# --- 🌍 其他地区 ---
|
||||||
|
- name: 🌍 其他地区
|
||||||
|
type: select
|
||||||
|
include-all: true
|
||||||
|
filter: "(?i)(韩|KR|Korea|英|UK|United Kingdom|德|DE|Germany|法|FR|France|澳|AU|Australia|加|CA|Canada)"
|
||||||
|
|
||||||
|
- name: 🐟 漏网之鱼
|
||||||
|
type: select
|
||||||
|
proxies:
|
||||||
|
- 🚀 节点选择
|
||||||
|
- DIRECT
|
||||||
|
|
||||||
|
# ---------------------------------------------------
|
||||||
|
# 规则集提供者 (远程引用)
|
||||||
|
# ---------------------------------------------------
|
||||||
|
rule-providers:
|
||||||
|
Reject:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
|
||||||
|
path: ./ruleset/reject.yaml
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
|
# --- AI ---
|
||||||
|
OpenAI:
|
||||||
|
type: http
|
||||||
|
behavior: classical
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OpenAI/OpenAI.yaml"
|
||||||
|
path: ./ruleset/openai.yaml
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
|
# --- 流媒体 ---
|
||||||
|
YouTube:
|
||||||
|
type: http
|
||||||
|
behavior: classical
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/YouTube/YouTube.yaml"
|
||||||
|
path: ./ruleset/youtube.yaml
|
||||||
|
interval: 86400
|
||||||
|
Netflix:
|
||||||
|
type: http
|
||||||
|
behavior: classical
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Netflix/Netflix.yaml"
|
||||||
|
path: ./ruleset/netflix.yaml
|
||||||
|
interval: 86400
|
||||||
|
Disney:
|
||||||
|
type: http
|
||||||
|
behavior: classical
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Disney/Disney.yaml"
|
||||||
|
path: ./ruleset/disney.yaml
|
||||||
|
interval: 86400
|
||||||
|
HBO:
|
||||||
|
type: http
|
||||||
|
behavior: classical
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/HBO/HBO.yaml"
|
||||||
|
path: ./ruleset/hbo.yaml
|
||||||
|
interval: 86400
|
||||||
|
GlobalMedia:
|
||||||
|
type: http
|
||||||
|
behavior: classical
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GlobalMedia/GlobalMedia.yaml"
|
||||||
|
path: ./ruleset/globalmedia.yaml
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
|
# --- 社交/通用 ---
|
||||||
|
Telegram:
|
||||||
|
type: http
|
||||||
|
behavior: classical
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Telegram/Telegram.yaml"
|
||||||
|
path: ./ruleset/telegram.yaml
|
||||||
|
interval: 86400
|
||||||
|
Proxy:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
|
||||||
|
path: ./ruleset/proxy.yaml
|
||||||
|
interval: 86400
|
||||||
|
CN:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
|
||||||
|
path: ./ruleset/direct.yaml
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
|
# ---------------------------------------------------
|
||||||
|
# 规则匹配
|
||||||
|
# ---------------------------------------------------
|
||||||
|
rules:
|
||||||
|
# 1. 广告屏蔽
|
||||||
|
- RULE-SET,Reject,REJECT
|
||||||
|
|
||||||
|
# 2. AI 人工智能
|
||||||
|
- RULE-SET,OpenAI,🤖 AI 人工智能
|
||||||
|
- DOMAIN-SUFFIX,claude.ai,🤖 AI 人工智能
|
||||||
|
- DOMAIN-SUFFIX,anthropic.com,🤖 AI 人工智能
|
||||||
|
- DOMAIN-SUFFIX,gemini.google.com,🤖 AI 人工智能
|
||||||
|
- DOMAIN-SUFFIX,x.ai,🤖 AI 人工智能
|
||||||
|
|
||||||
|
# 3. 流媒体 (Disney, HBO, Netflix, YouTube, PrimeVideo等)
|
||||||
|
- RULE-SET,YouTube,🎬 流媒体服务
|
||||||
|
- RULE-SET,Netflix,🎬 流媒体服务
|
||||||
|
- RULE-SET,Disney,🎬 流媒体服务
|
||||||
|
- RULE-SET,HBO,🎬 流媒体服务
|
||||||
|
- RULE-SET,GlobalMedia,🎬 流媒体服务
|
||||||
|
|
||||||
|
# 4. 社交/其他
|
||||||
|
- RULE-SET,Telegram,🚀 节点选择
|
||||||
|
- RULE-SET,Proxy,🚀 节点选择
|
||||||
|
|
||||||
|
# 5. 国内直连
|
||||||
|
- RULE-SET,CN,DIRECT
|
||||||
|
- GEOIP,CN,DIRECT
|
||||||
|
- GEOIP,PRIVATE,DIRECT
|
||||||
|
|
||||||
|
# 6. 兜底
|
||||||
|
- MATCH,🐟 漏网之鱼
|
||||||
Reference in New Issue
Block a user