-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path4分组简化版本地配置-填订阅.yml
328 lines (298 loc) · 9.27 KB
/
4分组简化版本地配置-填订阅.yml
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
port: 7890
socks-port: 7891
mixed-port: 7893
allow-lan: true
mode: Rule
log-level: info
dns:
enable: true
ipv6: true
listen: 0.0.0.0:8053
default-nameserver :
- 1.1.1.1
- 8.8.8.8
enhanced-mode: fake-ip
# 配置不使用fake-ip的域名
fake-ip-filter:
- '+.*'
- '*.lan'
- localhost.ptlogin2.qq.com
nameserver:
- 223.5.5.5
- 1.1.1.1
- 8.8.8.8
- 114.114.114.114
- 119.29.29.29
fallback: # 与 nameserver 内的服务器列表同时发起请求,当规则符合 GEOIP 在 CN 以外时,fallback 列表内的域名服务器生效。
- https://dns.google/dns-query
- https://1.1.1.1/dns-query
- tcp://8.8.8.8:53
- tcp://8.8.4.4:53
- tcp://208.67.222.222:443
- tcp://208.67.220.220:443
fallback-filter:
geoip: true
geoip-code: CN
ipcidr:
- 240.0.0.0/4
domain:
- '+.google.com'
- '+.googleapis.com'
- '+.youtube.com'
- '+.appspot.com'
- '+.telegram.com'
- '+.facebook.com'
- '+.twitter.com'
- '+.blogger.com'
- '+.gmail.com'
- '+.gvt1.com'
sniffer:
enable: true
override-destination: true
sniff:
http: { ports: [80, 8080] }
tls: { ports: [443, 8443] }
skip-domain:
#Apple
- 'courier.push.apple.com'
#mi
- 'Mijia Cloud'
# interval代表间隔时间,单位为s
# tolerance代表容差时间,单位为ms
# 节点订阅 机场的订阅在此处填写,多个机场可以新建多个providers也可以使用订阅转换合并为一个订阅
# 订阅转换服务可以使用下面的在线,也可以使用sub2clash本地转换
# https://v2rayse.com/node-convert/
# 在线的安全性自己心里有数 用别怕,怕别用 sub2clash则可能漏几个少见的新协议节点不处理 比如vless-reality-tcp
# 默认每六小时更新一次节点订阅
proxy-providers:
一元机场: #这里名字改了下面108行也得改
type: http
path: ./Proxy/机场.yml
url: #此处填订阅,注意空格对齐
#否定式前瞻排除正则,基本表达式为^(?!匹配模式),".*?"表示任意字符.排除名字含有[流量|到期|重置]中任意一个的节点
filter: "^(?!.*?[流量|到期|重置]).*?$"
#直接正则匹配排除,和上一行的表达式是一样的作用,在mihomo上可以工作,P核不清楚
exclude-filter: "流量|到期|重置"
interval: 21600
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
proxies: #单个额外的节点 区别于机场提供的节点
- type: vless
name: "🆓1"
server: 188.114.97.67
port: 80
uuid:
udp: true
network: ws
ws-opts:
path: /?ed=2048
headers:
Host:
maxearlydata: 0
earlydataheadername: ""
ws-path: /?ed=2048
ws-headers:
Host:
fingerprint: randomized
# 节点组
# 默认每分钟测试一次节点延时
# 容差参数未开启时默认为0ms
proxy-groups:
- name: 🚀 手动切换
type: select
use:
- 一元机场 #这里名字和上面69行对应
proxies: #单个节点
- "🆓1"
- name: 🐟 漏网之鱼
type: select
proxies:
- DIRECT
- 🚀 手动切换
- name: 🎯 全球直连/版权区
type: select
proxies:
- DIRECT
- 🚀 手动切换
- name: 🛑 广告屏蔽
type: select
proxies:
- REJECT
- DIRECT
# 分流规则订阅
# 默认每二十四小时更新一次分流规则
rule-providers:
NSFW:
type: http
behavior: classical
path: ./RuleSet/NSFW.yaml
url: https://cdn.jsdelivr.net/gh/tanmoumou252/NSFWruleset/NSFW.yaml
interval: 86400
China:
type: http
behavior: classical
path: ./RuleSet/China.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/China/China.yaml
interval: 86400
AdvertisingTest:
type: http
behavior: classical
path: ./RuleSet/AdvertisingTest.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/AdvertisingTest/AdvertisingTest.yaml
interval: 86400
Google:
type: http
behavior: classical
path: ./RuleSet/Google.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Google/Google.yaml
interval: 86400
GoogleDrive:
type: http
behavior: classical
path: ./RuleSet/GoogleDrive.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GoogleDrive/GoogleDrive.yaml
interval: 86400
OneDrive:
type: http
behavior: classical
path: ./RuleSet/OneDrive.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OneDrive/OneDrive.yaml
interval: 86400
Microsoft:
type: http
behavior: classical
path: ./RuleSet/Microsoft.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Microsoft/Microsoft.yaml
interval: 86400
Github:
type: http
behavior: classical
path: ./RuleSet/Github.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GitHub/GitHub.yaml
interval: 86400
Apple:
type: http
behavior: classical
path: ./RuleSet/Apple.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Apple/Apple.yaml
interval: 86400
Telegram:
type: http
behavior: classical
path: ./RuleSet/Telegram.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Telegram/Telegram.yaml
interval: 86400
Game:
type: http
behavior: classical
path: ./RuleSet/Game.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Game/Game.yaml
interval: 86400
YouTube:
type: http
behavior: classical
path: ./RuleSet/YouTube.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/YouTube/YouTube.yaml
interval: 86400
Netflix:
type: http
behavior: classical
path: ./RuleSet/Netflix.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Netflix/Netflix.yaml
interval: 86400
Bahamut:
type: http
behavior: classical
path: ./RuleSet/Bahamut.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Bahamut/Bahamut.yaml
interval: 86400
GlobalMedia:
type: http
behavior: classical
path: ./RuleSet/GlobalMedia.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GlobalMedia/GlobalMedia.yaml
interval: 86400
Bilibili:
type: http
behavior: classical
path: ./RuleSet/Bilibili.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/BiliBili/BiliBili.yaml
interval: 86400
ChinaMedia:
type: http
behavior: classical
path: ./RuleSet/ChinaMedia.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/ChinaMedia/ChinaMedia.yaml
interval: 86400
Developer:
type: http
behavior: classical
path: ./RuleSet/Developer.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Developer/Developer.yaml
interval: 86400
Download:
type: http
behavior: classical
path: ./RuleSet/Download.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Download/Download.yaml
interval: 86400
Lan:
type: http
behavior: classical
path: ./RuleSet/Lan.yaml
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Lan/Lan.yaml
interval: 86400
Lan_CN:
type: http
behavior: classical
path: ./RuleSet/Lan_CN.yaml
url: https://cdn.jsdelivr.net/gh/tanmoumou252/NSFWruleset/Lan_CN.yaml
interval: 86400
Firefox:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/tanmoumou252/firefoxruleset/Firefox.yaml
path: ./RuleSet/Firefox.yaml
interval: 86400
GPT_AI:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/tanmoumou252/NSFWruleset/GPT_AI.yaml
path: ./RuleSet/GPT_AI.yaml
interval: 86400
Twitter:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script/rule/Clash/Twitter/Twitter.yaml
path: ./RuleSet/Twitter.yaml
interval: 86400
# 分流规则
rules:
- RULE-SET,NSFW,🚀 手动切换
- RULE-SET,Download,DIRECT
- RULE-SET,Lan,DIRECT
- RULE-SET,AdvertisingTest,🛑 广告屏蔽
- RULE-SET,Google,🚀 手动切换
- RULE-SET,GoogleDrive,🚀 手动切换
- RULE-SET,OneDrive,DIRECT
- RULE-SET,Microsoft,DIRECT
- RULE-SET,Apple,DIRECT
- RULE-SET,Telegram,🚀 手动切换
- RULE-SET,Game,🎯 全球直连/版权区
- RULE-SET,YouTube,🚀 手动切换
- RULE-SET,Bahamut,🚀 手动切换
- RULE-SET,Netflix,🚀 手动切换
- RULE-SET,GlobalMedia,🚀 手动切换
- RULE-SET,Bilibili,🎯 全球直连/版权区
- RULE-SET,ChinaMedia,DIRECT
- RULE-SET,Github,🚀 手动切换
- RULE-SET,Developer,🚀 手动切换
- RULE-SET,GPT_AI,🚀 手动切换
- RULE-SET,Twitter,🚀 手动切换
- RULE-SET,Lan_CN,DIRECT
- RULE-SET,China,DIRECT
- RULE-SET,Firefox,DIRECT
- GEOIP,CN,DIRECT
- MATCH,🐟 漏网之鱼