-
Notifications
You must be signed in to change notification settings - Fork 77
/
main.yaml
618 lines (618 loc) · 16.9 KB
/
main.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
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
---
proxy-providers:
VVIP-IPTUNNELS-ID:
type: file
path: "./proxy_provider/vvip-id.yaml"
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 180
VVIP-IPTUNNELS-SG:
type: file
path: "./proxy_provider/vvip-sg.yaml"
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 180
VVIP-IPTUNNELS-GAME:
type: file
path: "./proxy_provider/vvip-game.yaml"
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 180
proxy-groups:
- name: Route VVIP ID
type: load-balance
strategy: round-robin
disable-udp: false
use:
- VVIP-IPTUNNELS-ID
url: http://www.gstatic.com/generate_204
interval: 360
- name: Route VVIP SG
type: load-balance
strategy: round-robin
disable-udp: false
use:
- VVIP-IPTUNNELS-SG
url: http://www.gstatic.com/generate_204
interval: 360
- name: Route VVIP GAME
type: url-test
disable-udp: false
use:
- VVIP-IPTUNNELS-GAME
url: http://www.gstatic.com/generate_204
interval: 600
- name: TrafficDirect
type: select
disable-udp: false
proxies:
- Direct Multi-WAN
- Route VVIP ID
- Route VVIP SG
- name: Direct Multi-WAN
type: select
disable-udp: false
proxies:
- Direct WAN A
- Direct WAN B
- Direct WAN C
- name: Direct WAN A
type: select
disable-udp: false
interface-name: eth1
proxies:
- DIRECT
- name: Direct WAN B
type: select
disable-udp: false
interface-name: wlan0
proxies:
- DIRECT
- name: Direct WAN C
type: select
disable-udp: false
interface-name: eth2
proxies:
- DIRECT
- name: TrafficPortGames
type: select
disable-udp: false
proxies:
- TrafficDirect
- Route VVIP GAME
- name: TrafficGaming
type: select
disable-udp: false
proxies:
- Route VVIP GAME
- TrafficDirect
use:
- VVIP-IPTUNNELS-GAME
- name: TrafficAds
type: select
disable-udp: false
proxies:
- REJECT
- Route VVIP SG
- Route VVIP ID
- name: TrafficPorn
type: select
disable-udp: false
proxies:
- REJECT
- Route VVIP SG
- Route VVIP ID
- name: TrafficUmum
type: fallback
lazy: true
disable-udp: false
proxies:
- Route VVIP SG
- Route VVIP ID
- Direct Multi-WAN
url: http://www.gstatic.com/generate_204
interval: '30'
- name: TrafficIndo
type: fallback
lazy: true
disable-udp: false
proxies:
- Route VVIP ID
- Route VVIP SG
- TrafficDirect
url: http://www.gstatic.com/generate_204
interval: '30'
- name: TrafficStreaming
type: fallback
lazy: true
disable-udp: false
proxies:
- Route VVIP SG
- Route VVIP ID
- Direct Multi-WAN
url: http://www.gstatic.com/generate_204
interval: '30'
- name: TrafficSosmed
type: fallback
lazy: true
disable-udp: false
proxies:
- Route VVIP ID
- Route VVIP SG
- Direct Multi-WAN
url: http://www.gstatic.com/generate_204
interval: '30'
redir-port: 7892
port: 7890
socks-port: 7891
mixed-port: 7893
mode: rule
log-level: silent
allow-lan: true
external-controller: 0.0.0.0:9090
secret: '123456'
bind-address: "*"
external-ui: "/usr/share/openclash/ui"
experimental:
ignore-resolve-fail: true
dns:
enable: true
ipv6: true
enhanced-mode: fake-ip
listen: 0.0.0.0:7874
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- "*.lan"
- "*.localdomain"
- "*.example"
- "*.invalid"
- "*.localhost"
- "*.test"
- "*.local"
- "*.home.arpa"
- time.*.com
- time.*.gov
- time.*.edu.cn
- time.*.apple.com
- time1.*.com
- time2.*.com
- time3.*.com
- time4.*.com
- time5.*.com
- time6.*.com
- time7.*.com
- ntp.*.com
- ntp1.*.com
- ntp2.*.com
- ntp3.*.com
- ntp4.*.com
- ntp5.*.com
- ntp6.*.com
- ntp7.*.com
- "*.time.edu.cn"
- "*.ntp.org.cn"
- "+.pool.ntp.org"
- time1.cloud.tencent.com
- music.163.com
- "*.music.163.com"
- "*.126.net"
- musicapi.taihe.com
- music.taihe.com
- songsearch.kugou.com
- trackercdn.kugou.com
- "*.kuwo.cn"
- api-jooxtt.sanook.com
- api.joox.com
- joox.com
- y.qq.com
- "*.y.qq.com"
- streamoc.music.tc.qq.com
- mobileoc.music.tc.qq.com
- isure.stream.qqmusic.qq.com
- dl.stream.qqmusic.qq.com
- aqqmusic.tc.qq.com
- amobile.music.tc.qq.com
- "*.xiami.com"
- "*.music.migu.cn"
- music.migu.cn
- "+.msftconnecttest.com"
- "+.msftncsi.com"
- msftconnecttest.com
- msftncsi.com
- localhost.ptlogin2.qq.com
- localhost.sec.qq.com
- "+.srv.nintendo.net"
- "*.n.n.srv.nintendo.net"
- "+.stun.playstation.net"
- xbox.*.*.microsoft.com
- "*.*.xboxlive.com"
- xbox.*.microsoft.com
- xnotify.xboxlive.com
- "+.battlenet.com.cn"
- "+.wotgame.cn"
- "+.wggames.cn"
- "+.wowsgame.cn"
- "+.wargaming.net"
- proxy.golang.org
- stun.*.*
- stun.*.*.*
- "+.stun.*.*"
- "+.stun.*.*.*"
- "+.stun.*.*.*.*"
- "+.stun.*.*.*.*.*"
- heartbeat.belkin.com
- "*.linksys.com"
- "*.linksyssmartwifi.com"
- "*.router.asus.com"
- mesu.apple.com
- swscan.apple.com
- swquery.apple.com
- swdownload.apple.com
- swcdn.apple.com
- swdist.apple.com
- lens.l.google.com
- stun.l.google.com
- "+.nflxvideo.net"
- "*.square-enix.com"
- "*.finalfantasyxiv.com"
- "*.ffxiv.com"
- "*.ff14.sdo.com"
- ff.dorado.sdo.com
- "*.mcdn.bilivideo.cn"
- "+.media.dssott.com"
- time-ios.apple.com
- shark007.net
fallback-filter:
geoip: true
geoip-code: ID
ipcidr:
- 0.0.0.0/8
- 10.0.0.0/8
- 100.64.0.0/10
- 127.0.0.0/8
- 169.254.0.0/16
- 172.16.0.0/12
- 192.0.0.0/24
- 192.0.2.0/24
- 192.88.99.0/24
- 192.168.0.0/16
- 198.18.0.0/15
- 198.51.100.0/24
- 203.0.113.0/24
- 224.0.0.0/4
- 240.0.0.0/4
- 255.255.255.255/32
domain:
- "+.google.com"
- "+.facebook.com"
- "+.youtube.com"
- "+.githubusercontent.com"
- "+.googlevideo.com"
- "+.msftconnecttest.com"
- "+.msftncsi.com"
- msftconnecttest.com
- msftncsi.com
- "+.*"
default-nameserver:
- 8.8.8.8
- 8.8.4.4
- 1.1.1.1
- 1.0.0.1
- 9.9.9.9
- 149.112.112.112
- 208.67.222.222
- 208.67.220.220
- 185.228.168.9
- 185.228.169.168
- 76.76.2.0
- 76.76.10.0
- 94.140.14.140
- 94.140.14.141
- 172.105.216.54
nameserver:
- 1.1.1.1
- 8.8.8.8
- 9.9.9.9
fallback:
- 1.1.1.1
- 8.8.8.8
- 9.9.9.9
profile:
store-selected: true
store-fakeip: true
store-fake-ip: true
rules:
- IP-CIDR,198.18.0.1/16,REJECT,no-resolve
- DST-PORT,22,TrafficDirect
- RULE-SET,rule_lancidr,DIRECT,no-resolve
- RULE-SET,rule_falsepositive,TrafficUmum
- RULE-SET,rule_malicious,REJECT
- RULE-SET,rule_maliciousip,REJECT
- RULE-SET,rule_personalads,TrafficAds
- RULE-SET,rule_basicads,TrafficAds
- RULE-SET,rule_hijacking,TrafficAds
- RULE-SET,rule_privacy,TrafficAds
- RULE-SET,rule_porn,TrafficPorn
- RULE-SET,rule_nsfw,TrafficPorn
- RULE-SET,rule_Direct,TrafficDirect
- SCRIPT,speedtest,TrafficUmum
- RULE-SET,rule_playstore,TrafficUmum
- RULE-SET,rule_disneyplus,TrafficIndo
- RULE-SET,rule_netflix,TrafficIndo
- RULE-SET,rule_Indo,TrafficIndo
- RULE-SET,rule_hbo,TrafficIndo
- RULE-SET,rule_hboasia,TrafficIndo
- RULE-SET,rule_hbohk,TrafficIndo
- RULE-SET,rule_hbousa,TrafficIndo
- RULE-SET,rule_Streaming,TrafficStreaming
- RULE-SET,rule_iqiyi,TrafficStreaming
- RULE-SET,rule_iqiyiinter,TrafficStreaming
- RULE-SET,rule_primevideo,TrafficStreaming
- RULE-SET,rule_twitch,TrafficStreaming
- RULE-SET,rule_Youtube,TrafficStreaming
- RULE-SET,rule_Sosmed,TrafficSosmed
- RULE-SET,rule_line,TrafficSosmed
- RULE-SET,rule_metaverse,TrafficSosmed
- RULE-SET,rule_tiktok,TrafficSosmed
- RULE-SET,rule_twitter,TrafficSosmed
- RULE-SET,rule_telegram,TrafficSosmed
- RULE-SET,rule_telegramcidr,TrafficSosmed
- RULE-SET,rule_videoconferences,TrafficStreaming
- RULE-SET,rule_portgames,TrafficPortGames
- SCRIPT,TCPgames,TrafficPortGames
- SCRIPT,UDPgames,TrafficPortGames
- RULE-SET,rule_Gaming,TrafficGaming
- RULE-SET,rule_games,TrafficGaming
- RULE-SET,rule_discord,TrafficGaming
- RULE-SET,rule_umum,TrafficUmum
- MATCH,GLOBAL
tun:
enable: true
stack: system
auto-route: false
auto-detect-interface: false
dns-hijack:
- tcp://any:53
tproxy-port: 7895
script:
shortcuts:
TCPgames: network == 'tcp' and dst_port not in [21, 22, 23, 53, 80, 123, 143, 194, 443, 465, 587, 853, 993, 995, 998, 2052, 2053, 2082, 2083, 2086, 2095, 2096, 5222, 5228, 5229, 5230, 8080, 8443, 8880, 8883, 8888, 8889]
UDPgames: network == 'udp' and dst_port not in [21, 22, 23, 53, 80, 123, 143, 194, 443, 465, 587, 853, 993, 995, 998, 2052, 2053, 2082, 2083, 2086, 2095, 2096, 5222, 5228, 5229, 5230, 8080, 8443, 8880, 8883, 8888, 8889]
speedtest: network == "tcp" and match_provider("rule_Speedtest")
rule-providers:
rule_Direct:
type: file
behavior: classical
path: "./rule_provider/rule_direct.yaml"
rule_umum:
type: http
behavior: classical
path: "./rule_provider/rule_umum.yaml"
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_umum.yaml
interval: 86400
rule_portgames:
type: http
behavior: classical
path: "./rule_provider/rule_portgames.yaml"
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_portgames.yaml
interval: 86400
rule_videoconferences:
type: http
behavior: classical
path: "./rule_provider/rule_videoconferences.yaml"
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_videoconferences.yaml
interval: 86400
rule_Indo:
type: http
behavior: classical
path: "./rule_provider/rule_indo.yaml"
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_indo.yaml
interval: 86400
rule_Sosmed:
type: http
behavior: classical
path: "./rule_provider/rule_sosmed.yaml"
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_sosmed.yaml
interval: 86400
rule_Streaming:
type: http
behavior: classical
path: "./rule_provider/rule_streaming.yaml"
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_streaming.yaml
interval: 86400
rule_Gaming:
type: http
behavior: classical
path: "./rule_provider/rule_gaming.yaml"
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_gaming.yaml
interval: 86400
rule_Speedtest:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_speedtest.yaml
path: "./rule_provider/rule_speedtest.yaml"
interval: 86400
rule_discord:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_discord.yaml
path: "./rule_provider/rule_discord.yaml"
interval: 86400
rule_hijacking:
type: http
behavior: classical
path: "./rule_provider/rule_hijacking.yaml"
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_hijacking.yaml
interval: 86400
rule_privacy:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_privacy.yaml
path: "./rule_provider/rule_privacy.yaml"
interval: 86400
rule_basicads:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_basicads.yaml
path: "./rule_provider/rule_basicads.yaml"
interval: 43200
rule_personalads:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_personalads.yaml
path: "./rule_provider/rule_personalads.yaml"
interval: 86400
rule_malicious:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_malicious.yaml
path: "./rule_provider/rule_malicious.yaml"
interval: 43200
rule_maliciousip:
type: http
behavior: ipcidr
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_maliciousip.yaml
path: "./rule_provider/rule_maliciousip.yaml"
interval: 43200
rule_falsepositive:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_falsepositive.yaml
path: "./rule_provider/rule_falsepositive.yaml"
interval: 86400
rule_porn:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_porn.yaml
path: "./rule_provider/rule_porn.yaml"
interval: 86400
rule_nsfw:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_nsfw.yaml
path: "./rule_provider/rule_nsfw.yaml"
interval: 43200
rule_lancidr:
type: http
behavior: ipcidr
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_lancidr.yaml
path: "./rule_provider/rule_lancidr.yaml"
interval: 86400
rule_telegramcidr:
type: http
behavior: ipcidr
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_telegramcidr.yaml
path: "./rule_provider/rule_telegramcidr.yaml"
interval: 86400
rule_telegram:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_telegram.yaml
path: "./rule_provider/rule_telegram.yaml"
interval: 86400
rule_disneyplus:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_disneyplus.yaml
path: "./rule_provider/rule_disneyplus.yaml"
interval: 86400
rule_games:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_games.yaml
path: "./rule_provider/rule_games.yaml"
interval: 86400
rule_hbo:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_hbo.yaml
path: "./rule_provider/rule_hbo.yaml"
interval: 86400
rule_hboasia:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_hboasia.yaml
path: "./rule_provider/rule_hboasia.yaml"
interval: 86400
rule_hbohk:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_hbohk.yaml
path: "./rule_provider/rule_hbohk.yaml"
interval: 86400
rule_hbousa:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_hbousa.yaml
path: "./rule_provider/rule_hbousa.yaml"
interval: 86400
rule_iqiyi:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_iqiyi.yaml
path: "./rule_provider/rule_iqiyi.yaml"
interval: 86400
rule_iqiyiinter:
type: http
behavior: classical
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_iqiyiinter.yaml
path: "./rule_provider/rule_iqiyiinter.yaml"
interval: 86400
rule_line:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_line.yaml
path: "./rule_provider/rule_line.yaml"
interval: 86400
rule_metaverse:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_metaverse.yaml
path: "./rule_provider/rule_metaverse.yaml"
interval: 86400
rule_netflix:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_netflix.yaml
path: "./rule_provider/rule_netflix.yaml"
interval: 86400
rule_primevideo:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_primevideo.yaml
path: "./rule_provider/rule_primevideo.yaml"
interval: 86400
rule_playstore:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_playstore.yaml
path: "./rule_provider/rule_playstore.yaml"
interval: 86400
rule_tiktok:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_tiktok.yaml
path: "./rule_provider/rule_tiktok.yaml"
interval: 86400
rule_twitch:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_twitch.yaml
path: "./rule_provider/rule_twitch.yaml"
interval: 86400
rule_twitter:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_twitter.yaml
path: "./rule_provider/rule_twitter.yaml"
interval: 86400
rule_Youtube:
type: http
behavior: domain
url: https://raw.githubusercontent.com/malikshi/open_clash/main/rule_provider/rule_youtube.yaml
path: "./rule_provider/rule_youtube.yaml"
interval: 86400
ipv6: true