更新 clash.yaml
This commit is contained in:
236
clash.yaml
236
clash.yaml
@@ -1,15 +1,18 @@
|
||||
# =========================
|
||||
# 基础设置
|
||||
# =========================
|
||||
port: 7890
|
||||
socks-port: 7891
|
||||
allow-lan: true
|
||||
mode: rule
|
||||
log-level: info
|
||||
external-controller: :9090
|
||||
external-controller: 127.0.0.1:9090
|
||||
|
||||
# ---------------------------------------------------
|
||||
# =========================
|
||||
# 策略组
|
||||
# ---------------------------------------------------
|
||||
# =========================
|
||||
proxy-groups:
|
||||
# 核心入口
|
||||
|
||||
- name: 节点选择
|
||||
type: select
|
||||
proxies:
|
||||
@@ -18,6 +21,7 @@ proxy-groups:
|
||||
- AI 人工智能
|
||||
- 流媒体服务
|
||||
- 香港节点
|
||||
- 台湾节点
|
||||
- 日本节点
|
||||
- 美国节点
|
||||
- 新加坡节点
|
||||
@@ -25,83 +29,105 @@ proxy-groups:
|
||||
- DIRECT
|
||||
include-all: true
|
||||
|
||||
# 全量手动选择 (救急用)
|
||||
- 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)"
|
||||
|
||||
# 流媒体总入口
|
||||
- name: 流媒体服务
|
||||
type: select
|
||||
proxies:
|
||||
- 香港节点
|
||||
- 新加坡节点
|
||||
- 日本节点
|
||||
- 美国节点
|
||||
- 台湾节点
|
||||
- 其他地区
|
||||
- 手动选择
|
||||
|
||||
# 自动测速分组
|
||||
- name: ♻️ 自动选择
|
||||
type: url-test
|
||||
url: http://cp.cloudflare.com/generate_204
|
||||
interval: 300
|
||||
tolerance: 50
|
||||
include-all: true
|
||||
filter: "(?i)^(?!.*(剩余|到期|重置|官网|更新|群|流量)).*"
|
||||
|
||||
# 国家/地区测速分组
|
||||
# -------------------------
|
||||
# AI 专用
|
||||
# -------------------------
|
||||
- name: AI 稳定节点
|
||||
type: select
|
||||
proxies:
|
||||
- 台湾节点
|
||||
- 日本节点
|
||||
- 新加坡节点
|
||||
- 美国节点
|
||||
- 手动选择
|
||||
|
||||
- name: AI 人工智能
|
||||
type: select
|
||||
proxies:
|
||||
- AI 稳定节点
|
||||
- 台湾节点
|
||||
- 日本节点
|
||||
- 新加坡节点
|
||||
- 美国节点
|
||||
|
||||
# -------------------------
|
||||
# 流媒体
|
||||
# -------------------------
|
||||
- name: 台湾流媒体
|
||||
type: select
|
||||
proxies:
|
||||
- 台湾节点
|
||||
- 香港节点
|
||||
- 新加坡节点
|
||||
- 日本节点
|
||||
- 手动选择
|
||||
|
||||
- name: 流媒体服务
|
||||
type: select
|
||||
proxies:
|
||||
- 台湾流媒体
|
||||
- 香港节点
|
||||
- 新加坡节点
|
||||
- 日本节点
|
||||
- 美国节点
|
||||
- 其他地区
|
||||
- 手动选择
|
||||
|
||||
# -------------------------
|
||||
# 国家 / 地区测速组
|
||||
# -------------------------
|
||||
- name: 香港节点
|
||||
type: url-test
|
||||
url: http://cp.cloudflare.com/generate_204
|
||||
interval: 300
|
||||
include-all: true
|
||||
filter: "(?i)港|HK|Hong"
|
||||
filter: "(?i)港|hk|hong"
|
||||
|
||||
- name: 台湾节点
|
||||
type: url-test
|
||||
url: http://cp.cloudflare.com/generate_204
|
||||
interval: 300
|
||||
tolerance: 50
|
||||
include-all: true
|
||||
filter: "(?i)(台|tw|taiwan|taipei|新北|高雄)"
|
||||
|
||||
- name: 日本节点
|
||||
type: url-test
|
||||
url: http://cp.cloudflare.com/generate_204
|
||||
interval: 300
|
||||
include-all: true
|
||||
filter: "(?i)日|JP|Japan"
|
||||
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"
|
||||
filter: "(?i)美|us|united"
|
||||
|
||||
- name: 新加坡节点
|
||||
type: url-test
|
||||
url: http://cp.cloudflare.com/generate_204
|
||||
interval: 300
|
||||
include-all: true
|
||||
filter: "(?i)新|SG|Singapore"
|
||||
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)"
|
||||
filter: "(?i)(韩|kr|korea|英|uk|德|de|法|fr|澳|au|加|ca)"
|
||||
|
||||
- name: 漏网之鱼
|
||||
type: select
|
||||
@@ -109,103 +135,95 @@ proxy-groups:
|
||||
- 节点选择
|
||||
- DIRECT
|
||||
|
||||
# ---------------------------------------------------
|
||||
# 规则集提供者 (远程引用)
|
||||
# ---------------------------------------------------
|
||||
# =========================
|
||||
# 规则集
|
||||
# =========================
|
||||
rule-providers:
|
||||
|
||||
Reject:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
|
||||
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt
|
||||
path: ./ruleset/reject.yaml
|
||||
interval: 86400
|
||||
|
||||
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"
|
||||
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"
|
||||
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt
|
||||
path: ./ruleset/direct.yaml
|
||||
interval: 86400
|
||||
|
||||
# ---------------------------------------------------
|
||||
# 规则匹配
|
||||
# ---------------------------------------------------
|
||||
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
|
||||
|
||||
Gemini:
|
||||
type: http
|
||||
behavior: classical
|
||||
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Gemini/Gemini.yaml
|
||||
path: ./ruleset/gemini.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
|
||||
|
||||
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
|
||||
|
||||
# =========================
|
||||
# 规则
|
||||
# =========================
|
||||
rules:
|
||||
# 广告屏蔽
|
||||
- RULE-SET,Reject,REJECT
|
||||
|
||||
# AI 人工智能
|
||||
# AI
|
||||
- RULE-SET,OpenAI,AI 人工智能
|
||||
- RULE-SET,Gemini,AI 人工智能
|
||||
- DOMAIN-SUFFIX,claude.ai,AI 人工智能
|
||||
- DOMAIN-SUFFIX,anthropic.com,AI 人工智能
|
||||
- DOMAIN-SUFFIX,gemini.google.com,AI 人工智能
|
||||
- DOMAIN-SUFFIX,x.ai, AI 人工智能
|
||||
- DOMAIN-SUFFIX,ai.google.dev,AI 人工智能
|
||||
- DOMAIN-SUFFIX,makersuite.google.com,AI 人工智能
|
||||
|
||||
# 流媒体规则
|
||||
- RULE-SET,YouTube, 流媒体服务
|
||||
# 台湾流媒体 / 本地
|
||||
- DOMAIN-SUFFIX,netflix.com,台湾流媒体
|
||||
- DOMAIN-SUFFIX,nflxvideo.net,台湾流媒体
|
||||
- DOMAIN-SUFFIX,disneyplus.com,台湾流媒体
|
||||
- DOMAIN-SUFFIX,bahamut.com.tw,台湾流媒体
|
||||
- DOMAIN-SUFFIX,gamer.com.tw,台湾流媒体
|
||||
|
||||
# 其他流媒体
|
||||
- RULE-SET,Netflix,流媒体服务
|
||||
- RULE-SET,Disney,流媒体服务
|
||||
- RULE-SET,HBO, 流媒体服务
|
||||
- RULE-SET,GlobalMedia,流媒体服务
|
||||
|
||||
# 社交/其他
|
||||
- RULE-SET,Telegram, 节点选择
|
||||
# 代理
|
||||
- RULE-SET,Proxy,节点选择
|
||||
|
||||
# 国内直连
|
||||
@@ -213,5 +231,5 @@ rules:
|
||||
- GEOIP,CN,DIRECT
|
||||
- GEOIP,PRIVATE,DIRECT
|
||||
|
||||
# 兜底规则
|
||||
# 兜底
|
||||
- MATCH,漏网之鱼
|
||||
|
||||
Reference in New Issue
Block a user