-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclash-template.yaml
More file actions
465 lines (452 loc) · 15.4 KB
/
Copy pathclash-template.yaml
File metadata and controls
465 lines (452 loc) · 15.4 KB
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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
mixed-port: 7890
allow-lan: true
bind-address: "*"
mode: rule
log-level: debug
external-controller: "0.0.0.0:9090"
dns:
enable: true
listen: 0.0.0.0:1053
ipv6: false
use-system-hosts: false
cache-algorithm: arc
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- +.lan
- +.local
- +.msftconnecttest.com
- +.msftncsi.com
- localhost.ptlogin2.qq.com
- localhost.sec.qq.com
- localhost.work.weixin.qq.com
default-nameserver:
- 223.5.5.5
- 119.29.29.29
- 1.1.1.1
- 8.8.8.8
nameserver:
- https://dns.alidns.com/dns-query
- https://doh.pub/dns-query
- https://doh.360.cn/dns-query
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query
- https://208.67.222.222/dns-query
- https://208.67.220.220/dns-query
- https://194.242.2.2/dns-query
- https://194.242.2.3/dns-query
proxy-server-nameserver:
- https://dns.alidns.com/dns-query
- https://doh.pub/dns-query
- https://doh.360.cn/dns-query
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query
- https://208.67.222.222/dns-query
- https://208.67.220.220/dns-query
- https://194.242.2.2/dns-query
- https://194.242.2.3/dns-query
nameserver-policy:
geosite:private,cn,geolocation-cn:
- https://dns.alidns.com/dns-query
- https://doh.pub/dns-query
- https://doh.360.cn/dns-query
geosite:google,youtube,telegram,gfw,geolocation-!cn:
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query
- https://208.67.222.222/dns-query
- https://208.67.220.220/dns-query
- https://194.242.2.2/dns-query
- https://194.242.2.3/dns-query
proxy-providers:
proxy-groups:
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 节点选择
type: select
proxies:
- 延迟选优
- 故障转移
- 负载均衡(散列)
- 负载均衡(轮询)
include-all-providers: true
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/adjust.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 延迟选优
type: url-test
tolerance: 100
proxies:
- DIRECT
include-all-providers: true
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/speed.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 故障转移
type: fallback
proxies:
- DIRECT
include-all-providers: true
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/ambulance.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 负载均衡(散列)
type: load-balance
strategy: consistent-hashing
proxies:
- DIRECT
include-all-providers: true
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/merry_go.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 负载均衡(轮询)
type: load-balance
strategy: round-robin
proxies:
- DIRECT
include-all-providers: true
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/balance.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 谷歌服务
type: select
proxies:
- 节点选择
- 延迟选优
- 故障转移
- 负载均衡(散列)
- 负载均衡(轮询)
- 全局直连
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/google.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 国外媒体
type: select
proxies:
- 节点选择
- 延迟选优
- 故障转移
- 负载均衡(散列)
- 负载均衡(轮询)
- 全局直连
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/youtube.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 电报消息
type: select
proxies:
- 节点选择
- 延迟选优
- 故障转移
- 负载均衡(散列)
- 负载均衡(轮询)
- 全局直连
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/telegram.svg
- interval: 300
timeout: 3000
url: https://chatgpt.com
lazy: true
max-failed-times: 3
hidden: false
expected-status: "200"
name: ChatGPT
type: select
include-all: true
filter: AD|🇦🇩|AE|🇦🇪|AF|🇦🇫|AG|🇦🇬|AL|🇦🇱|AM|🇦🇲|AO|🇦🇴|AR|🇦🇷|AT|🇦🇹|AU|🇦🇺|AZ|🇦🇿|BA|🇧🇦|BB|🇧🇧|BD|🇧🇩|BE|🇧🇪|BF|🇧🇫|BG|🇧🇬|BH|🇧🇭|BI|🇧🇮|BJ|🇧🇯|BN|🇧🇳|BO|🇧🇴|BR|🇧🇷|BS|🇧🇸|BT|🇧🇹|BW|🇧🇼|BZ|🇧🇿|CA|🇨🇦|CD|🇨🇩|CF|🇨🇫|CG|🇨🇬|CH|🇨🇭|CI|🇨🇮|CL|🇨🇱|CM|🇨🇲|CO|🇨🇴|CR|🇨🇷|CV|🇨🇻|CY|🇨🇾|CZ|🇨🇿|DE|🇩🇪|DJ|🇩🇯|DK|🇩🇰|DM|🇩🇲|DO|🇩🇴|DZ|🇩🇿|EC|🇪🇨|EE|🇪🇪|EG|🇪🇬|ER|🇪🇷|ES|🇪🇸|ET|🇪🇹|FI|🇫🇮|FJ|🇫🇯|FM|🇫🇲|FR|🇫🇷|GA|🇬🇦|GB|🇬🇧|GD|🇬🇩|GE|🇬🇪|GH|🇬🇭|GM|🇬🇲|GN|🇬🇳|GQ|🇬🇶|GR|🇬🇷|GT|🇬🇹|GW|🇬🇼|GY|🇬🇾|HN|🇭🇳|HR|🇭🇷|HT|🇭🇹|HU|🇭🇺|ID|🇮🇩|IE|🇮🇪|IL|🇮🇱|IN|🇮🇳|IQ|🇮🇶|IS|🇮🇸|IT|🇮🇹|JM|🇯🇲|JO|🇯🇴|JP|🇯🇵|KE|🇰🇪|KG|🇰🇬|KH|🇰🇭|KI|🇰🇮|KM|🇰🇲|KN|🇰🇳|KR|🇰🇷|KW|🇰🇼|KZ|🇰🇿|LA|🇱🇦|LB|🇱🇧|LC|🇱🇨|LI|🇱🇮|LK|🇱🇰|LR|🇱🇷|LS|🇱🇸|LT|🇱🇹|LU|🇱🇺|LV|🇱🇻|LY|🇱🇾|MA|🇲🇦|MC|🇲🇨|MD|🇲🇩|ME|🇲🇪|MG|🇲🇬|MH|🇲🇭|MK|🇲🇰|ML|🇲🇱|MM|🇲🇲|MN|🇲🇳|MR|🇲🇷|MT|🇲🇹|MU|🇲🇺|MV|🇲🇻|MW|🇲🇼|MX|🇲🇽|MY|🇲🇾|MZ|🇲🇿|NA|🇳🇦|NE|🇳🇪|NG|🇳🇬|NI|🇳🇮|NL|🇳🇱|NO|🇳🇴|NP|🇳🇵|NR|🇳🇷|NZ|🇳🇿|OM|🇴🇲|PA|🇵🇦|PE|🇵🇪|PG|🇵🇬|PH|🇵🇭|PK|🇵🇰|PL|🇵🇱|PS|🇵🇸|PT|🇵🇹|PW|🇵🇼|PY|🇵🇾|QA|🇶🇦|RO|🇷🇴|RS|🇷🇸|RW|🇷🇼|SA|🇸🇦|SB|🇸🇧|SC|🇸🇨|SD|🇸🇩|SE|🇸🇪|SG|🇸🇬|SI|🇸🇮|SK|🇸🇰|SL|🇸🇱|SM|🇸🇲|SN|🇸🇳|SO|🇸🇴|SR|🇸🇷|SS|🇸🇸|ST|🇸🇹|SV|🇸🇻|SZ|🇸🇿|TD|🇹🇩|TG|🇹🇬|TH|🇹🇭|TJ|🇹🇯|TL|🇹🇱|TM|🇹🇲|TN|🇹🇳|TO|🇹🇴|TR|🇹🇷|TT|🇹🇹|TV|🇹🇻|TW|🇹🇼|TZ|🇹🇿|UA|🇺🇦|UG|🇺🇬|US|🇺🇸|UY|🇺🇾|UZ|🇺🇿|VA|🇻🇦|VC|🇻🇨|VN|🇻🇳|VU|🇻🇺|WS|🇼🇸|YE|🇾🇪|ZA|🇿🇦|ZM|🇿🇲|ZW|🇿🇼
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/chatgpt.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 微软服务
type: select
proxies:
- 全局直连
- 节点选择
- 延迟选优
- 故障转移
- 负载均衡(散列)
- 负载均衡(轮询)
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/microsoft.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 苹果服务
type: select
proxies:
- 节点选择
- 延迟选优
- 故障转移
- 负载均衡(散列)
- 负载均衡(轮询)
- 全局直连
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/apple.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 广告过滤
type: select
proxies:
- REJECT
- DIRECT
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/bug.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 全局直连
type: select
proxies:
- DIRECT
- 节点选择
- 延迟选优
- 故障转移
- 负载均衡(散列)
- 负载均衡(轮询)
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/link.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 全局拦截
type: select
proxies:
- REJECT
- DIRECT
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/block.svg
- interval: 300
timeout: 3000
url: https://www.google.com/generate_204
lazy: true
max-failed-times: 3
hidden: false
name: 漏网之鱼
type: select
proxies:
- 节点选择
- 延迟选优
- 故障转移
- 负载均衡(散列)
- 负载均衡(轮询)
- 全局直连
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/fish.svg
rule-providers:
reject:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt
path: ./ruleset/loyalsoldier/reject.yaml
icloud:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt
path: ./ruleset/loyalsoldier/icloud.yaml
apple:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt
path: ./ruleset/loyalsoldier/apple.yaml
google:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt
path: ./ruleset/loyalsoldier/google.yaml
proxy:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt
path: ./ruleset/loyalsoldier/proxy.yaml
direct:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt
path: ./ruleset/loyalsoldier/direct.yaml
private:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt
path: ./ruleset/loyalsoldier/private.yaml
gfw:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt
path: ./ruleset/loyalsoldier/gfw.yaml
tld-not-cn:
type: http
format: yaml
interval: 86400
behavior: domain
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt
path: ./ruleset/loyalsoldier/tld-not-cn.yaml
telegramcidr:
type: http
format: yaml
interval: 86400
behavior: ipcidr
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt
path: ./ruleset/loyalsoldier/telegramcidr.yaml
cncidr:
type: http
format: yaml
interval: 86400
behavior: ipcidr
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt
path: ./ruleset/loyalsoldier/cncidr.yaml
lancidr:
type: http
format: yaml
interval: 86400
behavior: ipcidr
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt
path: ./ruleset/loyalsoldier/lancidr.yaml
applications:
type: http
format: yaml
interval: 86400
behavior: classical
url: https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt
path: ./ruleset/loyalsoldier/applications.yaml
openai:
type: http
format: yaml
interval: 86400
behavior: classical
url: https://fastly.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OpenAI/OpenAI.yaml
path: ./ruleset/blackmatrix7/openai.yaml
AD:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/earoftoast/clash-rules/main/AD.yaml"
path: ./rules/AD.yaml
interval: 86400
EasyList:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/earoftoast/clash-rules/main/EasyList.yaml"
path: ./rules/EasyList.yaml
interval: 86400
EasyListChina:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/earoftoast/clash-rules/main/EasyListChina.yaml"
path: ./rules/EasyListChina.yaml
interval: 86400
EasyPrivacy:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/earoftoast/clash-rules/main/EasyPrivacy.yaml"
path: ./rules/EasyPrivacy.yaml
interval: 86400
ProgramAD:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/earoftoast/clash-rules/main/ProgramAD.yaml"
path: ./rules/ProgramAD.yaml
interval: 86400
Gemini:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Gemini/Gemini.yaml"
path: ./rules/Gemini.yaml
interval: 86400
Openai:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OpenAI/OpenAI.yaml"
path: ./rules/Openai.yaml
interval: 86400
Bing:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Bing/Bing.yaml"
path: ./rules/Bing.yaml
interval: 86400
OneDrive:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OneDrive/OneDrive.yaml"
path: ./rules/OneDrive.yaml
interval: 86400
rules:
- DOMAIN-SUFFIX,hf-mirror.com,节点选择
- DOMAIN-SUFFIX,googleapis.cn,节点选择
- DOMAIN-SUFFIX,gstatic.com,节点选择
- DOMAIN-SUFFIX,xn--ngstr-lra8j.com,节点选择
- DOMAIN-SUFFIX,github.io,节点选择
- DOMAIN,v2rayse.com,节点选择
- RULE-SET,openai,ChatGPT
- RULE-SET,applications,全局直连
- RULE-SET,private,全局直连
- RULE-SET,reject,广告过滤
- RULE-SET,icloud,微软服务
- RULE-SET,apple,苹果服务
- RULE-SET,google,谷歌服务
- RULE-SET,proxy,节点选择
- RULE-SET,gfw,节点选择
- RULE-SET,tld-not-cn,节点选择
- RULE-SET,direct,全局直连
- RULE-SET,lancidr,全局直连,no-resolve
- RULE-SET,cncidr,全局直连,no-resolve
- RULE-SET,telegramcidr,电报消息,no-resolve
- GEOIP,LAN,全局直连,no-resolve
- GEOIP,CN,全局直连,no-resolve
- MATCH,漏网之鱼