-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathOpenClash.yaml
236 lines (232 loc) · 5.82 KB
/
OpenClash.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
# ==UserScript==
# @修改自墨鱼Clash配置文件
# ==/UserScript==
port: 7890
socks-port: 7891
redir-port: 7892
mixed-port: 7893
allow-lan: true
bind-address: "*"
mode: rule
log-level: info
ipv6: false
external-controller: 127.0.0.1:9090
dns:
enable: true
ipv6: false
listen: 0.0.0.0:53
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- "*.lan"
- localhost.ptlogin2.qq.com
- +.srv.nintendo.net
- +.stun.playstation.net
- +.msftconnecttest.com
- +.msftncsi.com
- +.xboxlive.com
- msftconnecttest.com
- xbox.*.microsoft.com
- "*.battlenet.com.cn"
- "*.battlenet.com"
- "*.blzstatic.cn"
- "*.battle.net"
nameserver:
- 223.5.5.5
- 119.29.29.29
- 114.114.114.114
fallback:
- https://cloudflare-dns.com/dns-query
- https://dns.google/dns-query
- https://dns.alidns.com/dns-query
fallback-filter:
geoip: true
geoip-code: CN
ipcidr:
- 240.0.0.0/4
#锚点
pr:
&a3
type: select
proxies:
- 自动切换
- 手动选择
- 香港节点
- 日本节点
- 美国节点
- 台湾节点
- 狮城节点
- DIRECT
p:
&a1
type: http
interval: 86400
health-check:
enable: true
url: http://cp.cloudflare.com/generate_204
interval: 1800
auto:
&a4
type: url-test
lazy: true
url: http://cp.cloudflare.com/generate_204
interval: 900
use:
- Subscribe
use:
&a2
type: select
use:
- Subscribe
c:
&a6
type: http
behavior: classical
interval: 86400
d:
&a5
type: http
behavior: domain
interval: 86400
i:
&a7
type: http
behavior: ipcidr
interval: 86400
proxy-providers:
Subscribe:
<<: *a1
url: https://sub.xeton.dev/sub?target=clash&url=此处填写订阅链接&list=true&udp=false
path: ./proxy_providers/tmp.yaml
proxies: null
proxy-groups:
#分流分组
- name: 手动选择
<<: *a2
- name: 全球加速
<<: *a3
- name: 苹果服务
<<: *a3
- name: 哔哩哔哩
type: select
proxies:
- DIRECT
- 香港节点
- 台湾节点
- name: 奈飞视频
<<: *a3
- name: 国际媒体
<<: *a3
- name: 谷歌服务
<<: *a3
- name: 电报代理
<<: *a3
- name: 推特服务
<<: *a3
- name: 游戏加速
<<: *a3
- name: 广告拦截
type: select
proxies:
- REJECT
- DIRECT
- name: 兜底规则
<<: *a3
#节点分组
- name: 自动切换
<<: *a4
filter: 香港 HA|香港 AC
- name: 香港节点
<<: *a4
filter: 港|HK|Hong
- name: 日本节点
<<: *a4
filter: 日|东京|JP|Japan
- name: 台湾节点
<<: *a4
filter: 台|湾|TW|Taiwan
- name: 美国节点
<<: *a4
filter: 美|US|States|American
- name: 狮城节点
<<: *a4
filter: 新|坡|SG|Singapore
rule-providers:
Direct:
<<: *a5
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Direct/Direct.yaml
path: ./ruleset/Direct.yaml
Lan:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Lan/Lan.yaml
path: ./ruleset/Lan.yaml
Download:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Download/Download.yaml
path: ./ruleset/Download.yaml
Ad:
<<: *a5
url: https://anti-ad.net/clash.yaml
path: ./ruleset/anti-ad-clash.yaml
Netflix:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Netflix/Netflix.yaml
path: ./ruleset/Netflix.yaml
GlobalMedia:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GlobalMedia/GlobalMedia_Classical.yaml
path: ./ruleset/GlobalMedia.yaml
Apple:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Apple/Apple_Classical.yaml
path: ./ruleset/Apple.yaml
Github:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GitHub/GitHub.yaml
path: ./ruleset/Github.yaml
Google:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Google/Google.yaml
path: ./ruleset/Google.yaml
Telegram:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Telegram/Telegram.yaml
path: ./ruleset/Telegram.yaml
Twitter:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Twitter/Twitter.yaml
path: ./ruleset/Twitter.yaml
BiliBili:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/BiliBili/BiliBili.yaml
path: ./ruleset/BiliBili.yaml
Game:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Game/Game.yaml
path: ./ruleset/Game.yaml
ChinaIP:
<<: *a7
url: https://cdn.jsdelivr.net/gh/soffchen/GeoIP2-CN@release/clash-rule-provider.yml
path: ./ruleset/ChinaIP.yaml
ProxyLite:
<<: *a6
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/ProxyLite/ProxyLite.yaml
path: ./ruleset/ProxyLite.yaml
rules:
- RULE-SET,Direct,DIRECT
- RULE-SET,Lan,DIRECT
- RULE-SET,Download,DIRECT
- RULE-SET,Ad,广告拦截
- RULE-SET,Netflix,奈飞视频
- RULE-SET,GlobalMedia,国际媒体
- RULE-SET,Apple,苹果服务
- RULE-SET,Github,全球加速
- RULE-SET,Google,谷歌服务
- RULE-SET,Telegram,电报代理
- RULE-SET,Twitter,全球加速
- RULE-SET,BiliBili,哔哩哔哩
- RULE-SET,Game,游戏加速
- RULE-SET,ProxyLite,全球加速
- RULE-SET,ChinaIP,DIRECT
- GEOIP,CN,DIRECT
- MATCH,兜底规则