-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclash-template.yaml
289 lines (265 loc) · 6.85 KB
/
clash-template.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
mixed-port: 7890
allow-lan: true
mode: rule
log-level: info
ipv6: true
external-controller: 127.0.0.1:9090
# authentication:
# - "user1:pass1"
# - "user2:pass2"
sniffer: #【Meta专属】sniffer域名嗅探器
enable: true
sniffing:
- tls
- http
skip-domain:
- "Mijia Cloud"
- "dlg.io.mi.com"
- "+.apple.com"
force-domain:
# - "+"
- "google.com"
- "+.netflix.com"
# port-whitelist:
# - 80
# - 443
# - 8000-9000
dns:
enable: true
ipv6: true
enhanced-mode: fake-ip
use-hosts: true
nameserver:
- 114.114.114.114
- 223.6.6.6
- 8.8.8.8
- 119.29.29.29
- tls://223.5.5.5:853
- https://doh.pub/dns-query
- "https://dns.alidns.com/dns-query#h3=true" #【Meta专属】强制HTTP/3
- quic://dns.adguard.com:784
fallback:
- https://1.0.0.1/dns-query
- tls://8.8.4.4:853
fallback-filter:
geoip: true
geoip-code: CN
geosite: #【Meta专属】设定geosite某分类使用fallback返回结果
- gfw
ipcidr:
- 240.0.0.0/4
domain:
- "+.google.com"
- "+.youtube.com"
- "+.facebook.com"
- "+.meta.com"
- "+.twitter.com"
fake-ip-filter:
- "+.lan"
- "+.localhost"
- "+.localdomain"
- "+.linksys.com"
- "+.pool.ntp.org"
- "+.stun.*.*"
- "+.stun.*.*.*"
- "+.stun.*.*.*.*"
- "+.stun.*.*.*.*.*"
- "*.n.n.srv.nintendo.net"
- "+.stun.playstation.net"
- "xbox.*.*.microsoft.com"
- "*.*.xboxlive.com"
- network-test.debian.org
- "+.edu.cn"
- localhost.ptlogin2.qq.com
tun:
enable: true
stack: system
auto-route: true
auto-detect-interface: true
dns-hijack:
- any:53
auto-redir:
enable: true
auto-route: true
proxies:
# 支持的协议及加密算法示例请查阅 Clash 项目 README 以使用最新格式:https://github.com/Dreamacro/clash/blob/master/README.md
# Shadowsocks 支持的加密方式:
# aes-128-gcm aes-192-gcm aes-256-gcm
# aes-128-cfb aes-192-cfb aes-256-cfb
# aes-128-ctr aes-192-ctr aes-256-ctr
# rc4-md5 chacha20-ietf xchacha20
# chacha20-ietf-poly1305 xchacha20-ietf-poly1305
# Shadowsocks
- name: "de-ss-6"
type: ss
server: _
port: 21149
cipher: aes-128-gcm
password: _
udp: true
# Shadowsocks
- name: "cn-nku312-ss-6"
type: ss
server: _
port: 6931
cipher: chacha20-ietf-poly1305
password: _
udp: true
- name: "de-hys-6"
type: hysteria
server: _
port: 21148
auth_str: _
alpn:
- h3
protocol: udp
up: 110
down: 110
sni: wechat.com
skip-cert-verify: true
recv_window_conn: 17301504
recv_window: 69206016
disable_mtu_discovery: true
# 代理组策略
# 策略组示例请查阅 Clash 项目 README 以使用最新格式:https://github.com/Dreamacro/clash/blob/master/README.md
proxy-groups:
- name: "manual"
type: select
disable-udp: true
proxies:
- "de-ss-6"
- "cn-nku312-ss-6"
- "de-hys-6"
- name: "manual-with-udp"
type: select
disable-udp: false
proxies:
- "de-ss-6"
- "cn-nku312-ss-6"
- "de-hys-6"
- name: "PROXY"
type: select
proxies:
- "manual"
- "manual-with-udp"
rule-providers:
reject:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
path: ./ruleset/apple.yaml
interval: 86400
google:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
path: ./ruleset/google.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
path: ./ruleset/direct.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
path: ./ruleset/private.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt"
path: ./ruleset/gfw.yaml
interval: 86400
greatfire:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/greatfire.txt"
path: ./ruleset/greatfire.yaml
interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt"
path: ./ruleset/tld-not-cn.yaml
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
path: ./ruleset/applications.yaml
interval: 86400
rules:
- DOMAIN,woiden.id,DIRECT
- DOMAIN,hax.co.id,DIRECT
- DOMAIN-SUFFIX,mobisys.cc,cn-nku312-ss-6
- DOMAIN-SUFFIX,nankai.edu.cn,cn-nku312-ss-6
- DOMAIN,wwwwodddd.com,DIRECT
- DOMAIN-SUFFIX,googleapis.cn,PROXY
- DOMAIN-SUFFIX,wakatime.com,DIRECT
- DOMAIN-KEYWORD,eswin,DIRECT
- DOMAIN-SUFFIX,transcliff.top,DIRECT
- DOMAIN,www6.transcliff.top,cn-nku312-ss-6
- DOMAIN,mc6.transcliff.top,cn-nku312-ss-6
- DOMAIN,murmur6.transcliff.top,cn-nku312-ss-6
- DOMAIN,time.is,DIRECT
- DOMAIN-SUFFIX,ntyou.cc,DIRECT
- DOMAIN,www.hostbuf.com,PROXY
- DOMAIN-SUFFIX,overleaf.com,DIRECT
- DOMAIN,clash.razord.top,DIRECT
- DOMAIN,yacd.haishan.me,DIRECT
- DOMAIN-SUFFIX,local,DIRECT
- DOMAIN-SUFFIX,localdomain,DIRECT
- DOMAIN-SUFFIX,localhost,DIRECT
- RULE-SET,applications,DIRECT
- RULE-SET,private,DIRECT
- RULE-SET,reject,REJECT
- RULE-SET,icloud,DIRECT
- RULE-SET,apple,DIRECT
- RULE-SET,google,DIRECT
- RULE-SET,proxy,PROXY
- RULE-SET,direct,DIRECT
- RULE-SET,lancidr,DIRECT
- RULE-SET,cncidr,DIRECT
- RULE-SET,telegramcidr,PROXY
- GEOIP,LAN,DIRECT
- GEOIP,CN,DIRECT
- MATCH,PROXY