-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmihomo.yaml
330 lines (258 loc) · 20.7 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
# Clash Config Make by Coldvvater
# TG Channel: https://t.me/Coldvvater_Channel
# GitHub: https://github.com/Coldvvater
# Update Date: 2024.09.15
port: 7890 # HTTP(S) 代理服务器端口
socks-port: 7891 # SOCKS5 代理端口
mixed-port: 7892 # 混合端口,HTTP和SOCKS5用一个端口
redir-port: 7893 # 透明代理端口,用于 Linux 和 MacOS
tproxy-port: 7894 # Transparent proxy server port for Linux (TProxy TCP and TProxy UDP)
# mixed-port: 7890
# tproxy-port: 7891
mode: rule # 规则模式:rule(规则) / global(全局代理)/ direct(全局直连)/ script (脚本)
log-level: info # 设置日志输出级别 (5 个级别:silent / error / warning / info / debug)
allow-lan: true # 允许局域网的连接(共享代理)
bind-address: "*" # 监听IP白名单,可绑定单个IPv4和v6地址,"*" 为绑定所有IP地址,仅在将allow-lan设置为true时适用
ipv6: true # 开启 IPv6 总开关,关闭阻断所有 IPv6 链接和屏蔽 DNS 请求 AAAA 记录
udp: true # 是否允许 UDP 通过代理,默认为 false
unified-delay: true # 开启统一延迟时,会进行两次延迟测试,以消除连接握手等带来的不同类型节点的延迟差异,可选值 true/false
tcp-concurrent: true # TCP 并发,可选值 true/false
find-process-mode: strict # 控制是否让 Clash 去匹配进程,always 开启,强制匹配所有进程,strict 默认,由 Clash 判断是否开启,off 不匹配进程,推荐在路由器上使用此模式
global-client-fingerprint: chrome # 全局 TLS 指纹,优先低于 proxy 内的 client-fingerprint,目前支持开启 TLS 传输的 TCP/grpc/WS/HTTP , 支持协议有 VLESS,Vmess 和 trojan
external-controller: 127.0.0.1:9090 # 外部控制器,可以使用 RESTful API 来控制你的 Clash 内核,API 监听地址,你可以将 127.0.0.1 修改为 0.0.0.0 来监听所有 IP
external-ui: ui # 可以将静态网页资源 (比如 Clash-dashboard) 运行在 Clash API, 路径为 API 地址/ui,可以为绝对路径,或者 Clash 工作目录的相对路径
external-ui-url: 'https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip'
# 自定义外部用户界面下载地址
secret: "" # 自定义 API 的访问密钥
geodata-mode: false # 更改 geoip 使用文件,mmdb 或者 dat,可选 true/false,true为 dat,此项有默认值 false
geodata-loader: memconservative # GEO 文件加载模式,standard:标准加载器 memconservative:专为内存受限 (小内存) 设备优化的加载器 (默认值)
geo-auto-update: true # 自动更新 GEO
geo-update-interval: 24 # 更新间隔,单位为小时
geox-url:
geoip: 'https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat'
geosite: 'https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat'
mmdb: 'https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb'
asn: 'https://mirror.ghproxy.com/https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb'
# 自定义 GEO 下载地址
profile:
store-selected: true # 储存 API 对策略组的选择,以供下次启动时使用
store-fake-ip: true # 储存 fakeip 映射表,域名再次发生连接时,使用原有映射地址
sniffer:
enable: true # 是否启用sniffer
force-dns-mapping: true # 对 redir-host 类型识别的流量进行强制嗅探
parse-pure-ip: true # 对所有未获取到域名的流量进行强制嗅探
override-destination: true # 是否使用嗅探结果作为实际访问,默认为 true
sniff:
HTTP:
ports: [80, 8080-8880] # ports字段,表示端口范围。示例:ports: [80, 8080-8880]
override-destination: true # override-destination字段(可选),用于覆盖全局override-destination设置
TLS:
ports: [443, 8443]
QUIC:
ports: [443, 8443]
force-domain: # 需要强制嗅探的域名(默认情况下只对IP进行嗅探)
- +.v2ex.com
skip-domain: # 需要跳过嗅探的域名。主要解决部分站点sni字段非域名,导致嗅探结果异常的问题,如米家设备Mijia Cloud
- Mijia Cloud
tun:
enable: false # 启用 tun
stack: system # tun 模式堆栈,可用值:system/gvisor/mixed
dns-hijack: # dns 劫持,将匹配到的连接导入内部 dns 模块,不书写协议则为 udp://
- any:53
auto-route: true # 自动设置全局路由,可以自动将全局流量路由进入 tun 网卡
auto-detect-interface: true # 自动选择流量出口接口,多出口网卡同时连接的设备建议手动指定出口网卡
dns:
enable: true # 关闭将使用系统 DNS
listen: :1053 # DNS 监听地址
ipv6: true # IPV6解析开关;如果为false,将返回ipv6结果为空
enhanced-mode: fake-ip # 模式:redir-host或fake-ip
fake-ip-range: 198.18.0.0/15 # Fake-IP 解析地址池
fake-ip-filter: # Fake-ip 过滤,列表中的域名返回真实IP
- "*"
- "+.lan"
- "+.local"
respect-rules: true # dns 连接跟随 rules,需配置 proxy-server-nameserver
default-nameserver: [tls://223.5.5.5:853, tls://1.12.12.12:853]
# 解析非IP的dns用的dns服务器,只支持纯IP, 可为加密 DNS
proxy-server-nameserver: [https://223.5.5.5/dns-query, https://1.12.12.12/dns-query]
# 代理节点域名解析服务器,仅用于解析代理节点的域名
nameserver: [https://dns.cloudflare.com/dns-query, https://dns.google/dns-query]
# 默认DNS服务器,支持udp/tcp/dot/doh/doq
nameserver-policy: # 指定域名查询的解析服务器,可使用 geosite, 优先于 nameserver/fallback 查询
"rule-set:cn-domain,private-domain":
- https://1.12.12.12/dns-query
- https://223.5.5.5/dns-query
######### 锚点 start #########
# 规则类型相关
c: &c {type: http, behavior: classical, interval: 86400, format: text}
d: &d {type: http, behavior: domain, interval: 86400, format: mrs}
i: &i {type: http, behavior: ipcidr, interval: 86400, format: mrs}
# 节点筛选相关
HK: &HK '^(?=.*((?i)🇭🇰|香港|(\b(HK|Hong)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
TW: &TW '^(?=.*((?i)🇹🇼|台湾|(\b(TW|Tai|Taiwan)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
JP: &JP '^(?=.*((?i)🇯🇵|日本|川日|东京|大阪|泉日|埼玉|(\b(JP|Japan)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
KR: &KR '^(?=.*((?i)🇰🇷|韩国|韓|首尔|(\b(KR|Korea)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
SG: &SG '^(?=.*((?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
US: &US '^(?=.*((?i)🇺🇸|美国|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|(\b(US|United States)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
UK: &UK '^(?=.*((?i)🇬🇧|英国|伦敦|(\b(UK|United Kingdom)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
All: &All '^(?=.*(.))(?!.*((?i)群|邀请|返利|循环|官网|客服|网站|网址|获取|订阅|流量|到期|机场|下次|版本|官址|备用|过期|已用|联系|邮箱|工单|贩卖|通知|倒卖|防止|国内|地址|频道|无法|说明|使用|提示|特别|访问|支持|教程|关注|更新|作者|加入|(\b(USE|USED|TOTAL|Traffic|Expire|EMAIL|Panel|Channel|Author)\b|(\d{4}-\d{2}-\d{2}|\d+G)))).*$'
# 代理组相关
Select: &Select {type: select, proxies: [Proxy, HongKong, TaiWan, Japan, Korea, Singapore, America, UnitedKingdom, AllServer, DIRECT]}
UrlTest: &UrlTest {type: url-test, interval: 300, tolerance: 20, lazy: true, url: 'http://cp.cloudflare.com', disable-udp: false, timeout: 2000, max-failed-times: 3, hidden: true, include-all-providers: true}
FallBack: &FallBack {type: fallback, interval: 300, lazy: true, url: 'http://cp.cloudflare.com', disable-udp: false, timeout: 2000, max-failed-times: 3, hidden: true, include-all-providers: true}
LoadBalance: &LoadBalance {type: load-balance, interval: 300, lazy: true, url: 'http://cp.cloudflare.com', disable-udp: false, strategy: consistent-hashing, timeout: 2000, max-failed-times: 3, hidden: true, include-all-providers: true}
# 远程订阅相关
p: &p {type: http, interval: 42300, health-check: {enable: true, url: http://cp.cloudflare.com, interval: 300}}
######### 锚点 end #########
# 本地服务器
proxies: null
# 远程订阅
proxy-providers:
Subscribe: {<<: *p, path: ./proxy_providers/subscribe.yaml, url: ""}
# 1. 请把订阅链接填入引号""内使用,
# 2. 或可通过Sub-Store进行订阅转换(或需自建Sub-Store服务)。
# 代理组
proxy-groups:
# 漏网之鱼
- {name: Final, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Final.png, <<: *Select, proxies: [Proxy,DIRECT]}
# 节点切换
- {name: Proxy, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Rocket.png, <<: *Select, proxies: [HongKong,TaiWan,Japan,Korea,Singapore,America,UnitedKingdom,AllServer,DIRECT]}
# 谷歌服务
- {name: Google, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Google_Search.png, <<: *Select}
# 哔哩哔哩
- {name: BiliBili, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/bilibili_3.png, <<: *Select, proxies: [DIRECT,HongKong,TaiWan]}
# AI平台
- {name: AIGC, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/ChatGPT.png, <<: *Select, proxies: [America,TaiWan,Japan,Korea,Singapore,UnitedKingdom,AllServer]}
# YouTube
- {name: YouTube, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/YouTube.png, <<: *Select}
# TikTok
- {name: TikTok, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/TikTok.png, <<: *Select}
# 国际流媒体
- {name: Streaming, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Streaming.png, <<: *Select}
# Telegram
- {name: Telegram, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Telegram_X.png, <<: *Select}
# X(Twitter)
- {name: X, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/X.png, <<: *Select}
# 苹果服务
- {name: Apple, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple_1.png, <<: *Select, proxies: [DIRECT,HongKong,TaiWan,Japan,Korea,Singapore,America,UnitedKingdom,AllServer,Proxy]}
# 微软服务
- {name: Microsoft, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Windows_11.png, <<: *Select, proxies: [DIRECT,HongKong,TaiWan,Japan,Korea,Singapore,America,UnitedKingdom,AllServer,Proxy]}
# 游戏平台
- {name: Games, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Game.png, <<: *Select}
# 地区节点代理组
- {name: HongKong, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png, type: select, proxies: [HK-Auto, HK-FallBack, HK-LoadBalance], include-all-providers: true, filter: *HK}
- {name: TaiWan, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China.png, type: select, proxies: [TW-Auto, TW-FallBack, TW-LoadBalance], include-all-providers: true, filter: *TW}
- {name: Japan, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png, type: select, proxies: [JP-Auto, JP-FallBack, JP-LoadBalance], include-all-providers: true, filter: *JP}
- {name: Korea, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Korea.png, type: select, proxies: [KR-Auto, KR-FallBack, KR-LoadBalance], include-all-providers: true, filter: *KR}
- {name: Singapore, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Singapore.png, type: select, proxies: [SG-Auto, SG-FallBack, SG-LoadBalance], include-all-providers: true, filter: *SG}
- {name: America, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png, type: select, proxies: [US-Auto, US-FallBack, US-LoadBalance], include-all-providers: true, filter: *US}
- {name: UnitedKingdom, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_Kingdom.png, type: select, proxies: [UK-Auto, UK-FallBack, UK-LoadBalance], include-all-providers: true, filter: *UK}
# 延时优选代理组
- {name: HK-Auto, <<: *UrlTest, filter: *HK}
- {name: TW-Auto, <<: *UrlTest, filter: *TW}
- {name: JP-Auto, <<: *UrlTest, filter: *JP}
- {name: KR-Auto, <<: *UrlTest, filter: *KR}
- {name: SG-Auto, <<: *UrlTest, filter: *SG}
- {name: US-Auto, <<: *UrlTest, filter: *US}
- {name: UK-Auto, <<: *UrlTest, filter: *UK}
# 故障转移代理组
- {name: HK-FallBack, <<: *FallBack, filter: *HK}
- {name: TW-FallBack, <<: *FallBack, filter: *TW}
- {name: JP-FallBack, <<: *FallBack, filter: *JP}
- {name: KR-FallBack, <<: *FallBack, filter: *KR}
- {name: SG-FallBack, <<: *FallBack, filter: *SG}
- {name: US-FallBack, <<: *FallBack, filter: *US}
- {name: UK-FallBack, <<: *FallBack, filter: *UK}
# 负载均衡代理组
- {name: HK-LoadBalance, <<: *LoadBalance, filter: *HK}
- {name: TW-LoadBalance, <<: *LoadBalance, filter: *TW}
- {name: JP-LoadBalance, <<: *LoadBalance, filter: *JP}
- {name: KR-LoadBalance, <<: *LoadBalance, filter: *KR}
- {name: SG-LoadBalance, <<: *LoadBalance, filter: *SG}
- {name: US-LoadBalance, <<: *LoadBalance, filter: *US}
- {name: UK-LoadBalance, <<: *LoadBalance, filter: *UK}
# 全部节点
- {name: AllServer, icon: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Airport.png, type: select, include-all-providers: true, filter: *All}
# 远程规则集
rule-providers:
# 隐私网络/局域网
private-domain: {<<: *d, path: ./ruleset/private-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs}
private-ip: {<<: *i, path: ./ruleset/private-ip.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/private.mrs}
# 人工智能
ai-classical: {<<: *c, path: ./ruleset/openai-classical.list, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Coldvvater/Mononoke/master/Clash/Rules/AI.list}
# 油管视频
youtube-domain: {<<: *d, path: ./ruleset/youtube-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/youtube.mrs}
# 动画疯
bahamut-domain: {<<: *d, path: ./ruleset/bahamut-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/bahamut.mrs}
# 哔哩哔哩东南亚
biliintl-domain: {<<: *d, path: ./ruleset/biliintl-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/biliintl.mrs}
# 哔哩哔哩
bilibili-domain: {<<: *d, path: ./ruleset/bilibili-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/bilibili.mrs}
bilibili-ip: {<<: *i, path: ./ruleset/bilibili-ip.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geoip/bilibili.mrs}
# 海外抖音
tiktok-domain: {<<: *d, path: ./ruleset/tiktok-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/tiktok.mrs}
# 国际媒体
streamingmedia: {<<: *c, path: ./ruleset/streamingmedia.list, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/GlobalMedia/GlobalMedia.list}
# 电报信息
telegram-domain: {<<: *d, path: ./ruleset/telegram-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/telegram.mrs}
telegram-ip: {<<: *i, path: ./ruleset/telegram-ip.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/telegram.mrs}
# GitHub
github-domain: {<<: *d, path: ./ruleset/github-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/github.mrs}
# Twitter
twitter-domain: {<<: *d, path: ./ruleset/twitter-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/twitter.mrs}
twitter-ip: {<<: *i, path: ./ruleset/twitter-ip.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/twitter.mrs}
# 苹果代理服务
apple-classical: {<<: *c, path: ./ruleset/apple-classical.list, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/Coldvvater/Mononoke/master/Clash/Rules/AppleProxyService.list}
# 苹果服务
apple-domain: {<<: *d, path: ./ruleset/apple-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/apple.mrs}
apple-ip: {<<: *i, path: ./ruleset/apple-ip.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geoip/apple.mrs}
# 谷歌服务
google-domain: {<<: *d, path: ./ruleset/google-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/google.mrs}
google-ip: {<<: *i, path: ./ruleset/google-ip.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/google.mrs}
# 微软服务
microsoft-domain: {<<: *d, path: ./ruleset/microsoft-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/microsoft.mrs}
# 游戏平台
games-classical: {<<: *c, path: ./ruleset/games-classical.list, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Game/Game.list}
# 国内网站
cn-domain: {<<: *d, path: ./ruleset/cn-domain.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/cn.mrs}
# 国外网站
geolocation-!cn: {<<: *d, path: ./ruleset/geolocation-!cn.mrs, url: https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/geolocation-!cn.mrs}
# 分流规则引用
rules:
# - AND,((NETWORK,UDP),(DST-PORT,443)),REJECT
# - SCRIPT,quic,REJECT
- DOMAIN,clash.razord.top,DIRECT
- DOMAIN,yacd.metacubex.one,DIRECT
- DOMAIN,yacd.haishan.me,DIRECT
- DOMAIN,d.metacubex.one,DIRECT
- DOMAIN,raw.gitmirror.com,Proxy
- RULE-SET,private-domain,DIRECT
- RULE-SET,ai-classical,AIGC
- RULE-SET,youtube-domain,YouTube
- RULE-SET,bahamut-domain,TaiWan
- RULE-SET,biliintl-domain,Streaming
- RULE-SET,bilibili-domain,BiliBili
- RULE-SET,tiktok-domain,TikTok
- RULE-SET,streamingmedia,Streaming
- RULE-SET,telegram-domain,Telegram
- RULE-SET,github-domain,Proxy
- RULE-SET,twitter-domain,X
- RULE-SET,apple-classical,Proxy
- RULE-SET,apple-domain,Apple
- RULE-SET,google-domain,Google
- RULE-SET,microsoft-domain,Microsoft
- RULE-SET,games-classical,Games
- RULE-SET,geolocation-!cn,Proxy
- RULE-SET,google-ip,Google
- RULE-SET,telegram-ip,Telegram
- RULE-SET,twitter-ip,X
- RULE-SET,cn-domain,DIRECT
- RULE-SET,bilibili-ip,BiliBili
- RULE-SET,apple-ip,Apple
- RULE-SET,private-ip,DIRECT
- GEOIP,CN,DIRECT
- MATCH,Final
### meta内核不支持
#script:
# shortcuts:
# quic: network == 'udp' and dst_port == 443