-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.yaml
433 lines (372 loc) ยท 12 KB
/
Config.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
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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
# Port of HTTP(S) proxy server on the local end
port: 7890
# Port of SOCKS5 proxy server on the local end
socks-port: 7891
# Transparent proxy server port for Linux and macOS (Redirect TCP and TProxy UDP)
# redir-port: 7892
# Transparent proxy server port for Linux (TProxy TCP and TProxy UDP)
# tproxy-port: 7893
# HTTP(S) and SOCKS4(A)/SOCKS5 server on the same port
# mixed-port: 7890
# authentication of local SOCKS5/HTTP(S) server
# authentication:
# - "user1:pass1"
# - "user2:pass2"
# Set to true to allow connections to the local-end server from
# other LAN IP addresses
allow-lan: true
# This is only applicable when `allow-lan` is `true`
# '*': bind all IP addresses
# 192.168.122.11: bind a single IPv4 address
# "[aaaa::a8aa:ff:fe09:57d8]": bind a single IPv6 address
bind-address: '*'
# Clash router working mode
# rule: rule-based packet routing
# global: all packets will be forwarded to a single endpoint
# direct: directly forward the packets to the Internet
mode: rule
# Clash by default prints logs to STDOUT
# info / warning / error / debug / silent
log-level: info
# When set to false, resolver won't translate hostnames to IPv6 addresses
# ipv6: true
# RESTful web API listening address
external-controller: 127.0.0.1:9090
# A relative path to the configuration directory or an absolute path to a
# directory in which you put some static web resource. Clash core will then
# serve it at `http://{{external-controller}}/ui`.
# external-ui: folder
# Secret for the RESTful API (optional)
# Authenticate by spedifying HTTP header `Authorization: Bearer ${secret}`
# ALWAYS set a secret if RESTful API is listening on 0.0.0.0
# secret: ""
# Outbound interface name
# interface-name: en0
# fwmark on Linux only
# routing-mark: 6666
# Static hosts for DNS server and connection establishment (like /etc/hosts)
#
# Wildcard hostnames are supported (e.g. *.clash.dev, *.foo.*.example.com)
# Non-wildcard domain names have a higher priority than wildcard domain names
# e.g. foo.example.com > *.example.com > .example.com
# P.S. +.foo.com equals to .foo.com and foo.com
# hosts:
# '*.clash.dev': 127.0.0.1
# '.dev': 127.0.0.1
# 'alpha.clash.dev': '::1'
# profile:
# Store the `select` results in $HOME/.config/clash/.cache
# set false If you don't want this behavior
# when two different configurations have groups with the same name, the selected values are shared
# store-selected: false
# persistence fakeip
# store-fake-ip: true
# DNS server settings
# This section is optional. When not present, the DNS server will be disabled.
# dns:
# enable: false
# listen: 0.0.0.0:53
# ipv6: false # when the false, response to AAAA questions will be empty
# These nameservers are used to resolve the DNS nameserver hostnames below.
# Specify IP addresses only
# default-nameserver:
# - 114.114.114.114
# - 8.8.8.8
# enhanced-mode: fake-ip # or redir-host (not recommended)
# fake-ip-range: 198.18.0.1/16 # Fake IP addresses pool CIDR
# use-hosts: true # lookup hosts and return IP record
# Hostnames in this list will not be resolved with fake IPs
# i.e. questions to these domain names will always be answered with their
# real IP addresses
# fake-ip-filter:
# - '*.lan'
# - localhost.ptlogin2.qq.com
# Supports UDP, TCP, DoT, DoH. You can specify the port to connect to.
# All DNS questions are sent directly to the nameserver, without proxies
# involved. Clash answers the DNS question with the first result gathered.
# nameserver:
# - 114.114.114.114 # default value
# - 8.8.8.8 # default value
# - tls://dns.rubyfish.cn:853 # DNS over TLS
# - https://1.1.1.1/dns-query # DNS over HTTPS
# - dhcp://en0 # dns from dhcp
# - '8.8.8.8#en0'
# When `fallback` is present, the DNS server will send concurrent requests
# to the servers in this section along with servers in `nameservers`.
# The answers from fallback servers are used when the GEOIP country
# is not `CN`.
# fallback:
# - tcp://1.1.1.1
# - 'tcp://1.1.1.1#en0'
# If IP addresses resolved with servers in `nameservers` are in the specified
# subnets below, they are considered invalid and results from `fallback`
# servers are used instead.
#
# IP address resolved with servers in `nameserver` is used when
# `fallback-filter.geoip` is true and when GEOIP of the IP address is `CN`.
#
# If `fallback-filter.geoip` is false, results from `nameserver` nameservers
# are always used if not match `fallback-filter.ipcidr`.
#
# This is a countermeasure against DNS pollution attacks.
# fallback-filter:
# geoip: true
# geoip-code: CN
# ipcidr:
# - 240.0.0.0/4
# domain:
# - '+.google.com'
# - '+.facebook.com'
# - '+.youtube.com'
# Lookup domains via specific nameservers
# nameserver-policy:
# 'www.baidu.com': '114.114.114.114'
# '+.internal.crop.com': '10.0.0.1'
proxies:
proxy-groups:
- name: "๐ ่็น้ๆฉ"
type: select
proxies:
- ๐ ๆๅจๅๆข
- ๐ฏ๐ต ๆฅๆฌ
- ๐ญ๐ฐ ้ฆๆธฏ
# - "๐ธ๐ฌ ็ฎๅ"
- name: "๐ ๆๅจๅๆข"
type: select
proxies:
- ๐ฏ๐ต CF ws
- ๐ฏ๐ต CF grpc
- ๐ฏ๐ต ็ด่ฟ ws
- ๐ฏ๐ต ็ด่ฟ grpc
- ๐ญ๐ฐ CF ws
- ๐ญ๐ฐ CF grpc
- ๐ญ๐ฐ ็ด่ฟ ws
- ๐ญ๐ฐ ็ด่ฟ grpc
- name: "๐บ ๅๅฉๅๅฉ"
type: select
proxies:
- DIRECT
- ๐ญ๐ฐ ้ฆๆธฏ
- name: "โ๏ธ ๅพฎ่ฝฏ"
type: select
proxies:
- ๐ ่็น้ๆฉ
- ๐ญ๐ฐ ้ฆๆธฏ
- ๐ฏ๐ต ๆฅๆฌ
- ๐ ๆๅจๅๆข
- DIRECT
- name: "๐ ่นๆ"
type: select
proxies:
- DIRECT
- ๐ ่็น้ๆฉ
- ๐ญ๐ฐ ้ฆๆธฏ
- ๐ฏ๐ต ๆฅๆฌ
- ๐ ๆๅจๅๆข
- name: "๐ฎ CNCDN"
type: select
proxies:
- DIRECT
- ๐ ่็น้ๆฉ
- ๐ญ๐ฐ ้ฆๆธฏ
- ๐ฏ๐ต ๆฅๆฌ
- ๐ ๆๅจๅๆข
- name: "๐ Ehentai"
type: select
proxies:
- ๐ ่็น้ๆฉ
- ๐ญ๐ฐ ้ฆๆธฏ
- ๐ฏ๐ต ๆฅๆฌ
- ๐ ๆๅจๅๆข
- DIRECT
- name: "๐ข FCM"
type: select
proxies:
- ๐ ่็น้ๆฉ
- ๐ญ๐ฐ ้ฆๆธฏ
- ๐ฏ๐ต ๆฅๆฌ
- ๐ ๆๅจๅๆข
- DIRECT
- name: "๐ ๆผ็ฝไน้ฑผ"
type: select
proxies:
- ๐ ่็น้ๆฉ
- ๐ฏ๐ต ๆฅๆฌ
- ๐ญ๐ฐ ้ฆๆธฏ
- ๐ ๆๅจๅๆข
- DIRECT
- name: "๐ญ๐ฐ ้ฆๆธฏ"
type: select
proxies:
- ๐ญ๐ฐ CF grpc
- ๐ญ๐ฐ CF ws
- ๐ญ๐ฐ ็ด่ฟ grpc
- ๐ญ๐ฐ ็ด่ฟ ws
- name: "๐ฏ๐ต ๆฅๆฌ"
type: select
proxies:
- ๐ฏ๐ต CF grpc
- ๐ฏ๐ต CF ws
- ๐ฏ๐ต ็ด่ฟ grpc
- ๐ฏ๐ต ็ด่ฟ ws
rule-providers:
reject:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt"
path: ./ruleset/apple.yaml
interval: 86400
google:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt"
path: ./ruleset/google.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt"
path: ./ruleset/direct.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt"
path: ./ruleset/private.yaml
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt"
path: ./ruleset/applications.yaml
interval: 86400
FCMdomain:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/FCMdomain.yaml"
path: ./ruleset/FCMdomain.yaml
interval: 360000
FCMip:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/FCMip.yaml"
path: ./ruleset/FCMip.yaml
interval: 360000
bilibili:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/bilibili.yaml"
path: ./ruleset/bilibili.yaml
interval: 360000
bilibiliHMTdomain:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/bilibiliHMTdomain.yaml"
path: ./ruleset/bilibiliHMTdomain.yaml
interval: 360000
bilibiliHMTip:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/bilibiliHMTip.yaml"
path: ./ruleset/bilibiliHMTip.yaml
interval: 360000
eh:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/eh.yaml"
path: ./ruleset/eh.yaml
interval: 360000
epic:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/epic.yaml"
path: ./ruleset/epic.yaml
interval: 360000
microsoft:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/microsoft.yaml"
path: ./ruleset/microsoft.yaml
interval: 360000
onedrive:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/onedrive.yaml"
path: ./ruleset/onedrive.yaml
interval: 360000
steamdomain:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/steamdomain.yaml"
path: ./ruleset/steamdomain.yaml
interval: 360000
steamip:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/kagurainroy/Clash_Rules/main/RuleProviders/steamip.yaml"
path: ./ruleset/steamip.yaml
interval: 360000
rules:
- RULE-SET,applications,DIRECT
- DOMAIN,clash.razord.top,DIRECT
- DOMAIN,yacd.haishan.me,DIRECT
- RULE-SET,private,DIRECT
- RULE-SET,reject,REJECT
- RULE-SET,FCMdomain,๐ข FCM
- RULE-SET,bilibili,๐บ ๅๅฉๅๅฉ
- RULE-SET,bilibiliHMTdomain,๐บ ๅๅฉๅๅฉ
- RULE-SET,eh,๐ Ehentai
- RULE-SET,epic,๐ฎ CNCDN
- RULE-SET,steamdomain,๐ฎ CNCDN
- RULE-SET,icloud,๐ ่นๆ
- RULE-SET,apple,๐ ่นๆ
- RULE-SET,microsoft,โ๏ธ ๅพฎ่ฝฏ
- RULE-SET,onedrive,โ๏ธ ๅพฎ่ฝฏ
- RULE-SET,google,๐ ่็น้ๆฉ
- RULE-SET,proxy,๐ ่็น้ๆฉ
- RULE-SET,direct,DIRECT
- RULE-SET,lancidr,DIRECT,no-resolve
- RULE-SET,FCMip,๐ข FCM,no-resolve
- RULE-SET,bilibiliHMTip,๐บ ๅๅฉๅๅฉ,no-resolve
- RULE-SET,steamip,๐ฎ CNCDN,no-resolve
- RULE-SET,telegramcidr,๐ ่็น้ๆฉ,no-resolve
- RULE-SET,cncidr,DIRECT,no-resolve
- GEOIP,LAN,DIRECT,no-resolve
- GEOIP,CN,DIRECT,no-resolve
- MATCH,๐ ๆผ็ฝไน้ฑผ