-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.yaml
More file actions
697 lines (697 loc) · 15.1 KB
/
example.yaml
File metadata and controls
697 lines (697 loc) · 15.1 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
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
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
mode: rule
mixed-port: 7890
allow-lan: false
log-level: warning
ipv6: false
external-controller: ''
secret: set-your-secret
unified-delay: true
dns:
enable: true
prefer-h3: false
listen: 0.0.0.0:1053
ipv6: false
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- +.lan
- +.local
- localhost.ptlogin2.qq.com
- +.msftconnecttest.com
- +.msftncsi.com
- +.googleapis.com
- +.googleapis.cn
- alt1-mtalk.google.com
- alt2-mtalk.google.com
- alt3-mtalk.google.com
- alt4-mtalk.google.com
- alt5-mtalk.google.com
- alt6-mtalk.google.com
- alt7-mtalk.google.com
- alt8-mtalk.google.com
- mtalk.google.com
use-hosts: true
default-nameserver:
- 114.114.114.114#DIRECT
- 223.5.5.5#DIRECT
- 119.29.29.29#DIRECT
- 180.76.76.76#DIRECT
- 180.184.1.1#DIRECT
proxy-server-nameserver:
- https://dns.alidns.com/dns-query#DIRECT
- https://doh.pub/dns-query#DIRECT
- https://doh.onedns.net/dns-query#DIRECT
nameserver:
- https://cloudflare-dns.com/dns-query#主代理
nameserver-policy:
ntp.aliyun.com: https://dns.alidns.com/dns-query#DIRECT
+.msftconnecttest.com,+.msftncsi.com: https://cloudflare-dns.com/dns-query#主代理
+.googleapis.com,+.googleapis.cn: https://cloudflare-dns.com/dns-query#Google
rule-set:Bahamut-Site: https://cloudflare-dns.com/dns-query#Bahamut
rule-set:Bilibili-Site: https://dns.alidns.com/dns-query#Bilibili
rule-set:Discord-Site: https://cloudflare-dns.com/dns-query#Discord
rule-set:GoogleFCM-Site: https://cloudflare-dns.com/dns-query#GoogleFCM
rule-set:Netflix-Site: https://cloudflare-dns.com/dns-query#Netflix
rule-set:OpenAI-Site: https://cloudflare-dns.com/dns-query#OpenAI
rule-set:Speedtest-Site: https://cloudflare-dns.com/dns-query#Speedtest
rule-set:Spotify-Site: https://cloudflare-dns.com/dns-query#Spotify
rule-set:Steam-Site: https://doh.pub/dns-query#Steam
rule-set:Telegram-Site: https://cloudflare-dns.com/dns-query#Telegram
rule-set:TikTok-Site: https://cloudflare-dns.com/dns-query#TikTok
rule-set:Apple-Site: https://doh.pub/dns-query#Apple
rule-set:Google-Site: https://cloudflare-dns.com/dns-query#Google
rule-set:Microsoft-Site: https://doh.pub/dns-query#Microsoft
rule-set:GFWList-Site: https://cloudflare-dns.com/dns-query#黑名单网站
rule-set:China-Site: https://dns.alidns.com/dns-query#中国大陆网站
find-process-mode: strict
tun:
enable: true
stack: gvisor
auto-route: true
auto-detect-interface: true
strict-route: false
dns-hijack:
- any:53
device: utun1024
mtu: 1500
endpoint-independent-nat: true
tcp-concurrent: true
ntp:
enable: true
write-to-system: false
server: ntp.aliyun.com
port: 123
interval: 30
external-controller-unix: /tmp/verge/verge-mihomo.sock
global-client-fingerprint: chrome
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
skip-domain:
- Mijia Cloud
profile:
store-selected: true
store-fake-ip: true
global-ua: clash.meta
bind-address: '*'
external-controller-cors:
allow-private-network: true
allow-origins:
- tauri://localhost
- http://tauri.localhost
- https://yacd.metacubex.one
- https://metacubex.github.io
- https://board.zash.run.place
proxies:
- name: 🇭🇰 HK-1
- name: 🇭🇰 HK-2
- name: 🇭🇰 HK-3
- name: 🇭🇰 HK-4
- name: 🇭🇰 HK2-HY2
- name: 🇭🇰 HK3-HY2
- name: 🇭🇰 HK4-HY2
- name: 🇭🇰 HK5-HY2
- name: 🇯🇵 JP-1
- name: 🇯🇵 JP-2
- name: 🇯🇵 JP-3
- name: 🇯🇵 JP-4
- name: 🇯🇵 JP6-HY2
- name: 🇯🇵 JP7-HY2
- name: 🇯🇵 JP8-HY2
- name: 🇰🇷 KR-1
- name: 🇰🇷 KR-2
- name: 🇸🇬 SG-1
- name: 🇸🇬 SG-2
- name: 🇸🇬 SG-3
- name: 🇸🇬 SG1-HY2
- name: 🇸🇬 SG2-HY2
- name: 🇺🇸 ss-US-1
- name: 🇹🇼 TW-1
- name: 🇹🇼 TW-2
- name: 🇹🇼 TW-3
- name: 🇹🇼 TW-4
- name: 🇹🇼 TW-5
- name: 🇺🇸 US-1
- name: 🇺🇸 US-2
- name: 🇺🇸 US-3-gemini
- name: 🇺🇸 US-gemini-1
- name: 🇺🇸 US1-HY2
- name: 🇺🇸 US2-HY2
- name: 🇺🇸 US3-HY2
- name: 🇺🇸 US4-HY2
- name: 🇺🇸 US5-HY2
- name: 🇺🇸 US6-HY2
- name: 🇺🇸 US7-HY2
- name: 🇺🇸 US8-HY2
proxy-groups:
- name: 主代理
type: select
proxies:
- HK
- JP
- KR
- SG
- TW
- US
- DIRECT
- 🇭🇰 HK-1
- 🇭🇰 HK-2
- 🇭🇰 HK-3
- 🇭🇰 HK-4
- 🇭🇰 HK2-HY2
- 🇭🇰 HK3-HY2
- 🇭🇰 HK4-HY2
- 🇭🇰 HK5-HY2
- 🇯🇵 JP-1
- 🇯🇵 JP-2
- 🇯🇵 JP-3
- 🇯🇵 JP-4
- 🇯🇵 JP6-HY2
- 🇯🇵 JP7-HY2
- 🇯🇵 JP8-HY2
- 🇰🇷 KR-1
- 🇰🇷 KR-2
- 🇸🇬 SG-1
- 🇸🇬 SG-2
- 🇸🇬 SG-3
- 🇸🇬 SG1-HY2
- 🇸🇬 SG2-HY2
- 🇹🇼 TW-1
- 🇹🇼 TW-2
- 🇹🇼 TW-3
- 🇹🇼 TW-4
- 🇹🇼 TW-5
- 🇺🇸 US-1
- 🇺🇸 US-2
- 🇺🇸 US-3-gemini
- 🇺🇸 US-gemini-1
- 🇺🇸 US1-HY2
- 🇺🇸 US2-HY2
- 🇺🇸 US3-HY2
- 🇺🇸 US4-HY2
- 🇺🇸 US5-HY2
- 🇺🇸 US6-HY2
- 🇺🇸 US7-HY2
- 🇺🇸 US8-HY2
- 🇺🇸 ss-US-1
- name: 中国大陆网站
type: select
proxies:
- DIRECT
- 主代理
- HK
- JP
- KR
- SG
- TW
- US
- name: 黑名单网站
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Google
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Apple
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Microsoft
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Bahamut
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Bilibili
type: select
proxies:
- DIRECT
- 主代理
- HK
- JP
- KR
- SG
- TW
- US
- name: Discord
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: GoogleFCM
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Netflix
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: OpenAI
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Speedtest
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Spotify
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Steam
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: Telegram
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: TikTok
type: select
proxies:
- 主代理
- DIRECT
- HK
- JP
- KR
- SG
- TW
- US
- name: HK
type: url-test
url: https://cp.cloudflare.com
interval: 180
lazy: false
proxies:
- 🇭🇰 HK-1
- 🇭🇰 HK-2
- 🇭🇰 HK-3
- 🇭🇰 HK-4
- 🇭🇰 HK2-HY2
- 🇭🇰 HK3-HY2
- 🇭🇰 HK4-HY2
- 🇭🇰 HK5-HY2
- name: JP
type: url-test
url: https://cp.cloudflare.com
interval: 180
lazy: false
proxies:
- 🇯🇵 JP-1
- 🇯🇵 JP-2
- 🇯🇵 JP-3
- 🇯🇵 JP-4
- 🇯🇵 JP6-HY2
- 🇯🇵 JP7-HY2
- 🇯🇵 JP8-HY2
- name: KR
type: url-test
url: https://cp.cloudflare.com
interval: 180
lazy: false
proxies:
- 🇰🇷 KR-1
- 🇰🇷 KR-2
- name: SG
type: url-test
url: https://cp.cloudflare.com
interval: 180
lazy: false
proxies:
- 🇸🇬 SG-1
- 🇸🇬 SG-2
- 🇸🇬 SG-3
- 🇸🇬 SG1-HY2
- 🇸🇬 SG2-HY2
- name: TW
type: url-test
url: https://cp.cloudflare.com
interval: 180
lazy: false
proxies:
- 🇹🇼 TW-1
- 🇹🇼 TW-2
- 🇹🇼 TW-3
- 🇹🇼 TW-4
- 🇹🇼 TW-5
- name: US
type: url-test
url: https://cp.cloudflare.com
interval: 180
lazy: false
proxies:
- 🇺🇸 ss-US-1
- 🇺🇸 US-1
- 🇺🇸 US-2
- 🇺🇸 US-3-gemini
- 🇺🇸 US-gemini-1
- 🇺🇸 US1-HY2
- 🇺🇸 US2-HY2
- 🇺🇸 US3-HY2
- 🇺🇸 US4-HY2
- 🇺🇸 US5-HY2
- 🇺🇸 US6-HY2
- 🇺🇸 US7-HY2
- 🇺🇸 US8-HY2
rule-providers:
Apple-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Apple/Apple-Site.mrs
path: ./ruleset/Apple-Site.mrs
proxy: DIRECT
interval: 86400
Apple-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Apple/Apple-IP.mrs
path: ./ruleset/Apple-IP.mrs
proxy: DIRECT
interval: 86400
Bahamut-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Bahamut/Bahamut-Site.mrs
path: ./ruleset/Bahamut-Site.mrs
proxy: DIRECT
interval: 86400
Bilibili-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Bilibili/Bilibili-Site.mrs
path: ./ruleset/Bilibili-Site.mrs
proxy: DIRECT
interval: 86400
Bilibili-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Bilibili/Bilibili-IP.mrs
path: ./ruleset/Bilibili-IP.mrs
proxy: DIRECT
interval: 86400
China-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/China/China-Site.mrs
path: ./ruleset/China-Site.mrs
proxy: DIRECT
interval: 86400
China-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/China/China-IP.mrs
path: ./ruleset/China-IP.mrs
proxy: DIRECT
interval: 86400
Discord-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Discord/Discord-Site.mrs
path: ./ruleset/Discord-Site.mrs
proxy: DIRECT
interval: 86400
GFWList-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/GFWList/GFWList-Site.mrs
path: ./ruleset/GFWList-Site.mrs
proxy: DIRECT
interval: 86400
Google-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Google/Google-Site.mrs
path: ./ruleset/Google-Site.mrs
proxy: DIRECT
interval: 86400
Google-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Google/Google-IP.mrs
path: ./ruleset/Google-IP.mrs
proxy: DIRECT
interval: 86400
GoogleFCM-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/GoogleFCM/GoogleFCM-Site.mrs
path: ./ruleset/GoogleFCM-Site.mrs
proxy: DIRECT
interval: 86400
Local-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Local/Local-IP.mrs
path: ./ruleset/Local-IP.mrs
proxy: DIRECT
interval: 86400
Microsoft-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Microsoft/Microsoft-Site.mrs
path: ./ruleset/Microsoft-Site.mrs
proxy: DIRECT
interval: 86400
Netflix-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Netflix/Netflix-Site.mrs
path: ./ruleset/Netflix-Site.mrs
proxy: DIRECT
interval: 86400
Netflix-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Netflix/Netflix-IP.mrs
path: ./ruleset/Netflix-IP.mrs
proxy: DIRECT
interval: 86400
OpenAI-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/OpenAI/OpenAI-Site.mrs
path: ./ruleset/OpenAI-Site.mrs
proxy: DIRECT
interval: 86400
OpenAI-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/OpenAI/OpenAI-IP.mrs
path: ./ruleset/OpenAI-IP.mrs
proxy: DIRECT
interval: 86400
Speedtest-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Speedtest/Speedtest-Site.mrs
path: ./ruleset/Speedtest-Site.mrs
proxy: DIRECT
interval: 86400
Spotify-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Spotify/Spotify-Site.mrs
path: ./ruleset/Spotify-Site.mrs
proxy: DIRECT
interval: 86400
Spotify-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Spotify/Spotify-IP.mrs
path: ./ruleset/Spotify-IP.mrs
proxy: DIRECT
interval: 86400
Steam-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Steam/Steam-Site.mrs
path: ./ruleset/Steam-Site.mrs
proxy: DIRECT
interval: 86400
Telegram-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Telegram/Telegram-Site.mrs
path: ./ruleset/Telegram-Site.mrs
proxy: DIRECT
interval: 86400
Telegram-IP:
type: http
behavior: ipcidr
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Telegram/Telegram-IP.mrs
path: ./ruleset/Telegram-IP.mrs
proxy: DIRECT
interval: 86400
TikTok-Site:
type: http
behavior: domain
format: mrs
url: https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/TikTok/TikTok-Site.mrs
path: ./ruleset/TikTok-Site.mrs
proxy: DIRECT
interval: 86400
rules:
- AND,((DST-PORT,443),(NETWORK,UDP)),REJECT
- DOMAIN,ntp.aliyun.com,DIRECT
- DOMAIN-KEYWORD,msftconnecttest.com,主代理
- DOMAIN-KEYWORD,msftncsi.com,主代理
- DOMAIN-KEYWORD,googleapis,Google
- RULE-SET,Bahamut-Site,Bahamut
- RULE-SET,Bilibili-Site,Bilibili
- RULE-SET,Discord-Site,Discord
- RULE-SET,GoogleFCM-Site,GoogleFCM
- RULE-SET,Netflix-Site,Netflix
- RULE-SET,OpenAI-Site,OpenAI
- RULE-SET,Speedtest-Site,Speedtest
- RULE-SET,Spotify-Site,Spotify
- RULE-SET,Steam-Site,Steam
- RULE-SET,Telegram-Site,Telegram
- RULE-SET,TikTok-Site,TikTok
- RULE-SET,Apple-Site,Apple
- RULE-SET,Google-Site,Google
- RULE-SET,Microsoft-Site,Microsoft
- RULE-SET,GFWList-Site,黑名单网站
- RULE-SET,China-Site,中国大陆网站
- RULE-SET,Local-IP,DIRECT,no-resolve
- RULE-SET,Bilibili-IP,Bilibili
- RULE-SET,Netflix-IP,Netflix
- RULE-SET,OpenAI-IP,OpenAI
- RULE-SET,Spotify-IP,Spotify
- RULE-SET,Telegram-IP,Telegram
- RULE-SET,Apple-IP,Apple
- RULE-SET,Google-IP,Google
- RULE-SET,China-IP,中国大陆网站
- MATCH,主代理