-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClashVerge.yaml
277 lines (211 loc) · 14.4 KB
/
ClashVerge.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
##########
# Author: Chikit-L
# Date: 2024-06-07 15:15:10
# LastEditTime: 2024-11-07 17:16:46
# FilePath: \ClashRule\ClashVerge.yaml
# Description: 原规则地址: https://raw.githubusercontent.com/Repcz/Tool/X/Clash/Meta/ClashVerge.yaml
##########
# 混合端口,用于 HTTP 和 SOCKS5 代理
mixed-port: 7890
# 统一延迟,减少对不同节点的延迟差异
unified-delay: true
# TCP 并发连接所有 IP,使用最快握手的 TCP 连接
tcp-concurrent: true
# 全局客户端指纹,模拟 Firefox 浏览器
global-client-fingerprint: firefox
# 不允许局域网的连接
allow-lan: false
# 使用规则模式进行流量管理
mode: rule
# GeoIP 数据库和 GeoSite 数据库的 URL
geox-url:
geoip: 'https://github.com/Loyalsoldier/geoip/releases/latest/download/geoip.dat'
geosite: 'https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat'
mmdb: 'https://github.com/Loyalsoldier/geoip/releases/latest/download/Country.mmdb'
profile:
# 存储 select 选择记录
store-selected: true
# 持久化 fake-ip
store-fake-ip: true
# 嗅探域名 可选配置
sniffer:
enable: true
# 是否使用嗅探结果作为实际访问,默认 true
parse-pure-ip: true
sniff:
TLS:
ports: [443, 8443]
HTTP:
ports: [80, 8080-8880]
override-destination: true
QUIC:
ports: [443, 8443]
# Tun 配置
tun:
enable: true
# 可选: system/gvisor/mixed;
stack: mixed
# dns劫持,一般设置为 any:53 即可, 即劫持所有53端口的udp流量
dns-hijack: [any:53]
# 自动设置全局路由,可以自动将全局流量路由进入tun网卡。
auto-route: true
# 自动识别出口网卡
auto-detect-interface: true
dns:
enable: true
# IPV6解析开关;如果为false,将返回ipv6结果为空
ipv6: false
# 模式:redir-host或fake-ip
enhanced-mode: fake-ip
# DNS监听地址
listen: 0.0.0.0:1053
# Fake-IP解析地址池
fake-ip-range: 198.18.0.1/16
# fakeip 过滤,以下地址不会下发 fakeip 映射用于连接
fake-ip-filter: ['*.lan','*.direct', cable.auth.com, '*.msftconnecttest.com', '*.msftncsi.com', network-test.debian.org, detectportal.firefox.com, resolver1.opendns.com, '*.srv.nintendo.net', '*.stun.playstation.net', xbox.*.microsoft.com, '*.xboxlive.com', stun.*, global.turn.twilio.com, global.stun.twilio.com, app.yinxiang.com, injections.adguard.org, local.adguard.org, cable.auth.com, localhost.*.qq.com, localhost.*.weixin.qq.com, '*.logon.battlenet.com.cn', '*.logon.battle.net', '*.blzstatic.cn', music.163.com, '*.music.163.com', '*.126.net', musicapi.taihe.com, music.taihe.com, songsearch.kugou.com, trackercdn.kugou.com, '*.kuwo.cn', api-jooxtt.sanook.com, api.joox.com, joox.com, y.qq.com, '*.y.qq.com', streamoc.music.tc.qq.com, mobileoc.music.tc.qq.com, isure.stream.qqmusic.qq.com, dl.stream.qqmusic.qq.com, aqqmusic.tc.qq.com, amobile.music.tc.qq.com, '*.xiami.com', '*.music.migu.cn', music.migu.cn, proxy.golang.org, '*.mcdn.bilivideo.cn', '*.cmpassport.com', id6.me, open.e.189.cn, mdn.open.wo.cn, opencloud.wostore.cn, auth.wosms.cn, '*.jegotrip.com.cn', '*.icitymobile.mobi', '*.pingan.com.cn', '*.cmbchina.com', '*.10099.com.cn', pool.ntp.org, '*.pool.ntp.org', ntp.*.com, time.*.com, 'ntp?.*.com', 'time?.*.com', time.*.gov, time.*.edu.cn, '*.ntp.org.cn', PDC._msDCS.*.*, DC._msDCS.*.*, GC._msDCS.*.*]
#默认的域名解析服务器
nameserver: [quic://223.5.5.5, quic://223.6.6.6, https://1.12.12.12/dns-query, https://120.53.53.53/dns-query]
# 策略组引用相关参数
pg: &pg {type: select, proxies: [自动切换, 手动切换, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点, DIRECT]}
# 订阅更新和延迟测试相关参数
p: &p {type: http, interval: 86400, health-check: {enable: true, url: http://www.gstatic.com/generate_204, interval: 1800}}
# 自动选择策略组:选取延迟最低节点
auto: &auto {type: url-test, lazy: true, url: http://www.gstatic.com/generate_204, interval: 300, tolerance: 0, include-all: true}
# 手动选择策略组:手动选择想要的节点/策略组
select: &select {type: select, include-all: true}
# 故障回退策略组:策略组将按顺序选择你列表中第一个可用的节点
fallback: &fallback {type: fallback, lazy: true, url: https://www.52pojie.cn/, interval: 300, include-all: true}
# 负载均衡策略组:不同的请求将使用不同的代理节点
load-balance: &load-balance {type: load-balance, lazy: true, strategy: consistent-hashing, url: http://www.gstatic.com/generate_204, interval: 300, include-all: true}
# classical规则相关
c: &c {type: http, behavior: classical, interval: 86400}
# domain规则相关
d: &d {type: http, behavior: domain, interval: 86400}
# ipcidr规则相关
i: &i {type: http, behavior: ipcidr, interval: 86400}
proxy-providers:
provider1:
<<: *p
path: ./proxy-providers/provider1.yaml
url: http://your-service-provider1
provider2:
<<: *p
path: ./proxy-providers/provider2.yaml
url: http://your-service-provider2
# 在此将"http://your-service-provider"替换为你的机场订阅,推荐使用base64或者node list
# Sub-Store生成的链接,可以直接替换上述url引号中的部分,具体见Sub-Store教程
proxy-groups:
#分流分组
- {name: 自动切换, type: url-test, include-all: true, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Auto.png}
- {name: 手动切换, type: select, include-all: true, proxies: [香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点, DIRECT], icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Available.png}
- {name: 上班摸鱼, type: fallback, url: "https://www.52pojie.cn/", interval: 300, proxies: [DIRECT, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点] , icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/fish.svg}
- {name: 国外网站, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Airport.png}
- {name: 国际媒体, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/YouTube.png}
- {name: 学术期刊, type: select, proxies: [DIRECT, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点], icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Scholar.png}
- {name: 苹果服务, type: select, proxies: [DIRECT, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点], icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple.png}
- {name: Github, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/GitHub.png}
- {name: 微软服务, type: select, proxies: [DIRECT, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点], icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Microsoft.png}
- {name: 谷歌服务, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Google_Search.png}
- {name: 电报消息, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Telegram.png}
- {name: 推特消息, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Twitter.png}
- {name: AI, type: select, proxies: [ 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点, 香港节点], icon: https://raw.githubusercontent.com/Orz-3/mini/master/Color/OpenAI.png}
- {name: 游戏平台, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Game.png}
- {name: Emby, <<: *pg, include-all: true, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Emby.png}
- {name: 哔哩哔哩, type: select, proxies: [DIRECT, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点], icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/bilibili.png}
- {name: 广告拦截, type: select, proxies: [REJECT, DIRECT], icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Advertising.png}
- {name: 兜底分流, type: select, proxies: [DIRECT, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, 其他节点], icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color//Final.png}
#节点地区分组
- {name: 香港节点, <<: *auto, filter: "(?i)🇭🇰|香港|(\b(HK|Hong)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png}
- {name: 美国节点, <<: *auto, filter: "(?i)🇺🇸|美国|洛杉矶|圣何塞|(\b(US|United States)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png}
- {name: 狮城节点, <<: *auto, filter: "(?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Singapore.png}
- {name: 日本节点, <<: *auto, filter: "(?i)🇯🇵|日本|东京|(\b(JP|Japan)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png}
- {name: 台湾节点, <<: *auto, filter: "(?i)🇨🇳|🇹🇼|台湾|(\b(TW|Tai|Taiwan)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China.png}
- {name: 其他节点, <<: *auto, filter: "^(?!.*(?:🇭🇰|香港|\b(HK|Hong)\b|🇺🇸|美国|洛杉矶|圣何塞|\b(US|United States)\b|🇸🇬|新加坡|狮|\b(SG|Singapore)\b|🇯🇵|日本|东京|\b(JP|Japan)\b|🇨🇳|🇹🇼|台湾|\b(TW|Tai|Taiwan)\b)).*$", icon: https://raw.githubusercontent.com/Orz-3/mini/master/Color/Global.png}
rule-providers:
# 局域网
Lan: {<<: *c, format: text, path: ./rule-providers/Lan.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Lan.list}
# 下载服务
Download: {<<: *c, format: text, path: ./rule-providers/Download.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Download.list}
# 上班摸鱼
OfficeBlockedURLs: {<<: *c, format: text, path: ./rule-providers/OfficeBlockedURLs.list, url: https://raw.githubusercontent.com/Chikit-L/ClashRule/main/OfficeBlockedURLs.list}
# 广告拦截
AD: {<<: *d, format: text, path: ./rule-providers/AD.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Reject.list}
# 学术期刊
Scholar: {<<: *c, format: text, path: ./rule-providers/Scholar.list, url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Scholar.list}
# 苹果服务
Apple: {<<: *c, format: text, path: ./rule-providers/Apple.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Apple.list}
# Github
Github: {<<: *c, format: text, path: ./rule-providers/Github.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Github.list}
# 微软服务
OneDrive: {<<: *c, format: text, path: ./rule-providers/OneDrive.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/OneDrive.list}
Microsoft: {<<: *c, format: text, path: ./rule-providers/Microsoft.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Microsoft.list}
# 谷歌服务
Google: {<<: *c, format: text, path: ./rule-providers/Google.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Google.list}
# 电报消息
Telegram: {<<: *c, format: text, path: ./rule-providers/Telegram.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Telegram.list}
# 推特消息
Twitter: {<<: *c, format: text, path: ./rule-providers/Twitter.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Twitter.list}
# 哔哩哔哩
BiliBili: {<<: *c, format: text, path: ./rule-providers/BiliBili.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Bilibili.list}
# 游戏平台
Steam: {<<: *c, format: text, path: ./rule-providers/steam.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Steam.list}
Epic: {<<: *c, format: text, path: ./rule-providers/Epic.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Epic.list}
# AI平台
AI: {<<: *c, format: text, path: ./rule-providers/AI.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/AI.list}
# 中国大陆
ChinaDomain: {<<: *c, format: text, path: ./rule-providers/ChinaDomain.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/ChinaDomain.list}
# Emby
Emby: {<<: *c, format: text, path: ./rule-providers/Emby.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Emby.list}
# 国际媒体
YouTube: {<<: *c, format: text, path: ./rule-providers/YouTube.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/YouTube.list}
ProxyMedia: {<<: *c, format: text, path: ./rule-providers/ProxyMedia.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/ProxyMedia.list}
# 代理网站
ProxyGFW: {<<: *c, format: text, path: ./rule-providers/ProxyGFW.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/ProxyGFW.list}
rules:
#- SCRIPT,quic,REJECT
#- RULE-SET,Download,DIRECT
rules:
#- SCRIPT,quic,REJECT
#- RULE-SET,Download,DIRECT
- DOMAIN-SUFFIX, consensus.app,AI
- DOMAIN-KEYWORD,Termius,国外网站
- DOMAIN-KEYWORD,serv00,国外网站
- DOMAIN-KEYWORD,python,国外网站
- DOMAIN-KEYWORD,innoreader,国外网站
- DOMAIN-KEYWORD,z-library,国外网站
- DOMAIN-SUFFIX,dify.ai,AI
- DOMAIN-KEYWORD,vscode,国外网站 # vscode
- DOMAIN-SUFFIX,6666666.buzz,Emby # 音乐服
- DOMAIN-SUFFIX,sc.panda985,学术期刊 # 熊猫学术
- DOMAIN-KEYWORD,zotero,学术期刊 # zotero
- DOMAIN-KEYWORD,sci-hub,学术期刊 # scihub
- RULE-SET,OfficeBlockedURLs,上班摸鱼
- DOMAIN-SUFFIX,innoreader.com,国外网站
- DOMAIN-SUFFIX,innologica.com,国外网站
- RULE-SET,AD,广告拦截
- RULE-SET,AI,AI
- RULE-SET,Scholar,学术期刊
- RULE-SET,Apple,苹果服务
- RULE-SET,Github,Github
- RULE-SET,OneDrive,微软服务
- RULE-SET,Microsoft,微软服务
- RULE-SET,YouTube,国际媒体
- RULE-SET,Google,谷歌服务
- RULE-SET,Telegram,电报消息
- RULE-SET,Twitter,推特消息
- RULE-SET,BiliBili,哔哩哔哩
- RULE-SET,Steam,游戏平台
- RULE-SET,Epic,游戏平台
- RULE-SET,Emby,Emby
- RULE-SET,ProxyMedia,国际媒体
- RULE-SET,ProxyGFW,国外网站
- RULE-SET,ChinaDomain,DIRECT
- RULE-SET,Lan,DIRECT
- GEOIP,CN,DIRECT
- MATCH,兜底分流
script:
shortcuts:
quic: network == 'udp' and dst_port == 443
script:
shortcuts:
quic: network == 'udp' and dst_port == 443