-
Notifications
You must be signed in to change notification settings - Fork 1
/
8分组本地配置-填订阅.yml
378 lines (337 loc) · 10.5 KB
/
8分组本地配置-填订阅.yml
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
port: 7890
socks-port: 7891
mixed-port: 7893
allow-lan: true
mode: Rule
log-level: info
dns:
enable: true
ipv6: true
listen: 0.0.0.0:8053
default-nameserver :
- 1.1.1.1
- 8.8.8.8
enhanced-mode: fake-ip
# 配置不使用fake-ip的域名
fake-ip-filter:
- '+.*'
- '*.lan'
- localhost.ptlogin2.qq.com
nameserver:
- 223.5.5.5
- 1.1.1.1
- 8.8.8.8
- 114.114.114.114
- 119.29.29.29
fallback: # 与 nameserver 内的服务器列表同时发起请求,当规则符合 GEOIP 在 CN 以外时,fallback 列表内的域名服务器生效。
- https://dns.google/dns-query
- https://1.1.1.1/dns-query
- tcp://8.8.8.8:53
- tcp://8.8.4.4:53
- tcp://208.67.222.222:443
- tcp://208.67.220.220:443
fallback-filter:
geoip: true
geoip-code: CN
ipcidr:
- 240.0.0.0/4
domain:
- '+.google.com'
- '+.googleapis.com'
- '+.youtube.com'
- '+.appspot.com'
- '+.telegram.com'
- '+.facebook.com'
- '+.twitter.com'
- '+.blogger.com'
- '+.gmail.com'
- '+.gvt1.com'
sniffer:
enable: true
override-destination: true
sniff:
http: { ports: [80, 8080] }
tls: { ports: [443, 8443] }
skip-domain:
#Apple
- 'courier.push.apple.com'
#mi
- 'Mijia Cloud'
# 节点订阅
# 默认每六小时更新一次节点订阅
proxy-providers:
全球节点:
type: http
path: ./Proxy/全球节点.yaml
url: #填写订阅连接,注意空格
interval: 21600
#否定式前瞻排除正则,基本表达式为^(?!匹配模式),".*?"表示任意字符.排除名字含有[流量|到期|重置]中任意一个的节点
filter: "^(?!.*?[流量|到期|重置]).*?$"
#直接正则匹配排除,和上一行的表达式是一样的作用,在mihomo上可以工作,P核不清楚
exclude-filter: "流量|到期|重置"
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
0.1倍率:
#订阅就改http,和上面的全球节点一致,因为上面已经保存过一次订阅文件了,所以直接使用现成的file
type: file
path: ./Proxy/全球节点.yaml
interval: 21600
#以0.1倍率节点为例,如果在此处就filter一次,那么在proxy-groups中就可以少显示一个0.1倍率节点组
#换句话说在这里filter是作用于底层的节点列表,参见133行.在proxy-groups中filter则还可以套娃上别的proxy-groups,参见138行
filter: 倍率0.1 #含有“倍率0.1”的节点才会出现
exclude-filter:
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
HK:
type: file
path: ./Proxy/全球节点.yaml
interval: 21600
filter: ".*?[HK|香港].*?$" #正向匹配
exclude-filter:
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
# 节点组
# 默认每分钟测试一次节点延时
# 容差参数未开启时默认为0ms
proxy-groups:
- name: 🚀 手动切换
type: select
use:
- 全球节点
- name: 🐟 漏网之鱼
type: select
proxies:
- DIRECT
- 🚀 手动切换
- name: 📲 电报消息
type: select
proxies:
- 🚀 手动切换
- 🇭🇰HK #133行
- 🇭🇰HK_no_X #138行
- ♻️ 自动选择
- 🔯 故障转移
- name: 🎮 游戏平台
type: select
proxies:
- 🎯 全球直连
- 🚀 手动切换
- name: "🇭🇰HK"
type: select
use:
- "HK" #使用的是92行proxy-providers中的HK 所以字段是"use",表示手动选择
- name: "🇭🇰HK_no_X"
type: select
filter: "^(?!.*?[0x|0.1x]).*?$" #排除倍率
exclude-filter: "[0x|0.1x]" #排除倍率
use:
- "HK" #加上这个,表示除了沿用的之外,还可以在排除倍率后的节点中手动选择
proxies:
- "🇭🇰HK" #🇭🇰HK套娃了,所以用的字段是133行的proxies,表示沿用🇭🇰HK的选择
#以上注释说人话就是,我要筛选HK节点,在此基础上,再次筛选HK中的某些节点
- name: 🎯 全球直连
type: select
proxies:
- DIRECT
- 🚀 手动切换
- name: 🛑 隐私拦截
type: select
proxies:
- REJECT
- DIRECT
- name: ♻️ 自动选择
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
use:
- 全球节点
- name: 🔯 故障转移
type: fallback
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
use:
- 全球节点
# 分流规则订阅
# 已替换为cdn加速url
# 默认每二十四小时更新一次分流规则
rule-providers:
NSFW:
type: http
behavior: classical
path: ./RuleSet/NSFW.yaml
url: https://cdn.jsdelivr.net/gh/tanmoumou252/NSFWruleset/NSFW.yaml
interval: 86400
China:
type: http
behavior: classical
path: ./RuleSet/China.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/China/China.yaml
interval: 86400
AdvertisingTest:
type: http
behavior: classical
path: ./RuleSet/AdvertisingTest.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/AdvertisingTest/AdvertisingTest.yaml
interval: 86400
Google:
type: http
behavior: classical
path: ./RuleSet/Google.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Google/Google.yaml
interval: 86400
GoogleDrive:
type: http
behavior: classical
path: ./RuleSet/GoogleDrive.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GoogleDrive/GoogleDrive.yaml
interval: 86400
OneDrive:
type: http
behavior: classical
path: ./RuleSet/OneDrive.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OneDrive/OneDrive.yaml
interval: 86400
Microsoft:
type: http
behavior: classical
path: ./RuleSet/Microsoft.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Microsoft/Microsoft.yaml
interval: 86400
Github:
type: http
behavior: classical
path: ./RuleSet/Github.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GitHub/GitHub.yaml
interval: 86400
Apple:
type: http
behavior: classical
path: ./RuleSet/Apple.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Apple/Apple.yaml
interval: 86400
Telegram:
type: http
behavior: classical
path: ./RuleSet/Telegram.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Telegram/Telegram.yaml
interval: 86400
Game:
type: http
behavior: classical
path: ./RuleSet/Game.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Game/Game.yaml
interval: 86400
YouTube:
type: http
behavior: classical
path: ./RuleSet/YouTube.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/YouTube/YouTube.yaml
interval: 86400
Netflix:
type: http
behavior: classical
path: ./RuleSet/Netflix.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Netflix/Netflix.yaml
interval: 86400
Bahamut:
type: http
behavior: classical
path: ./RuleSet/Bahamut.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Bahamut/Bahamut.yaml
interval: 86400
GlobalMedia:
type: http
behavior: classical
path: ./RuleSet/GlobalMedia.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GlobalMedia/GlobalMedia.yaml
interval: 86400
Bilibili:
type: http
behavior: classical
path: ./RuleSet/Bilibili.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/BiliBili/BiliBili.yaml
interval: 86400
ChinaMedia:
type: http
behavior: classical
path: ./RuleSet/ChinaMedia.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/ChinaMedia/ChinaMedia.yaml
interval: 86400
Developer:
type: http
behavior: classical
path: ./RuleSet/Developer.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Developer/Developer.yaml
interval: 86400
Download:
type: http
behavior: classical
path: ./RuleSet/Download.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Download/Download.yaml
interval: 86400
Lan:
type: http
behavior: classical
path: ./RuleSet/Lan.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Lan/Lan.yaml
interval: 86400
Lan_CN:
type: http
behavior: classical
path: ./RuleSet/Lan_CN.yaml
url: https://cdn.jsdelivr.net/gh/tanmoumou252/NSFWruleset/Lan_CN.yaml
interval: 86400
Firefox:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/tanmoumou252/firefoxruleset/Firefox.yaml
path: ./RuleSet/Firefox.yaml
interval: 86400
GPT_AI:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/tanmoumou252/NSFWruleset/GPT_AI.yaml
path: ./RuleSet/GPT_AI.yaml
interval: 86400
Twitter:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script/rule/Clash/Twitter/Twitter.yaml
path: ./RuleSet/Twitter.yaml
interval: 86400
# 分流规则
rules:
- RULE-SET,NSFW,🚀 手动切换
- RULE-SET,Download,DIRECT
- RULE-SET,Lan,DIRECT
- RULE-SET,AdvertisingTest,🛑 隐私拦截
- RULE-SET,Google,🚀 手动切换
- RULE-SET,GoogleDrive,🚀 手动切换
- RULE-SET,OneDrive,DIRECT
- RULE-SET,Microsoft,DIRECT
- RULE-SET,Apple,DIRECT
- RULE-SET,Telegram,🚀 手动切换
- RULE-SET,Game,🎯 全球直连
- RULE-SET,YouTube,🚀 手动切换
- RULE-SET,Bahamut,🚀 手动切换
- RULE-SET,Netflix,🚀 手动切换
- RULE-SET,GlobalMedia,🚀 手动切换
- RULE-SET,Bilibili,🎯 全球直连
- RULE-SET,ChinaMedia,DIRECT
- RULE-SET,Github,🚀 手动切换
- RULE-SET,Developer,🚀 手动切换
- RULE-SET,GPT_AI,🚀 手动切换
- RULE-SET,Twitter,🚀 手动切换
- RULE-SET,Lan_CN,DIRECT
- RULE-SET,China,DIRECT
- RULE-SET,Firefox,DIRECT
- GEOIP,CN,DIRECT
- MATCH,🐟 漏网之鱼