236 lines
5.4 KiB
YAML
236 lines
5.4 KiB
YAML
# =========================
|
|
# 基础设置
|
|
# =========================
|
|
port: 7890
|
|
socks-port: 7891
|
|
allow-lan: true
|
|
mode: rule
|
|
log-level: info
|
|
external-controller: 127.0.0.1:9090
|
|
|
|
# =========================
|
|
# 策略组
|
|
# =========================
|
|
proxy-groups:
|
|
|
|
- name: 节点选择
|
|
type: select
|
|
proxies:
|
|
- ♻️ 自动选择
|
|
- 手动选择
|
|
- AI 人工智能
|
|
- 流媒体服务
|
|
- 香港节点
|
|
- 台湾节点
|
|
- 日本节点
|
|
- 美国节点
|
|
- 新加坡节点
|
|
- 其他地区
|
|
- DIRECT
|
|
include-all: true
|
|
|
|
- name: 手动选择
|
|
type: select
|
|
include-all: true
|
|
filter: "(?i)^(?!.*(剩余|到期|重置|官网|更新|群|流量)).*"
|
|
|
|
- name: ♻️ 自动选择
|
|
type: url-test
|
|
url: http://cp.cloudflare.com/generate_204
|
|
interval: 300
|
|
tolerance: 50
|
|
include-all: true
|
|
|
|
# -------------------------
|
|
# 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"
|
|
|
|
- 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"
|
|
|
|
- name: 美国节点
|
|
type: url-test
|
|
url: http://cp.cloudflare.com/generate_204
|
|
interval: 300
|
|
include-all: true
|
|
filter: "(?i)美|us|united"
|
|
|
|
- name: 新加坡节点
|
|
type: url-test
|
|
url: http://cp.cloudflare.com/generate_204
|
|
interval: 300
|
|
include-all: true
|
|
filter: "(?i)新|sg|singapore"
|
|
|
|
- name: 其他地区
|
|
type: select
|
|
include-all: true
|
|
filter: "(?i)(韩|kr|korea|英|uk|德|de|法|fr|澳|au|加|ca)"
|
|
|
|
- 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
|
|
|
|
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
|
|
|
|
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
|
|
- 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,ai.google.dev,AI 人工智能
|
|
- DOMAIN-SUFFIX,makersuite.google.com,AI 人工智能
|
|
|
|
# 台湾流媒体 / 本地
|
|
- 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,GlobalMedia,流媒体服务
|
|
|
|
# 代理
|
|
- RULE-SET,Proxy,节点选择
|
|
|
|
# 国内直连
|
|
- RULE-SET,CN,DIRECT
|
|
- GEOIP,CN,DIRECT
|
|
- GEOIP,PRIVATE,DIRECT
|
|
|
|
# 兜底
|
|
- MATCH,漏网之鱼
|