-
Notifications
You must be signed in to change notification settings - Fork 419
/
mihomo.yaml
319 lines (319 loc) · 7.27 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
mixed-port: 7890
mode: Rule
log-level: warning
allow-lan: true
bind-address: '*'
ipv6: false
udp: false
unified-delay: false
tcp-concurrent: false
find-process-mode: strict
global-client-fingerprint: chrome
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: 8
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: false
write-to-system: true
server: time.apple.com
port: 123
interval: 30
sniffer:
enable: true
parse-pure-ip: false
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
- +.linux.do
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:53
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
- '*.lan'
- '*.local'
- '*.localhost'
- '*.localdomain'
- '*.example'
- '*.ntp.org.cn'
- '*.time.edu.cn'
- +.pool.ntp.org
- ntp.*.com
- time.*.com
- time.*.gov
- +.qq.com
- +.tencent.com
- +.wechat.com
- +.weixin.qq.com
- localhost.ptlogin2.qq.com
- localhost.sec.qq.com
- localhost.work.weixin.qq.com
- '*.microsoftonline.com'
- '*.msftconnecttest.com'
- '*.msftncsi.com'
- +.msftncsi.com
- +.steamcontent.com
- time.windows.com
- +.stun.*.*
- +.stun.*.*.*
- +.stun.*.*.*.*
- +.stun.*.*.*.*.*
- stun.*.*
- stun.*.*.*
- mesu.apple.com
- swcdn.apple.com
- swdist.apple.com
- swdownload.apple.com
- swquery.apple.com
- swscan.apple.com
- Mijia Cloud
- +.cmpassport.com
- +.logon.battle.net
- +.logon.battlenet.com.cn
- +.pingan.com.cn
default-nameserver:
- tls://223.5.5.5:853
- https://120.53.53.53/dns-query
nameserver:
- https://doh.pub/dns-query
- https://doh.opendns.com:443/dns-query
- https://1.1.1.1:443/dns-query
nameserver-policy:
geosite:private: system
geosite:category-ads-all: rcode://success
fallback:
- tls://dot.tiar.app
- tls://dns.quad9.net
- tls://223.5.5.5
- https://doh.dnslify.com/dns-query
- https://dnsforge.de/dns-query
- https://dns.twnic.tw/dns-query
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: 14400
health-check:
enable: true
url: https://www.gstatic.com/generate_204
interval: 3600
url: https://anaer.github.io/Sub/clash.yaml
path: ./proxies/SUB1.yaml
proxy-groups:
- name: PROXY
type: select
proxies:
- LOAD-BALANCE
- FALLBACK
- DIRECT
- name: LOAD-BALANCE
type: load-balance
strategy: consistent-hashing
interval: 0
proxies:
- FALLBACK
- GITHUB
- OPENAI
- interval: 0
include-all-providers: true
type: fallback
name: FALLBACK
- interval: 0
include-all-providers: true
type: fallback
name: GITHUB
- interval: 0
include-all-providers: true
type: fallback
name: OPENAI
- name: BLOCK
type: select
proxies:
- REJECT
- DIRECT
- name: FINAL
type: select
proxies:
- PROXY
- DIRECT
rules:
- AND,((NETWORK,UDP),(DST-PORT,443),(NOT,((GEOIP,CN)))),REJECT
- AND,((RULE-SET,anti-AD),(NOT,((RULE-SET,anti-AD-white)))),REJECT
- RULE-SET,proxy-classical,FALLBACK
- RULE-SET,direct-classical,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
direct-classical:
type: http
behavior: classical
url: https://anaer.github.io/Sub/rules/classical/direct.yaml
path: ./rules/classical/direct.yaml
interval: 86400
proxy: DIRECT
proxy-classical:
type: http
behavior: classical
url: https://anaer.github.io/Sub/rules/classical/proxy.yaml
path: ./rules/classical/proxy.yaml
interval: 86400
proxy: DIRECT