-
Notifications
You must be signed in to change notification settings - Fork 0
/
mihomo.yaml
581 lines (544 loc) · 17.5 KB
/
mihomo.yaml
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
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
# mihomo 配置
# 日期:2024-12-06 10:50:50
# 配置作者:https://t.me/iKeLee
# 适用版本:所有使用 mihomo 核心的程序
port: 7890
socks-port: 7891
mixed-port: 7892
redir-port: 7893
tproxy-port: 7894
unified-delay: true
geodata-mode: false
geodata-loader: standard
geo-auto-update: true
geo-update-interval: 24
tcp-concurrent: true
find-process-mode: strict
global-client-fingerprint: chrome
allow-lan: true
mode: rule
log-level: info
ipv6: true
udp: true
external-controller: 0.0.0.0:9090
# external-ui: ui
# external-ui-url: 'https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip'
geox-url:
# geoip: 'https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geoip.dat'
# geosite: 'https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat'
mmdb: 'https://gitlab.com/Masaiki/GeoIP2-CN/-/raw/release/Country.mmdb'
asn: 'https://gitlab.com/Loon0x00/loon_data/-/raw/main/geo/GeoLite2-ASN.mmdb'
profile:
store-selected: true
store-fake-ip: true
sniffer:
enable: true
force-dns-mapping: true
parse-pure-ip: true
override-destination: true
sniff:
HTTP:
ports: [80, 8080-8880]
override-destination: true
TLS:
ports: [443, 8443]
QUIC:
ports: [443, 8443]
force-domain:
- +.v2ex.com
skip-domain:
- Mijia Cloud
tun:
enable: true
stack: system
dns-hijack:
- any:53
auto-route: true
auto-detect-interface: true
dns:
enable: true
listen: 0.0.0.0:1053
ipv6: true
enhanced-mode: fake-ip
fake-ip-range: 28.0.0.1/8
fake-ip-filter:
- '*'
- +.lan
default-nameserver:
- 223.5.5.5
- 223.6.6.6
nameserver:
- https://223.5.5.5/dns-query#h3=true
- https://223.6.6.6/dns-query#h3=true
# 锚点 - 节点订阅的参数 [每小时更新一次订阅节点,每 6 秒一次健康检查]
NodeParam:
&NodeParam {
type: http,
interval: 3600,
health-check:
{
enable: true,
url: 'https://www.gstatic.com/generate_204',
interval: 6,
},
}
# 锚点 - 节点订阅
proxy-providers:
机场名称1:
url: '机场1的订阅URL'
<<: *NodeParam
path: './proxy_providers/机场名称1.yaml'
override:
additional-prefix: '[机场名称1] ' # 为订阅节点添加机场名称前缀
# 锚点 - 节点筛选组
FilterHK: &FilterHK '^(?=.*((?i)🇭🇰|香港|(\b(HK|Hong)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterTW: &FilterTW '^(?=.*((?i)🇹🇼|台湾|(\b(TW|Tai|Taiwan)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterJP: &FilterJP '^(?=.*((?i)🇯🇵|日本|川日|东京|大阪|泉日|埼玉|(\b(JP|Japan)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterKR: &FilterKR '^(?=.*((?i)🇰🇷|韩国|韓|首尔|(\b(KR|Korea)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterSG: &FilterSG '^(?=.*((?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterUS: &FilterUS '^(?=.*((?i)🇺🇸|美国|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|(\b(US|United States)(\d+)?\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterGame: &FilterGame '^(?=.*((?i)游戏|🎮|(\b(GAME)(\d+)?\b)))(?!.*((?i)回国|校园)).*$'
FilterAll: &FilterAll '^(?=.*(.))(?!.*((?i)群|邀请|返利|循环|官网|客服|网站|网址|获取|订阅|流量|到期|机场|下次|版本|官址|备用|过期|已用|联系|邮箱|工单|贩卖|通知|倒卖|防止|国内|地址|频道|无法|说明|使用|提示|特别|访问|支持|教程|关注|更新|作者|加入|(\b(USE|USED|TOTAL|EXPIRE|EMAIL|Panel|Channel|Author|Traffic)(\d+)?\b|(\d{4}-\d{2}-\d{2}|\dG)))).*$'
FilterTest: &FilterTest '^(?=.*实验).*$'
# 策略组参数锚点
# 锚点 - 时延优选参数 [每 6 秒一次惰性健康检查,容差 20ms,时延超过 2 秒判定为失败,失败 3 次则自动触发健康检查]
UrlTest:
&UrlTest {
type: url-test,
interval: 6,
tolerance: 20,
lazy: true,
url: 'http://www.gstatic.com/generate_204',
disable-udp: false,
timeout: 2000,
max-failed-times: 3,
hidden: true,
include-all-providers: true,
}
# 锚点 - 故障转移参数 [每 6 秒一次惰性健康检查,时延超过 2 秒判定为失败,失败 3 次则自动触发健康检查]
FallBack:
&FallBack {
type: fallback,
interval: 6,
lazy: true,
url: 'http://www.gstatic.com/generate_204',
disable-udp: false,
timeout: 2000,
max-failed-times: 3,
hidden: true,
include-all-providers: true,
}
# 锚点 - 负载均衡参数 [每 6 秒一次惰性健康检查,时延超过 2 秒判定为失败,失败 3 次则自动触发健康检查]
LoadBalance:
&LoadBalance {
type: load-balance,
interval: 6,
lazy: true,
url: 'http://www.gstatic.com/generate_204',
disable-udp: false,
strategy: consistent-hashing,
timeout: 2000,
max-failed-times: 3,
hidden: true,
include-all-providers: true,
}
# 锚点 - 规则参数 [每小时更新一次订阅规则,更新规则时使用直连策略]
RuleProviders:
&RuleProviders {
type: http,
behavior: classical,
interval: 3600,
format: text,
}
# 策略组
proxy-groups:
- {
name: 节点选择,
type: select,
proxies:
[
自动选择,
实验策略,
香港策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Global.png',
}
- {
name: 自动选择,
<<: *UrlTest,
hidden: false,
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Speedtest.png',
}
- {
name: 全球手动,
type: select,
include-all-providers: true,
filter: *FilterAll,
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Static.png',
}
- {
name: AI,
type: select,
proxies:
[
台湾策略,
节点选择,
实验策略,
香港策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/OpenAI.png',
}
- {
name: 终点站,
type: select,
proxies:
[
实验策略,
节点选择,
香港策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/black2c7/Emby-icons/main/Icons/ZDZ2.png',
}
- {
name: Emby,
type: select,
proxies:
[
全球直连,
节点选择,
实验策略,
香港策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Emby.png',
}
- {
name: Spotify,
type: select,
proxies:
[
香港策略,
节点选择,
实验策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Spotify.png',
}
- {
name: Telegram,
type: select,
proxies:
[
狮城策略,
节点选择,
实验策略,
香港策略,
台湾策略,
日本策略,
韩国策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Telegram.png',
}
- {
name: YouTube,
type: select,
proxies:
[
实验策略,
节点选择,
香港策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/YouTube.png',
}
- {
name: Netflix,
type: select,
proxies:
[
实验策略,
节点选择,
香港策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Netflix.png',
}
- {
name: Apple,
type: select,
proxies:
[
全球直连,
节点选择,
实验策略,
香港策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Apple.png',
}
- {
name: Microsoft,
type: select,
proxies:
[
节点选择,
实验策略,
香港策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Microsoft.png',
}
- {
name: 全球拦截,
type: select,
proxies: [REJECT, DIRECT],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Adblock.png',
}
- {
name: 全球直连,
type: select,
proxies: [DIRECT, REJECT],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/China.png',
}
- {
name: 漏网之鱼,
type: select,
proxies:
[
节点选择,
实验策略,
香港策略,
台湾策略,
日本策略,
韩国策略,
狮城策略,
美国策略,
全球手动,
全球直连,
],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Final.png',
}
- {
name: 实验策略,
type: select,
proxies: [实验时延优选策略组, 实验故障转移策略组, 实验负载均衡策略组],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/Flower.png',
}
- {
name: 香港策略,
type: select,
proxies: [香港时延优选策略组, 香港故障转移策略组, 香港负载均衡策略组],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/HK.png',
}
- {
name: 台湾策略,
type: select,
proxies: [台湾时延优选策略组, 台湾故障转移策略组, 台湾负载均衡策略组],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/TW.png',
}
- {
name: 日本策略,
type: select,
proxies: [日本时延优选策略组, 日本故障转移策略组, 日本负载均衡策略组],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/JP.png',
}
- {
name: 韩国策略,
type: select,
proxies: [韩国时延优选策略组, 韩国故障转移策略组, 韩国负载均衡策略组],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/KR.png',
}
- {
name: 狮城策略,
type: select,
proxies: [狮城时延优选策略组, 狮城故障转移策略组, 狮城负载均衡策略组],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/SG.png',
}
- {
name: 美国策略,
type: select,
proxies: [美国时延优选策略组, 美国故障转移策略组, 美国负载均衡策略组],
icon: 'https://raw.githubusercontent.com/Orz-3/mini/master/Color/US.png',
}
# 时延优选策略组
- { name: 实验时延优选策略组, <<: *UrlTest, filter: *FilterTest }
- { name: 香港时延优选策略组, <<: *UrlTest, filter: *FilterHK }
- { name: 台湾时延优选策略组, <<: *UrlTest, filter: *FilterTW }
- { name: 日本时延优选策略组, <<: *UrlTest, filter: *FilterJP }
- { name: 韩国时延优选策略组, <<: *UrlTest, filter: *FilterKR }
- { name: 狮城时延优选策略组, <<: *UrlTest, filter: *FilterSG }
- { name: 美国时延优选策略组, <<: *UrlTest, filter: *FilterUS }
# 故障转移策略组
- { name: 实验故障转移策略组, <<: *FallBack, filter: *FilterTest }
- { name: 香港故障转移策略组, <<: *FallBack, filter: *FilterHK }
- { name: 台湾故障转移策略组, <<: *FallBack, filter: *FilterTW }
- { name: 日本故障转移策略组, <<: *FallBack, filter: *FilterJP }
- { name: 韩国故障转移策略组, <<: *FallBack, filter: *FilterKR }
- { name: 狮城故障转移策略组, <<: *FallBack, filter: *FilterSG }
- { name: 美国故障转移策略组, <<: *FallBack, filter: *FilterUS }
# 负载均衡策略组
- { name: 实验负载均衡策略组, <<: *LoadBalance, filter: *FilterTest }
- { name: 香港负载均衡策略组, <<: *LoadBalance, filter: *FilterHK }
- { name: 台湾负载均衡策略组, <<: *LoadBalance, filter: *FilterTW }
- { name: 日本负载均衡策略组, <<: *LoadBalance, filter: *FilterJP }
- { name: 韩国负载均衡策略组, <<: *LoadBalance, filter: *FilterKR }
- { name: 狮城负载均衡策略组, <<: *LoadBalance, filter: *FilterSG }
- { name: 美国负载均衡策略组, <<: *LoadBalance, filter: *FilterUS }
# 订阅规则
rule-providers:
LocalAreaNetwork:
<<: *RuleProviders
path: './rules/LocalAreaNetwork.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/LocalAreaNetwork.list'
UnBan:
<<: *RuleProviders
path: './rules/UnBan.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/UnBan.list'
BanAD:
<<: *RuleProviders
path: './rules/BanAD.list'
url: 'https://adrules.top/adrules.list'
GoogleCN:
<<: *RuleProviders
path: './rules/GoogleCN.list'
url: 'https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/GoogleCN.list'
SteamCN:
<<: *RuleProviders
path: './rules/SteamCN.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/Ruleset/SteamCN.list'
Microsoft:
<<: *RuleProviders
path: './rules/Microsoft.list'
url: 'https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Microsoft/Microsoft.list'
Apple:
<<: *RuleProviders
path: './rules/Apple.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/Apple.list'
Telegram:
<<: *RuleProviders
path: './rules/Telegram.list'
url: 'https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Telegram.list'
AI:
<<: *RuleProviders
path: './rules/AI.list'
url: 'https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Clash/OpenAI/OpenAI.list'
ZDZ:
<<: *RuleProviders
path: './rules/ZDZ.list'
url: 'https://raw.githubusercontent.com/leon0x00/ProxyResource/refs/heads/main/ZDZ.list'
Emby:
<<: *RuleProviders
path: './rules/Emby.list'
url: 'https://raw.githubusercontent.com/leon0x00/ProxyResource/refs/heads/main/Emby.list'
Spotify:
<<: *RuleProviders
path: './rules/Spotify.list'
url: 'https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Clash/Spotify/Spotify.list'
YouTube:
<<: *RuleProviders
path: './rules/YouTube.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/Ruleset/YouTube.list'
Netflix:
<<: *RuleProviders
path: './rules/Netflix.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/Ruleset/Netflix.list'
ProxyMedia:
<<: *RuleProviders
path: './rules/ProxyMedia.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/ProxyMedia.list'
ProxyGFWlist:
<<: *RuleProviders
path: './rules/ProxyGFWlist.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/ProxyGFWlist.list'
ChinaDomain:
<<: *RuleProviders
path: './rules/ChinaDomain.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/ChinaDomain.list'
ChinaCompanyIp:
<<: *RuleProviders
path: './rules/ChinaCompanyIp.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/ChinaCompanyIp.list'
Download:
<<: *RuleProviders
path: './rules/Download.list'
url: 'https://github.com/ACL4SSR/ACL4SSR/raw/refs/heads/master/Clash/Download.list'
# 规则指向
rules:
- RULE-SET, LocalAreaNetwork, 全球直连
- RULE-SET, UnBan, 全球直连
- RULE-SET, BanAD, 全球拦截
- RULE-SET, GoogleCN, 全球直连
- RULE-SET, SteamCN, 全球直连
- RULE-SET, ZDZ, 终点站
- RULE-SET, Emby, Emby
- RULE-SET, Microsoft, Microsoft
- RULE-SET, Apple, Apple
- RULE-SET, Telegram, Telegram
- RULE-SET, AI, AI
- RULE-SET, Spotify, Spotify
- RULE-SET, YouTube, YouTube
- RULE-SET, Netflix, Netflix
- RULE-SET, ProxyMedia, 节点选择
- RULE-SET, ProxyGFWlist, 节点选择
- RULE-SET, ChinaDomain, 全球直连
- RULE-SET, ChinaCompanyIp, 全球直连
- RULE-SET, Download, 全球直连
- GEOIP, CN, 全球直连
- MATCH, 漏网之鱼