折腾了两个星期终于搞定了clash配置防止dns泄露的问题,附上详细的配置
警告,网络充满着虚假信息和极端思想,请自行加以甄别和认知,我们畅通外网,需要的是学习更多新知识,切勿以身试法
之前一直在用passwall,还是不错的,但是接触了clash后发现更优秀阿,但是真的非常难上手
使用clash功能非常强大,而且也比较稳定,特别是广告过滤,youtube直接跳过了没有什么广告等待时间了
下面是clash配置防止dns泄露的整体clash运行配置文件,注意使用的 Meta内核
下面的配置支持所有的协议比如,tuic,hysteria2等等,请修改自己的节点信息,切勿照抄。
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
---
port: 7890
socks-port: 7891
allow-lan: true
mode: rule
log-level: info
external-controller: 0.0.0.0:9090
dns:
enable: true
prefer-h3: true
ipv6: true
listen: 0.0.0.0:7874
fake-ip-range: 198.18.0.1/16
enhanced-mode: fake-ip
fake-ip-filter:
- "*"
- "+.lan"
- "+.local"
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
nameserver:
- 114.114.114.114
- 119.29.29.29
- 223.5.5.5
- https://doh.pub/dns-query
- https://223.5.5.5/dns-query
fallback:
- https://dns.cloudflare.com/dns-query
proxies:
- name: westnode xtls-reality
type: vless
server: 1.0.0.1
port: 9093
uuid: you-key-you-passwd
network: tcp
udp: true
tls: true
servername: addons.mozilla.org
client-fingerprint: chrome
reality-opts:
public-key: you-key
short-id: ""
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
- name: "\U0001F1ED\U0001F1F0 香港节点"
type: hysteria2
server: 1.0.0.1
ports: 50000-51000
HopInterval: 60
up: 200 Mbps
down: 1000 Mbps
password: you-key-you-passwd
skip-cert-verify: true
- name: "\U0001F1F9\U0001F1FC 台湾节点"
type: tuic
server: 1.0.0.1
port: 9693
uuid: you-key-you-passwd
password: you-key-you-passwd
alpn:
- h3
disable-sni: true
reduce-rtt: true
request-timeout: 8000
udp-relay-mode: native
congestion-controller: bbr
skip-cert-verify: true
- name: westnode trojan
type: trojan
server: 1.0.0.1
port: 9699
password: you-key-you-passwd
client-fingerprint: random
skip-cert-verify: true
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
- name: westnode grpc-reality
type: vless
server: 1.0.0.1
port: 9589
uuid: you-key-you-passwd
network: grpc
tls: true
udp: true
flow:
client-fingerprint: chrome
servername: addons.mozilla.org
grpc-opts:
grpc-service-name: grpc
reality-opts:
public-key: you-key
short-id: ""
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
- name: usnode xtls-reality
type: vless
server: 1.1.1.1
port: 9093
uuid: you-key-you-passwd
network: tcp
udp: true
tls: true
servername: addons.mozilla.org
client-fingerprint: chrome
reality-opts:
public-key: you-key
short-id: ""
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
- name: "\U0001F1EF\U0001F1F5 日本节点"
type: hysteria2
server: 1.1.1.1
ports: 50000-51000
HopInterval: 60
up: 200 Mbps
down: 1000 Mbps
password: you-key-you-passwd
skip-cert-verify: true
- name: "\U0001F1F0\U0001F1F7 韩国节点"
type: tuic
server: 1.1.1.1
port: 9693
uuid: you-key-you-passwd
password: you-key-you-passwd
alpn:
- h3
disable-sni: true
reduce-rtt: true
request-timeout: 8000
udp-relay-mode: native
congestion-controller: bbr
skip-cert-verify: true
- name: usnode trojan
type: trojan
server: 1.1.1.1
port: 9699
password: you-key-you-passwd
client-fingerprint: random
skip-cert-verify: true
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
- name: usnode grpc-reality
type: vless
server: 1.1.1.1
port: 9589
uuid: you-key-you-passwd
network: grpc
tls: true
udp: true
flow:
client-fingerprint: chrome
servername: addons.mozilla.org
grpc-opts:
grpc-service-name: grpc
reality-opts:
public-key: you-key
short-id: ""
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
- name: eurnode xtls-reality
type: vless
server: 8.8.8.8
port: 9093
uuid: you-key-you-passwd
network: tcp
udp: true
tls: true
servername: addons.mozilla.org
client-fingerprint: chrome
reality-opts:
public-key: you-key
short-id: ""
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
- name: "\U0001F1F8\U0001F1EC 新加坡节点"
type: hysteria2
server: 8.8.8.8
ports: 50000-51000
HopInterval: 60
up: 200 Mbps
down: 1000 Mbps
password: you-key-you-passwd
skip-cert-verify: true
- name: "\U0001F1FA\U0001F1F8 美国节点"
type: tuic
server: 8.8.8.8
port: 9693
uuid: you-key-you-passwd
password: you-key-you-passwd
alpn:
- h3
disable-sni: true
reduce-rtt: true
request-timeout: 8000
udp-relay-mode: native
congestion-controller: bbr
skip-cert-verify: true
- name: eurnode trojan
type: trojan
server: 8.8.8.8
port: 9699
password: you-key-you-passwd
client-fingerprint: random
skip-cert-verify: true
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
- name: eurnode grpc-reality
type: vless
server: 8.8.8.8
port: 9589
uuid: you-key-you-passwd
network: grpc
tls: true
udp: true
flow:
client-fingerprint: chrome
servername: addons.mozilla.org
grpc-opts:
grpc-service-name: grpc
reality-opts:
public-key: you-key
short-id: ""
smux:
enabled: true
protocol: h2mux
padding: true
max-connections: "8"
min-streams: "16"
statistic: true
only-tcp: false
proxy-groups:
- name: "\U0001F680 节点选择"
type: select
proxies:
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1F9\U0001F1FC 台湾节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F0\U0001F1F7 韩国节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F41F 漏网之鱼"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- "\U0001F1F9\U0001F1FC 台湾节点"
- "\U0001F1F0\U0001F1F7 韩国节点"
- name: "\U0001F4C8 网络测试"
type: select
proxies:
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1F9\U0001F1FC 台湾节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F0\U0001F1F7 韩国节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F916 人工智能"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F3AE 游戏服务"
type: select
proxies:
- "\U0001F3AF 全球直连"
- "\U0001F680 节点选择"
- name: "\U0001FA9F 微软服务"
type: select
proxies:
- "\U0001F3AF 全球直连"
- "\U0001F680 节点选择"
- name: "\U0001F1EC 谷歌服务"
type: select
proxies:
- "\U0001F3AF 全球直连"
- "\U0001F680 节点选择"
- name: "\U0001F34E 苹果服务"
type: select
proxies:
- "\U0001F3AF 全球直连"
- "\U0001F680 节点选择"
- name: "\U0001F3A5 奈飞视频"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F4FD️ 迪士尼+"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F39E️ Max"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F3AC Prime Video"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F34E Apple TV+"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F4F9 油管视频"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F3B5 TikTok"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F4FA 哔哩哔哩"
type: select
proxies:
- "\U0001F3AF 全球直连"
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F1E8\U0001F1F3 直连域名"
type: select
proxies:
- DIRECT
- name: "\U0001F1E8\U0001F1F3 直连 IP"
type: select
proxies:
- DIRECT
- name: "\U0001FA9C 代理域名"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F4F2 电报消息"
type: select
proxies:
- "\U0001F680 节点选择"
- "\U0001F1ED\U0001F1F0 香港节点"
- "\U0001F1EF\U0001F1F5 日本节点"
- "\U0001F1F8\U0001F1EC 新加坡节点"
- "\U0001F1FA\U0001F1F8 美国节点"
- name: "\U0001F5A5️ 直连软件"
type: select
proxies:
- DIRECT
- name: "\U0001F512 私有网络"
type: select
proxies:
- DIRECT
- name: "\U0001F6D1 广告拦截"
type: select
proxies:
- REJECT
- name: "\U0001F3AF 全球直连"
type: select
proxies:
- DIRECT
rule-providers:
ads:
type: http
behavior: domain
format: text
path: "./rule_provider/ads.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/ads.list
interval: 86400
applications:
type: http
behavior: classical
format: text
path: "./rule_provider/applications.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/applications.list
interval: 86400
private:
type: http
behavior: domain
format: text
path: "./rule_provider/private.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/private.list
interval: 86400
microsoft-cn:
type: http
behavior: domain
format: text
path: "./rule_provider/microsoft-cn.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/microsoft-cn.list
interval: 86400
apple-cn:
type: http
behavior: domain
format: text
path: "./rule_provider/apple-cn.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/apple-cn.list
interval: 86400
google-cn:
type: http
behavior: domain
format: text
path: "./rule_provider/google-cn.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/google-cn.list
interval: 86400
games-cn:
type: http
behavior: domain
format: text
path: "./rule_provider/games-cn.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/games-cn.list
interval: 86400
netflix:
type: http
behavior: domain
format: text
path: "./rule_provider/netflix.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/netflix.list
interval: 86400
disney:
type: http
behavior: domain
format: text
path: "./rule_provider/disney.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/disney.list
interval: 86400
max:
type: http
behavior: domain
format: text
path: "./rule_provider/max.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/max.list
interval: 86400
primevideo:
type: http
behavior: domain
format: text
path: "./rule_provider/primevideo.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/primevideo.list
interval: 86400
appletv:
type: http
behavior: domain
format: text
path: "./rule_provider/appletv.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/appletv.list
interval: 86400
youtube:
type: http
behavior: domain
format: text
path: "./rule_provider/youtube.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/youtube.list
interval: 86400
tiktok:
type: http
behavior: domain
format: text
path: "./rule_provider/tiktok.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/tiktok.list
interval: 86400
bilibili:
type: http
behavior: domain
format: text
path: "./rule_provider/bilibili.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/bilibili.list
interval: 86400
ai:
type: http
behavior: domain
format: text
path: "./rule_provider/ai.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/ai.list
interval: 86400
networktest:
type: http
behavior: classical
format: text
path: "./rule_provider/networktest.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/networktest.list
interval: 86400
proxy:
type: http
behavior: domain
format: text
path: "./rule_provider/proxy.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/proxy.list
interval: 86400
cn:
type: http
behavior: domain
format: text
path: "./rule_provider/cn.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/cn.list
interval: 86400
netflixip:
type: http
behavior: ipcidr
format: text
path: "./rule_provider/netflixip.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/netflixip.list
interval: 86400
telegramip:
type: http
behavior: ipcidr
format: text
path: "./rule_provider/telegramip.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/telegramip.list
interval: 86400
privateip:
type: http
behavior: ipcidr
format: text
path: "./rule_provider/privateip.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/privateip.list
interval: 86400
cnip:
type: http
behavior: ipcidr
format: text
path: "./rule_provider/cnip.list"
url: https://raw.githubusercontent.com/DustinWin/ruleset_geodata/clash-ruleset/cnip.list
interval: 86400
twitter:
type: http
behavior: ipcidr
format: text
path: "./rule_provider/Twitter.list"
url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Twitter.list
interval: 86400
rules:
- DST-PORT,7895,REJECT
- DST-PORT,7892,REJECT
- IP-CIDR,198.18.0.1/16,REJECT,no-resolve
- "RULE-SET,ads,\U0001F6D1 广告拦截"
- "RULE-SET,applications,\U0001F5A5️ 直连软件"
- "RULE-SET,private,\U0001F512 私有网络"
- "RULE-SET,microsoft-cn,\U0001FA9F 微软服务"
- "RULE-SET,apple-cn,\U0001F34E 苹果服务"
- "RULE-SET,google-cn,\U0001F1EC 谷歌服务"
- "RULE-SET,games-cn,\U0001F3AE 游戏服务"
- "RULE-SET,netflix,\U0001F3A5 奈飞视频"
- "RULE-SET,disney,\U0001F4FD️ 迪士尼+"
- "RULE-SET,max,\U0001F39E️ Max"
- "RULE-SET,primevideo,\U0001F3AC Prime Video"
- "RULE-SET,appletv,\U0001F34E Apple TV+"
- "RULE-SET,youtube,\U0001F4F9 油管视频"
- "RULE-SET,tiktok,\U0001F3B5 TikTok"
- "RULE-SET,bilibili,\U0001F4FA 哔哩哔哩"
- "RULE-SET,ai,\U0001F916 人工智能"
- "RULE-SET,networktest,\U0001F4C8 网络测试"
- "RULE-SET,proxy,\U0001FA9C 代理域名"
- "RULE-SET,cn,\U0001F1E8\U0001F1F3 直连域名,no-resolve"
- "RULE-SET,netflixip,\U0001F3A5 奈飞视频,no-resolve"
- "RULE-SET,telegramip,\U0001F4F2 电报消息,no-resolve"
- "RULE-SET,privateip,\U0001F512 私有网络,no-resolve"
- "RULE-SET,cnip,\U0001F1E8\U0001F1F3 直连 IP,no-resolve"
- "MATCH,\U0001F680 节点选择"
redir-port: 7892
tproxy-port: 7895
mixed-port: 7893
secret: poO7lYcE
bind-address: "*"
external-ui: "/usr/share/openclash/ui"
ipv6: true
tun:
enable: true
stack: system
device: utun
auto-route: false
auto-detect-interface: false
dns-hijack:
- tcp://any:53
profile:
store-selected: true
authentication:
- Clash:dddddddddd