-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_magisk.yaml
268 lines (224 loc) · 9.26 KB
/
config_magisk.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
# 这里是订阅更新和延迟测试相关的
p: &p
type: http
interval: 86400
health-check:
enable: true
url: https://www.gstatic.com/generate_204
interval: 180
# url 里填写自己的订阅,名称不能重复
# 订阅转换: https://sub-web.netlify.app/
# 订阅转换: https://www.nite07.com/sub
# 转换成 node_list: https://www.nite07.com/sub/meta?nodeList=true&sub=
proxy-providers:
群主_星链云:
<<: *p
# https://starlinkcloud.xyz/api/v1/client/subscribe?token=5ba4e95580963e89050945ddf20d50b1
url: "https://clash.nite07.com/meta?nodeList=true&sub=https://starlinkcloud.xyz/api/v1/client/subscribe?token=5ba4e95580963e89050945ddf20d50b1"
path: ./proxy_providers/群主_星链云.yaml
override:
additional-prefix: "群主_星链云 "
群主_三分:
<<: *p
# https://xn--ehq00hgtfdmt.xyz/
# https://sub.sanfen018.xyz/api/v1/client/subscribe?token=0b73731d54a0e74695ff0429b4dc2870
url: "https://clash.nite07.com/meta?nodeList=true&sub=https://sub.sanfen018.xyz/api/v1/client/subscribe?token=0b73731d54a0e74695ff0429b4dc2870"
path: ./proxy_providers/群主_三分.yaml
override:
additional-prefix: "群主_三分 "
22_三分:
<<: *p
url: "https://clash.nite07.com/meta?nodeList=true&sub=https://sub.sanfen018.xyz/api/v1/client/subscribe?token=bd1d618d46844f83911ccee929512f67"
path: ./proxy_providers/22_三分.yaml
override:
additional-prefix: "22_三分 "
达达_极速:
<<: *p
# https://jsjc.cfd/api/v1/client/subscribe?token=70e468efdcf48393fcea004ee0d3cf01
url: "https://clash.nite07.com/meta?nodeList=true&sub=https://jsjc.cfd/api/v1/client/subscribe?token=70e468efdcf48393fcea004ee0d3cf01"
path: ./proxy_providers/达达_极速.yaml
override:
additional-prefix: "达达_极速 "
火锅_白嫖:
<<: *p
# https://sub.xn--mesv7f5toqlp.com/api/v1/client/subscribe?token=f62b4f8cbb84e14bcca1c58943e884ea
url: "https://clash.nite07.com/meta?nodeList=true&sub=https://sub.xn--mesv7f5toqlp.com/api/v1/client/subscribe?token=f62b4f8cbb84e14bcca1c58943e884ea"
path: ./proxy_providers/火锅_白嫖.yaml
override:
additional-prefix: "火锅_白嫖 "
# 引入所有代理集合,这样就不需要使用 use 了
use: &use
include-all-providers: true
urltest: &urltest
type: url-test
# url: "http://www.gstatic.com/generate_204"
url: "https://www.apple.com/library/test/success.html" # 替换成苹果的测速
interval: 180
tolerance: 100
<<: *use
fallback: &fallback
type: fallback
# url: "http://www.gstatic.com/generate_204"
url: "https://www.apple.com/library/test/success.html" # 替换成苹果的测速
interval: 180
tolerance: 100
<<: *use
select: &select
type: select
<<: *use
lobalance: &lobalance
type: load-balance
url: "https://www.apple.com/library/test/success.html"
interval: 180
strategy: consistent-hashing
<<: *use
# strategy:
# consistent-hashing 同一个域名下会持续使用同一个ip, 默认选择该项,防止频繁跳ip被网站ban
# round-robin 每访问一个链接,顺序更换节点访问
# 节点组
proxy-groups:
- name: 代理设置
type: select
proxies:
- HK urltest
- HK fallback
- TW urltest
- TW fallback
- JP urltest
- JP fallback
- SG urltest
- SG fallback
- US urltest
- US fallback
- Other urltest
- Other fallback
- 手动切换
- DIRECT
- {name: 手动切换, type: select, <<: *use, exclude-filter: "剩余流量|距离下次重置剩余|套餐到期|官网|站内返利|客户端"}
- {name: 剩余流量, type: select, <<: *use, filter: "剩余流量|距离下次重置剩余|套餐到期|官网"}
- {name: AI, type: select, proxies: [US fallback, JP fallback, SG fallback, Other fallback]}
- {name: Twitter, type: select, proxies: [HK urltest, HK fallback, TW urltest, TW fallback, JP urltest, JP fallback, SG urltest, SG fallback, US urltest, US fallback, Other urltest, Other fallback, 手动切换]}
- {name: HK urltest, <<: *urltest, filter: "(?i)港|hk|hongkong|hong kong", exclude-filter: "[2-9]x"}
- {name: HK fallback, <<: *fallback, filter: "(?i)港|hk|hongkong|hong kong", exclude-filter: "[2-9]x"}
- {name: TW urltest, <<: *urltest, filter: "(?i)台|tw|taiwan", exclude-filter: "[2-9]x"}
- {name: TW fallback, <<: *fallback, filter: "(?i)台|tw|taiwan", exclude-filter: "[2-9]x"}
- {name: JP urltest, <<: *urltest, filter: "(?i)日本|jp|japan", exclude-filter: "[2-9]x"}
- {name: JP fallback, <<: *fallback, filter: "(?i)日本|jp|japan", exclude-filter: "[2-9]x"}
- {name: SG urltest, <<: *urltest, filter: "(?i)(新|sg|singapore)", exclude-filter: "[2-9]x"}
- {name: SG fallback, <<: *fallback, filter: "(?i)(新|sg|singapore)", exclude-filter: "[2-9]x"}
- {name: US urltest, <<: *urltest, filter: "(?i)美|us|unitedstates|united states", exclude-filter: "[2-9]x"}
- {name: US fallback, <<: *fallback, filter: "(?i)美|us|unitedstates|united states", exclude-filter: "[2-9]x"}
- {name: Other urltest, <<: *urltest, filter: "(?i)^(?!.*(?:🇭🇰|🇯🇵|🇺🇸|🇸🇬|🇨🇳|港|hk|hongkong|台|tw|taiwan|日|jp|japan|新|sg|singapore|美|us|unitedstates)).*", exclude-filter: "[2-9]x"}
- {name: Other fallback, <<: *fallback, filter: "(?i)^(?!.*(?:🇭🇰|🇯🇵|🇺🇸|🇸🇬|🇨🇳|港|hk|hongkong|台|tw|taiwan|日|jp|japan|新|sg|singapore|美|us|unitedstates)).*", exclude-filter: "[2-9]x"}
rule_update: &rule_update
type: http
interval: 86400
rule-providers:
# 秋风广告规则Clash版本
# Github:https://github.com/TG-Twilight/AWAvenue-Ads-Rule
AWAvenue:
<<: *rule_update
behavior: domain
format: yaml
path: ./rule_providers/AWAvenue-Ads-Rule-Clash.yaml
url: "https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/main/Filters/AWAvenue-Ads-Rule-Clash.yaml"
# anti-AD 广告规则 Clash 版本
# Github:https://github.com/privacy-protection-tools/anti-AD?tab=readme-ov-file
antiAD:
<<: *rule_update
behavior: domain
format: yaml
path: ./rule_providers/antiAD.yaml
url: "https://anti-ad.net/clash.yaml"
direct:
# 直连域名列表
<<: *rule_update
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
path: ./rule_providers/direct.yaml
private:
# 私有网络专用域名列表
<<: *rule_update
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
path: ./rule_providers/private.yaml
cncidr:
# 中国大陆 IP 地址列表
<<: *rule_update
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
path: ./rule_providers/cncidr.yaml
lancidr:
# 局域网 IP 及保留 IP 地址列表
<<: *rule_update
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
path: ./rule_providers/lancidr.yaml
applications:
# 需要直连的常见软件列表
<<: *rule_update
behavior: classical
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
path: ./rule_providers/applications.yaml
OpenAI:
<<: *rule_update
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OpenAI/OpenAI.yaml"
path: ./rule_providers/openAI.yaml
Bing:
<<: *rule_update
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Bing/Bing.yaml"
path: ./rule_providers/Bing.yaml
Gemini:
<<: *rule_update
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Gemini/Gemini.yaml"
path: ./rule_providers/Gemini.yaml
Claude:
<<: *rule_update
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Claude/Claude.yaml"
path: ./rule_providers/Claude.yaml
EHGallery:
<<: *rule_update
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/EHGallery/EHGallery.yaml"
path: ./rule_providers/EHGallery.yaml
WeChat:
<<: *rule_update
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/WeChat/WeChat.yaml"
path: ./rule_providers/WeChat.yaml
Twitter:
<<: *rule_update
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Twitter/Twitter.yaml"
path: ./rule_providers/Twitter.yaml
# 分流规则
rules:
# 常用软件直连
- PROCESS-NAME,com.hihonor.cloudmusic,DIRECT
- PROCESS-NAME,com.netease.cloudmusic,DIRECT
- PROCESS-NAME,com.tencent.qqmusic,DIRECT
- PROCESS-NAME,com.tencent.gamehelper.smoba,DIRECT
- RULE-SET,WeChat,DIRECT
# 广告规则
# - RULE-SET,AWAvenue,REJECT
- RULE-SET,antiAD,REJECT
- GEOIP,private,DIRECT
- GEOSITE,private,DIRECT
- GEOIP,CN,DIRECT
- GEOSITE,cn,DIRECT
- RULE-SET,lancidr,DIRECT
- RULE-SET,applications,DIRECT
- RULE-SET,cncidr,DIRECT
- RULE-SET,direct,DIRECT
- RULE-SET,private,DIRECT
- RULE-SET,OpenAI,AI
- RULE-SET,Bing,AI
- RULE-SET,Gemini,AI
- RULE-SET,Claude,AI
- RULE-SET,EHGallery,手动切换
- RULE-SET,Twitter,Twitter
- MATCH,代理设置