-
Notifications
You must be signed in to change notification settings - Fork 415
/
mihomo.yaml
374 lines (374 loc) · 8.56 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
mixed-port: 7890
mode: Rule
log-level: warning
allow-lan: true
bind-address: '*'
ipv6: false
udp: false
unified-delay: true
tcp-concurrent: true
find-process-mode: strict
global-client-fingerprint: random
external-controller: 0.0.0.0:9090
external-ui: ui
external-ui-url: https://mirror.ghproxy.com/https://github.com/anaer/yacd/archive/refs/heads/gh-pages.zip
secret: '666999'
geodata-mode: true
geodata-loader: standard
geo-auto-update: true
geo-update-interval: 3
geox-url:
geoip: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/release/geoip.dat
geosite: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/release/geosite.dat
mmdb: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/release/country.mmdb
asn: https://mirror.ghproxy.com/https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb
keep-alive-interval: 600
profile:
store-selected: true
store-fake-ip: true
ntp:
enable: true
write-to-system: true
server: time.apple.com
port: 123
interval: 30
sniffer:
enable: true
parse-pure-ip: true
override-destination: true
sniff:
HTTP:
ports:
- 80
- 8080-8800
override-destination: true
TLS:
ports:
- 443
- 8443
QUIC:
ports:
- 443
- 8443
skip-domain:
- Mijia Cloud
- dlg.io.mi.com
- +.apple.com
tun:
enable: true
stack: mixed
dns-hijack:
- any:53
auto-route: true
auto-detect-interface: true
strict-route: true
endpoint-independent-nat: false
dns:
enable: true
use-hosts: true
use-system-hosts: true
listen: 0.0.0.0:9527
ipv6: false
ipv6-timeout: 300
prefer-h3: true
enhanced-mode: fake-ip
cache-algorithm: arc
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- geosite:private
- '*.example'
- '*.lan'
- '*.local'
- '*.localdomain'
- '*.localhost'
- '*.ntp.org.cn'
- '*.time.edu.cn'
- +.cmpassport.com
- +.logon.battle.net
- +.logon.battlenet.com.cn
- +.ntp.org.cn
- +.pingan.com.cn
- +.pool.ntp.org
- +.qq.com
- +.stun.*.*
- +.stun.*.*.*
- +.stun.*.*.*.*
- +.stun.*.*.*.*.*
- +.tencent.com
default-nameserver:
- 223.5.5.5
- 119.29.29.29
nameserver:
- https://doh.pub/dns-query
- https://dns.alidns.com/dns-query
nameserver-policy:
geosite:private:
- system
geosite:category-ads-all: rcode://success
geosite:cn,apple@cn,microsoft@cn,apple-cn,category-games@cn:
- https://223.5.5.5/dns-query#h3=true
- https://223.6.6.6/dns-query#h3=true
geolocation-!cn:
- https://cloudflare-dns.com/dns-query
- https://dns.google/dns-query
proxy-server-nameserver:
- https://doh.pub/dns-query
fallback:
- system
- https://223.5.5.5/dns-query#h3=true
- https://dns.alidns.com/dns-query#h3=true
- tls://223.5.5.5
fallback-filter:
geoip: true
geoip-code: CN
ipcidr:
- 240.0.0.0/4
- 0.0.0.0/32
domain:
- +.ai.com
- +.algolia.net
- +.anthropic.com
- +.argotunnel.com
- +.arkoselabs.com
- +.auth0.com
- +.azure.com
- +.azureedge.net
- +.bing.com
- +.bingapis.com
- +.bugsnag.com
- +.chatgpt.com
- +.claude.ai
- +.cloudflare.net
- +.cloudflareinsights.com
- +.cohere.ai
- +.docker.com
- +.docker.io
- +.facebook.com
- +.github.com
- +.githubusercontent.com
- +.google
- +.google.com
- +.google.dev
- +.googleapis.cn
- +.googlevideo.com
- +.identrust.com
- +.instagram.com
- +.intercom.io
- +.live.com
- +.livekit.cloud
- +.meta.ai
- +.microsoft.com
- +.microsoftapp.net
- +.minecraft.net
- +.msn.com
- +.openai.com
- +.poe.com
- +.segment.com
- +.segment.io
- +.sentry.io
- +.synn.cc
- +.stripe.com
- +.t.me
- +.tailscale.com
- +.tailscale.io
- +.twitter.com
- +.usefathom.com
- +.v2ex.com
- +.windows.net
- +.wootric.com
- +.x.com
- +.youtube.com
proxy-providers:
SUB1:
type: http
interval: 3600
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
lazy: true
url: https://ghproxy.net/https://raw.githubusercontent.com/anaer/Sub/main/clash.yaml
path: ./proxies/SUB1.yaml
proxy-groups:
- name: PROXY
type: select
proxies:
- LOAD-BALANCE
- FALLBACK
- URL-TEST
- SELECT
- DIRECT
- name: DEBUG
type: select
proxies:
- DIRECT
- SELECT
- include-all-providers: true
name: SELECT
type: select
- include-all-providers: true
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
timeout: 5000
lazy: true
max-failed-times: 3
name: URL-TEST
- include-all-providers: true
name: FALLBACK
type: fallback
- name: LOAD-BALANCE
type: load-balance
strategy: consistent-hashing
hidden: true
proxies:
- A组
- B组
- C组
- name: GITHUB
type: select
proxies:
- PROXY
- FALLBACK
- URL-TEST
- SELECT
- LOAD-BALANCE
- DIRECT
- name: OPENAI
type: select
proxies:
- FALLBACK
- SELECT
- URL-TEST
- LOAD-BALANCE
- PROXY
- DIRECT
- name: BLOCK
type: select
proxies:
- REJECT
- DIRECT
- name: FINAL
type: select
proxies:
- PROXY
- DIRECT
- include-all-providers: true
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
timeout: 5000
lazy: true
max-failed-times: 3
name: A组
filter: ^.*[147]$
- include-all-providers: true
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
timeout: 5000
lazy: true
max-failed-times: 3
name: B组
filter: ^.*[258]$
- include-all-providers: true
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
timeout: 5000
lazy: true
max-failed-times: 3
name: C组
filter: ^.*[0369]$
rules:
- AND, ((NETWORK,UDP), (DST-PORT,443),(NOT,((GEOIP,CN)))),REJECT
- AND,((RULE-SET,anti-AD),(NOT,((RULE-SET,anti-AD-white)))),REJECT
- DOMAIN-SUFFIX,fofa.info,DEBUG
- DOMAIN-SUFFIX,v2ex.com,PROXY
- DOMAIN,wiki.metacubex.one,PROXY
- DOMAIN,bulianglin.com,PROXY
- DOMAIN,regex101.com,PROXY
- DOMAIN-SUFFIX,bing.com,PROXY
- DOMAIN-SUFFIX,google.com,PROXY
- DOMAIN-SUFFIX,suno.ai,PROXY
- DOMAIN-SUFFIX,suno.com,PROXY
- DOMAIN-SUFFIX,downforeveryoneorjustme.com,DIRECT
- DOMAIN-SUFFIX,axshare.com,DIRECT
- DOMAIN-SUFFIX,bboy.app,DIRECT
- DOMAIN-SUFFIX,challenges.cloudflare.com,DIRECT
- DOMAIN-SUFFIX,gitbook.io,DIRECT
- DOMAIN-SUFFIX,icon-icons.com,DIRECT
- DOMAIN-SUFFIX,innoreader.com,DIRECT
- DOMAIN-SUFFIX,lastpass.com,DIRECT
- DOMAIN-SUFFIX,linux.do,DIRECT
- DOMAIN-SUFFIX,microsoft.com,DIRECT
- DOMAIN-SUFFIX,visualstudio.com,DIRECT
- DOMAIN-SUFFIX,zhheo.com,DIRECT
- IP-CIDR,188.160.0.0/22,DIRECT,no-resolve
- IP-CIDR,188.180.0.0/22,DIRECT,no-resolve
- PROCESS-NAME,WXWork.exe,DIRECT
- PROCESS-NAME,WeMail.exe,DIRECT
- PROCESS-NAME,WeMailNode.exe,DIRECT
- PROCESS-NAME,aria2.exe,DIRECT
- PROCESS-NAME,aria2c.exe,DIRECT
- PROCESS-NAME,proxifier.exe,DIRECT
- GEOSITE,github,GITHUB
- GEOSITE,openai,OPENAI
- GEOSITE,category-ads-all,BLOCK
- GEOSITE,category-porn,BLOCK
- GEOSITE,tencent@ads,BLOCK
- GEOSITE,category-scholar-!cn,PROXY
- GEOSITE,category-social-media-!cn,PROXY
- GEOSITE,geolocation-!cn,PROXY
- GEOSITE,bing,PROXY
- GEOSITE,youtube,PROXY
- GEOSITE,google,PROXY
- GEOSITE,twitter,PROXY
- GEOSITE,biliintl,PROXY
- GEOSITE,spotify,PROXY
- GEOSITE,telegram,PROXY
- GEOSITE,netflix,PROXY
- GEOSITE,disney,PROXY
- GEOSITE,tiktok,PROXY
- GEOSITE,facebook,PROXY
- GEOSITE,meta,PROXY
- GEOSITE,gfw,PROXY
- GEOSITE,apple-cn,DIRECT
- GEOSITE,apple@cn,DIRECT
- GEOSITE,category-games@cn,DIRECT
- GEOSITE,cn,DIRECT
- GEOSITE,geolocation-cn,DIRECT
- GEOSITE,icloud@cn,DIRECT
- GEOSITE,microsoft@cn,DIRECT
- GEOSITE,onedrive,DIRECT
- GEOSITE,private,DIRECT
- GEOSITE,steam@cn,DIRECT
- GEOSITE,tld-cn,DIRECT
- GEOIP,telegram,PROXY,no-resolve
- GEOIP,netflix,PROXY,no-resolve
- GEOIP,google,PROXY,no-resolve
- GEOIP,facebook,PROXY,no-resolve
- GEOIP,twitter,PROXY,no-resolve
- GEOIP,private,DIRECT,no-resolve
- GEOIP,lan,DIRECT,no-resolve
- GEOIP,cn,DIRECT,no-resolve
- MATCH,FINAL
rule-providers:
anti-AD:
type: http
behavior: domain
format: yaml
path: ./rules/domain/anti-AD.yaml
url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-clash.yaml
interval: 86400
anti-AD-white:
type: http
behavior: domain
format: yaml
path: ./rules/domain/anti-AD-white.yaml
url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-for-clash.yaml
interval: 86400