1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
| # ----------------------------------------
# Clash覆写 支持Sparkle
# @Charlie237
# 推荐使用blackmatrix7/ios_rule_script规则
# ----------------------------------------
# (1) 策略组 (proxy-groups)
proxy-groups:
# --- 顶层选择策略 ---
- name: 节点切换
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Available.png
proxies:
- 故障转移
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- 全球
- name: Telegram
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Telegram.png
proxies:
- 节点切换
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- name: AI
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/AI.png
proxies:
- 节点切换
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- name: Apple
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple.png
proxies:
- DIRECT
- 节点切换
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- name: PayPal
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/PayPal.png
proxies:
- DIRECT
- 节点切换
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- name: Cryptocurrency
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Cryptocurrency.png
proxies:
- 节点切换
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- name: Google
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Google_Search.png
proxies:
- 节点切换
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- name: OneDrive
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/OneDrive.png
proxies:
- DIRECT
- 节点切换
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- name: Microsoft
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Microsoft.png
proxies:
- DIRECT
- 节点切换
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
# --- 自动测速与手动选择一体化策略组 ---
- name: 故障转移
type: fallback
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Auto.png
proxies:
- 香港
- 台湾
- 日本
- 韩国
- 狮城
- 美国
- 全球
url: http://www.gstatic.com/generate_204
interval: 60
- name: 香港
type: url-test
include-all: true
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png
filter: '^(?=.*((?i)🇭🇰|香港|(\b(HK|HKG|Hong)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
- name: 台湾
type: url-test
include-all: true
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Taiwan.png
filter: '^(?=.*((?i)🇹🇼|台湾|(\b(TW|TWN|Tai|Taiwan)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
- name: 日本
type: url-test
include-all: true
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png
filter: '^(?=.*((?i)🇯🇵|日本|川日|东京|大阪|泉日|埼玉|(\b(JP|JPN|Japan)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
- name: 韩国
type: url-test
include-all: true
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Korea.png
filter: '^(?=.*((?i)🇰🇷|韩国|韓|首尔|(\b(KR|KOR|Korea)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
- name: 狮城
type: url-test
include-all: true
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Singapore.png
filter: '^(?=.*((?i)🇸🇬|新加坡|狮|(\b(SG|SGP|Singapore)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
- name: 美国
type: url-test
include-all: true
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png
filter: '^(?=.*((?i)🇺🇸|美国|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|(\b(US|USA|United States)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
- name: 全球
type: select
include-all: true
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png
filter: '^(?!.*((?i)🇭🇰|香港|HK|台湾|🇹🇼|TW|日本|🇯🇵|JP|韩国|🇰🇷|KR|新加坡|🇸🇬|SG|美国|🇺🇸|US|游戏|🎮|GAME|回国|校园)).*$'
# (2) 规则集 (rule-providers)
rule-providers:
Lan:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Lan/Lan.yaml"
path: ./ruleset/lan.yaml
interval: 86400
Direct:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Direct/Direct.yaml"
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
Anthropic:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Anthropic/Anthropic.yaml"
path: ./ruleset/anthropic.yaml
interval: 86400
Claude:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Claude/Claude.yaml"
path: ./ruleset/claude.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
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
Apple:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Apple/Apple_Classical.yaml"
path: ./ruleset/apple_classical.yaml
interval: 86400
PayPal:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/PayPal/PayPal.yaml"
path: ./ruleset/paypal.yaml
interval: 86400
Cryptocurrency:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Cryptocurrency/Cryptocurrency.yaml"
path: ./ruleset/cryptocurrency.yaml
interval: 86400
Google:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Google/Google.yaml"
path: ./ruleset/google.yaml
interval: 86400
OneDrive:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OneDrive/OneDrive.yaml"
path: ./ruleset/onedrive.yaml
interval: 86400
Microsoft:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Microsoft/Microsoft.yaml"
path: ./ruleset/microsoft.yaml
interval: 86400
# (3) 分流规则 (rules)
rules:
# --- 优先处理规则 ---
- RULE-SET,Lan,DIRECT
- DOMAIN-SUFFIX,local,DIRECT
# --- 应用规则 ---
- RULE-SET,OpenAI,AI
- RULE-SET,Anthropic,AI
- RULE-SET,Claude,AI
- RULE-SET,Gemini,AI
- RULE-SET,Telegram,Telegram
- RULE-SET,Apple,Apple
- RULE-SET,PayPal,PayPal
- RULE-SET,Cryptocurrency,Cryptocurrency
- RULE-SET,Google,Google
- RULE-SET,OneDrive,OneDrive
- RULE-SET,Microsoft,Microsoft
# --- 直连规则 ---
- RULE-SET,Direct,DIRECT
- GEOIP,CN,DIRECT
# --- 兜底规则 (所有其他流量) ---
- MATCH,节点切换
|