-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path标准模板.yaml
301 lines (256 loc) · 6.36 KB
/
标准模板.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
allow-lan: true
bind-address: "*"
skip-auth-prefixes:
- 127.0.0.1/8
- ::1/128
mode: rule
log-level: info
redir-port: 8885
port: 8886
socks-port: 8887
mixed-port: 8888
tproxy-port: 8889
ipv6: true
find-process-mode: strict
external-controller: 0.0.0.0:9090
secret: "000"
geodata-mode: false
geodata-loader: standard
geo-auto-update: true
geo-update-interval: 24
unified-delay: true
tcp-concurrent: true
geox-url:
geoip: 'https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geoip.dat'
geosite: 'https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat'
mmdb: 'https://gitlab.com/Masaiki/GeoIP2-CN/-/raw/release/Country.mmdb'
asn: 'https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb'
profile:
store-selected: true
store-fake-ip: false
dns:
enable: true
prefer-h3: true
listen: 0.0.0.0:7874
ipv6: true
default-nameserver:
- 223.5.5.5
- 119.29.29.29
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- '*.lan'
nameserver:
- https://doh.pub/dns-query
- https://dns.alidns.com/dns-query
fallback:
- tls://1.0.0.1:853
- https://cloudflare-dns.com/dns-query
- https://dns.google/dns-query
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
- 0.0.0.0/32
tun:
enable: true
stack: mixed
auto-route: true
auto-detect-interface: true
dns-hijack:
- tcp://any:53
sniffer:
enable: true
force-dns-mapping: true
parse-pure-ip: true
override-destination: true
sniff:
HTTP:
ports: [80, 8080-8880]
override-destination: true
TLS:
ports: [443, 8443]
QUIC:
ports: [443, 8443]
force-domain:
- +.v2ex.com
skip-domain:
- Mijia Cloud
proxies:
Sub: &sub
type: http
interval: 86400
health-check:
enable: true
url: https://www.gstatic.com/generate_204
interval: 120
timeout: 2000
lazy: true
UseSub:
type: select
use: &node
- 机场1
- 机场2
- 机场3
Subrules: &rule
type: http
behavior: classical
interval: 3600
Urltest: &url
type: url-test
url: 'https://www.gstatic.com/generate_204'
interval: 20
timeout: 2000
tolerance: 20
hidden: true
lazy: true
Fallback: &fall
type: fallback
url: 'https://www.gstatic.com/generate_204'
interval: 10
timeout: 2000
hidden: true
lazy: true
FilterHK: &HK '^(?=.*((?i)🇭🇰|香港|(\b(HK|Hong)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterTW: &TW '^(?=.*((?i)🇹🇼|台湾|(\b(TW|Tai|Taiwan)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterJP: &JP '^(?=.*((?i)🇯🇵|日本|川日|东京|大阪|泉日|埼玉|(\b(JP|Japan)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterSG: &SG '^(?=.*((?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b)))(?!.*((?i)回国|校园|游戏|🎮|(\b(GAME)\b))).*$'
FilterUS: &US '^(?=.*((?i)🇺🇸|美国|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|(\b(US|United States)\b)))(?!.*((?i)回国|校园|游戏|专用|🎮|(\b(GAME)\b))).*$'
FilterGame: &Game '^(?=.*((?i)游戏|🎮|(\b(GAME)\b)))(?!.*((?i)回国|校园)).*$'
FilterAll: &ALL '^(?=.*(.))(?!.*((?i)群|邀请|返利|循环|官网|客服|网站|网址|获取|订阅|流量|到期|机场|下次|版本|官址|备用|过期|已用|联系|邮箱|工单|贩卖|通知|倒卖|防止|国内|地址|频道|无法|说明|使用|提示|特别|🎮|访问|支持|教程|关注|更新|作者|加入|(\b(USE|USED|TOTAL|EXPIRE|EMAIL|Panel|Channel|Author)\b|(\d{4}-\d{2}-\d{2}|\d+G)))).*$'
Group: &group
type: select
proxies:
- 📍地区选择
- 🇭🇰香港策略
- 🇸🇬新加坡策略
- 🇯🇵日本策略
- 🇺🇸美国策略
- 🇨🇳台湾策略
proxy-providers:
机场1:
url: "订阅1"
path: ./proxy_providers/Sub.yaml
<<: *sub
机场2:
url: "订阅2"
path: ./proxy_providers/Sub1.yaml
<<: *sub
机场3:
url: "订阅3"
path: ./proxy_providers/Sub3.yaml
<<: *sub
proxy-groups:
- name: "📍地区选择"
type: select
proxies:
- 🇭🇰香港策略
- 🇸🇬新加坡策略
- 🇯🇵日本策略
- 🇺🇸美国策略
- 🇨🇳台湾策略
- name: "🎵Spotify"
<<: *group
- name: "📱Telegram"
<<: *group
- name: "🤖AI"
<<: *group
#手动区
- name: "香港手动"
type: select
use: *node
filter: *HK
- name: "新加坡手动"
type: select
use: *node
filter: *SG
- name: "日本手动"
type: select
use: *node
filter: *JP
- name: "美国手动"
type: select
use: *node
filter: *US
- name: "台湾手动"
type: select
use: *node
filter: *TW
#自动区
- name: "🇭🇰香港策略"
<<: *fall
proxies:
- 香港手动
- 香港自动
- name: "🇸🇬新加坡策略"
<<: *fall
proxies:
- 新加坡手动
- 新加坡自动
- name: "🇯🇵日本策略"
<<: *fall
proxies:
- 日本手动
- 日本自动
- name: "🇺🇸美国策略"
<<: *fall
proxies:
- 美国手动
- 美国自动
- name: "🇨🇳台湾策略"
<<: *fall
proxies:
- 台湾手动
- 台湾自动
- name: "香港自动"
<<: *url
use: *node
filter: *HK
- name: "新加坡自动"
<<: *url
use: *node
filter: *SG
- name: "日本自动"
<<: *url
use: *node
filter: *JP
- name: "美国自动"
<<: *url
use: *node
filter: *US
- name: "台湾自动"
<<: *url
use: *node
filter: *TW
rule-providers:
Lan:
<<: *rule
url: https://raw.githubusercontent.com/dler-io/Rules/main/Clash/Provider/LAN.yaml
path: "./rule_provider/Lan.yaml"
AD:
type: http
behavior: domain
interval: 3600
format: 'text'
url: https://adrules.top/adrules_domainset.txt
path: "./rule_provider/AD.yaml"
Spotify:
<<: *rule
url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Spotify/Spotify.yaml
path: "./rule_provider/Spotify.yaml"
Telegram:
<<: *rule
url: https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Clash/Rule/Telegram.yaml
path: "./rule_provider/Telegram.yaml"
AI:
<<: *rule
url: https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Clash/Rule/AI.yaml
path: "./rule_provider/AI.yaml"
rules:
- RULE-SET,Lan,DIRECT
- RULE-SET,AD,REJECT
- RULE-SET,Telegram,📱Telegram
- RULE-SET,Spotify,🎵Spotify
- RULE-SET,AI,🤖AI
- GEOIP,CN,DIRECT
- MATCH,📍地区选择