-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClashMetaDNS.yaml
260 lines (255 loc) · 6.65 KB
/
ClashMetaDNS.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
# Clash 配置格式
proxy-providers:
<ProxyProviders_Name>:
type: http
url: <url>
interval: 86400
path: ./<ProxyProviders_Name>.yaml
proxy-groups:
- name: infomation
type: select
use:
- <ProxyProviders_Name>
filter: (剩余|重置|到期|套餐)
- name: iProxy
type: select
use:
- <ProxyProviders_Name>
filter: ^((?!剩余|重置|到期|套餐).)*$
- name: iProxyHK
type: url-test
use:
- <ProxyProviders_Name>
filter: ^((?!IPLC|PRO).)*(香港|HK|Hongkong)((?!IPLC|PRO).)*$
url: http://www.gstatic.com/generate_204
interval: 600
tolerance: 100
lazy: true
- name: iProxyTW
type: url-test
use:
- <ProxyProviders_Name>
filter: ^((?!IPLC|PRO).)*(台湾|TW|Taiwan)((?!IPLC|PRO).)*$
url: http://www.gstatic.com/generate_204
interval: 600
tolerance: 100
lazy: true
- name: iProxySG
type: url-test
use:
- <ProxyProviders_Name>
filter: ^((?!IPLC|PRO).)*(新加坡|SG|Singapore)((?!IPLC|PRO).)*$
url: http://www.gstatic.com/generate_204
interval: 600
tolerance: 100
lazy: true
- name: iProxyKR
type: url-test
use:
- <ProxyProviders_Name>
filter: ^((?!IPLC|PRO).)*(韩国|KR|Korea)((?!IPLC|PRO).)*$
url: http://www.gstatic.com/generate_204
interval: 600
tolerance: 100
lazy: true
- name: iProxyJP
type: url-test
use:
- <ProxyProviders_Name>
filter: ^((?!IPLC|PRO).)*(日本|JP|Japan)((?!IPLC|PRO).)*$
url: http://www.gstatic.com/generate_204
interval: 600
tolerance: 100
lazy: true
- name: iProxyUS
type: url-test
use:
- <ProxyProviders_Name>
filter: ^((?!IPLC|PRO).)*(美国|US|UnitedStates)((?!IPLC|PRO).)*$
url: http://www.gstatic.com/generate_204
interval: 600
tolerance: 100
lazy: true
- name: iProxyIPLC
type: select
use:
- <ProxyProviders_Name>
filter: (IPLC|PRO)
- name: iSwitchyDirect
type: select
proxies:
- DIRECT
- iProxyHK
- iProxy
- name: iSwitchyProxy
type: select
proxies:
- iProxyHK
- iProxyTW
- iProxyJP
- iProxyKR
- iProxySG
- iProxyUS
- iProxyIPLC
- iSwitchyDirect
- name: iSwitchyFinal
type: select
proxies:
- iSwitchyProxy
- iSwitchyDirect
- name: iSwitchyUS_JP_KR_SG
type: select
proxies:
- iProxyJP
- iProxyKR
- iProxySG
- iProxyUS
- iSwitchyDirect
- name: iSwitchyHK_TW
type: select
proxies:
- iProxyHK
- iProxyTW
- iSwitchyDirect
- name: iSwitchyBilbili
type: select
proxies:
- iSwitchyDirect
- iSwitchyHK_TW
- name: iSwitchyNetflix
type: select
proxies:
- iProxy
- iSwitchyHK_TW
- iSwitchyUS_JP_KR_SG
- name: iSwitchyService
type: select
proxies:
- iSwitchyUS_JP_KR_SG
- iSwitchyHK_TW
- iSwitchyDirect
- name: iSwitchyMA
type: select
proxies:
- iSwitchyDirect
- iSwitchyHK_TW
- iSwitchyUS_JP_KR_SG
- name: iMaplestory
type: select
proxies:
- iSwitchyHK_TW
- iProxy
mixed-port: 7890
allow-lan: true
bind-address: 127.0.0.1
mode: rule
log-level: warning
external-controller: 127.0.0.1:9090
dns:
enable: true
ipv6: false
enhanced-mode: fake-ip
nameserver:
- https://doh.pub/dns-query
- https://dns.alidns.com/dns-query
default-nameserver:
- 223.5.5.5
- 119.29.29.29
fallback: []
nameserver-policy: {}
fake-ip-filter:
- +.stun.*.*
- +.stun.*.*.*
- +.stun.*.*.*.*
- +.stun.*.*.*.*.*
- "*.n.n.srv.nintendo.net"
- +.stun.playstation.net
- xbox.*.*.microsoft.com
- "*.*.xboxlive.com"
- "*.msftncsi.com"
- "*.msftconnecttest.com"
- WORKGROUP
- '+.lan'
- '+.local'
rule-providers:
icloud:
type: http
behavior: domain
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt
path: ./providers/rule/e3d3c05cb5d577d3668b6e4a75ec948a.yaml
interval: 86400
apple:
type: http
behavior: domain
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt
path: ./providers/rule/b4ea3fc289ebc45465cc6e2fb4762a3e.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt
path: ./providers/rule/b38427df77d4e9f81682d0c8b394b20b.yaml
interval: 86400
direct:
type: http
behavior: domain
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt
path: ./providers/rule/5b5a90b8e3929465e887c6882195c53f.yaml
interval: 86400
private:
type: http
behavior: domain
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt
path: ./providers/rule/1ddfc7d71b45ca810cb6bdb776adfd27.yaml
interval: 86400
applications:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt
path: ./providers/rule/f8a3e2584a4c87f19ad04bdd508f1174.yaml
interval: 86400
bilibili:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/BiliBili/BiliBili.yaml
path: ./providers/rule/9448ae68245515ca53be03a5b39de7c3.yaml
interval: 86400
netflix:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Netflix/Netflix_Classical.yaml
path: ./providers/rule/e03a0b37700f4b5953ad1d06bb5fde8c.yaml
interval: 86400
Microsoft:
type: http
behavior: classical
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Microsoft/Microsoft.yaml
path: ./providers/rule/351df461e83cf2aba3372c457ab53e22.yaml
interval: 86400
iMaplestory:
type: http
behavior: classical
url: https://raw.githubusercontent.com/shadowknights/iCollection/main/ruleset/iMaplestory.list
path: ./providers/rule/iMaplestory.yaml
interval: 86400
iOpenAI:
type: http
behavior: classical
url: https://raw.githubusercontent.com/shadowknights/iCollection/main/ruleset/iOpenAI.list
path: ./providers/rule/iOpenAI.yaml
interval: 86400
rules:
- RULE-SET,iMaplestory,iMaplestory
- RULE-SET,iOpenAI,iSwitchyService
# - RULE-SET,applications,iSwitchyDirect
- RULE-SET,private,iSwitchyDirect
- RULE-SET,Microsoft,iSwitchyMA
- RULE-SET,apple,iSwitchyMA
- RULE-SET,icloud,iSwitchyMA
- RULE-SET,netflix,iSwitchyNetflix
- RULE-SET,proxy,iSwitchyProxy
- RULE-SET,bilibili,iSwitchyBilbili
- RULE-SET,direct,iSwitchyDirect
- GEOIP,LAN,DIRECT,no-resolve
- GEOIP,CN,iSwitchyDirect,no-resolve
- MATCH,iSwitchyFinal