-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquanx.conf
248 lines (211 loc) · 19.6 KB
/
quanx.conf
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
;⚠️注意⚠️: 以下内容中,带“;” “#”的都是注释符号,去掉前面的符号,该行才有效
;general 模块内为一些通用的设置参数项
[general]
;Quantumult X 会对 server_check_url 指定的网址进行相应测试,以确认节点的可用性
;你同样可以在 server_local/remote 中,为节点、订阅单独指定server_check_url参数
server_check_url= http://www.qualcomm.cn/generate_204
;👍👍👍资源解析器,可用于自定义各类远程资源的转换,如节点,规则 filter,复写 rewrite 等,url 地址可远程,可 本地/iCloud(Quantumult X/Scripts目录);
;下面是我写的一个解析器,具体内容直接参照链接里的使用说明
resource_parser_url= https://cdn.jsdelivr.net/gh/KOP-XIAO/QuantumultX@master/Scripts/resource-parser.js
;👍👍geo_location_checker用于节点页面的节点信息展示,可完整自定义展示内容与方式
; extreme-ip-lookup为Quantumult X 作者提供的示范 api
;geo_location_checker=http://extreme-ip-lookup.com/json/, https://raw.githubusercontent.com/crossutility/Quantumult-X/master/sample-location-with-script.js
;下面是我所使用的 api 及获取、展示节点信息的 js
geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/IP_API.js
;👍👍👍运行模式模块,running_mode_trigger 设置,即根据网络自动切换 分流/直连/全局代理 等模式。
;running-mode-trigger 模式下,跟手动切换直连/全局代理 等效,rewrite/task 模块始终会生效,比 ssid 策略组设置简单,比 ssid-suspend 更灵活。
;running_mode_trigger=filter, filter, asus-5g:all_direct, asus: all_proxy
; 上述写法,前两个 filter 表示 在 4G 网络跟一般 Wi-Fi 下,走 filter(分流)模式,asus-5g 则切换为全局直连,asus 切换为全局代理
; 如需使用,相应 SSID 换成你自己 Wi-Fi 名即可
;ssid_suspended_list,让 Quantumult X 在特定 Wi-Fi 网络下暂停工作(仅 task 模块会继续工作),多个Wi-Fi用“,”连接
;ssid_suspended_list=Asus, Shawn-Wifi
;dns exclusion list中的域名将不使用fake-ip方式. 其它域名则全部采用 fake-ip 及远程解析的模式
;dns_exclusion_list=*.qq.com, qq.com
;UDP名单,留空则默认所有为端口。不在udp白名单列表中的端口,将被丢弃处理。
;udp_whitelist=53, 123, 1900, 80-443
;下列表中的内容将不经过 QuantumultX的处理
;excluded_routes= 192.168.0.0/16, 172.16.0.0/12, 100.64.0.0/10, 10.0.0.0/8
;icmp_auto_reply=true
[dns]
;指定的 dns服务器
server=114.114.114.114
server=202.141.176.93
server=202.141.178.13
server=117.50.10.10
server=223.5.5.5
server=119.29.29.29:53
server=119.28.28.28
;指定域名解析dns
server=/*.taobao.com/223.5.5.5
server=/*.tmall.com/223.5.5.5
server=/*.alipay.com/223.5.5.5
server=/*.alicdn.com/223.5.5.5
server=/*.aliyun.com/223.5.5.5
server=/*.jd.com/119.28.28.28
server=/*.qq.com/119.28.28.28
server=/*.tencent.com/119.28.28.28
server=/*.weixin.com/119.28.28.28
server=/*.bilibili.com/119.29.29.29
server=/hdslb.com/119.29.29.29
server=/*.163.com/119.29.29.29
server=/*.126.com/119.29.29.29
server=/*.126.net/119.29.29.29
server=/*.127.net/119.29.29.29
server=/*.netease.com/119.29.29.29
server=/*.mi.com/119.29.29.29
server=/*.xiaomi.com/119.29.29.29
;server=/*testflight.apple.com/23.76.66.98
;server=8.8.8.8
;server=/example1.com/8.8.4.4
;server=/*.example2.com/223.5.5.5
;server=/example4.com/[2001:4860:4860::8888]:53
;address=/example5.com/192.168.16.18
;address=/example6.com/[2001:8d3:8d3:8d3:8d3:8d3:8d3:8d3]
[task_local]
event-interaction https://raw.githubusercontent.com/I-am-R-E/QuantumultX/main/TaskLocal/NeteaseMusicUnlockCheck.js, tag=网易音乐查询, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Netease_Music_Unlock.png, enabled=true
event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/traffic-check.js, tag=策略流量查询, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Download.png, enabled=true
event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/nf-ui-check.js, tag=Netflix 查询, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Netflix_Letter.png, enabled=true
event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/disney-ui-check.js, tag=Disneyᐩ 查询, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Disney.png, enabled=true
event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/streaming-ui-check.js, tag=流媒体-解锁查询, img-url=checkmark.seal.system, enabled=true
event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/ytb-ui-check.js, tag=YouTube 查询, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/YouTube_Letter.png, enabled=true
event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/geo_location.js, tag=GeoIP 查询, img-url=location.fill.viewfinder.system, enabled=true
0 */2 * * * https://raw.githubusercontent.com/Hyseen/Scripts/master/QuantumultX/NetflixPolicySwitcher/netflix_checker.js, tag=Netflix 解锁检测, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Netflix_Letter.png, enabled=true
30 */2 * * * https://raw.githubusercontent.com/Hyseen/Scripts/master/QuantumultX/DisneyPlusPolicySwitcher/disney_checker.js, tag=Disney+ 解锁检测, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Disney+.png, enabled=true
;任务模块,可用于签到,天气话费查询等
;js文件放于iCloud或者本机的Quantumult X/Scripts 路径下。TF版本可直接使用远程js链接
2 12 * * * sample.js, tag=本地示范(左滑编辑,右滑执行), img-url=https://raw.githubusercontent.com/crossutility/Quantumult-X/master/quantumult-x.png
13 12 * * * https://raw.githubusercontent.com/crossutility/Quantumult-X/master/sample-task.js, tag=远程示范(点击缓存/更新脚本), img-url=https://raw.githubusercontent.com/crossutility/Quantumult-X/master/quantumult-x.png
;从 “分” 开始的5位cron 写法,具体 cron 表达式可自行 Google
;比如上述语句 代表每天 12 点 2 分,自动执行一次;
;tag参数为 task 命名标识;
;img-url参数用于指定 task 的图标(108*108)
#以下为策略组[policy]部分
# static 策略组中,你需要手动选择想要的节点/策略组。
# available 策略组将按顺序选择你列表中第一个可用的节点。
# round-robin 策略组,将按列表的顺序轮流使用其中的节点。
# ssid 策略组,将根据你所设定的网络来自动切换节点/策略组
;img-url 参数用于指定策略组图标,可远程,也可本地/iCloud(Quantumult X/Images路径下) (108*108 大小)
;direct/proxy/reject 则只能用本地图标,名字分别为 direct.png, proxy.png,reject.png 放置于 Images 文件夹下即可生效 (108*108 大小)
[policy]
static=全球加速, server-tag-regex=(^(?!.*网易)), img-url=https://raw.githubusercontent.com/NB921/picture/main/Golbal.png
static=电报服务, server-tag-regex=(^(?!.*网易)), img-url=https://raw.githubusercontent.com/NB921/picture/main/Telegram.png
static=Abema, server-tag-regex=(日本), img-url=https://raw.githubusercontent.com/NB921/picture/main/Abema.png
static=AmazonPrime, server-tag-regex=原生, img-url=https://raw.githubusercontent.com/NB921/picture/main/AmazonPrime.png
static=爱奇艺, direct, server-tag-regex=(香港|台湾|新加坡), img-url=https://raw.githubusercontent.com/NB921/picture/main/Iqiy.png
static=哔哩哔哩, direct, server-tag-regex=(港|HK|台湾|TW), img-url=https://raw.githubusercontent.com/NB921/picture/main/Bilibili.png
static=迪士尼, server-tag-regex=(^(?!.*网易)), img-url=https://raw.githubusercontent.com/NB921/picture/main/Disney.png
static=动画疯, server-tag-regex=台湾, img-url=https://raw.githubusercontent.com/NB921/picture/main/Dhf.png
static=HBO, server-tag-regex=(香港|台湾|美国), img-url=https://raw.githubusercontent.com/NB921/picture/main/HBO.png
static=Hulu, server-tag-regex=(日本|美国), img-url=https://raw.githubusercontent.com/NB921/picture/main/Hulu.png
static=MyTVSuper, server-tag-regex=(香港), img-url=https://raw.githubusercontent.com/NB921/picture/main/TVB.png
static=奈飞视频, server-tag-regex=(^(?!.*网易)), img-url=https://raw.githubusercontent.com/NB921/picture/main/Netflix.png
static=油管视频, server-tag-regex=(^(?!.*网易)), img-url=https://raw.githubusercontent.com/NB921/picture/main/Youtube.png
static=网易云音乐, direct, server-tag-regex=(网易), img-url=https://raw.githubusercontent.com/NB921/picture/main/Nete.png
static=Spotify, direct, server-tag-regex=(^(?!.*网易)), img-url=https://raw.githubusercontent.com/NB921/picture/main/Spotify.png
static=推特服务, server-tag-regex=(^(?!.*(网易|香港|亚洲))), img-url=https://raw.githubusercontent.com/NB921/picture/main/Twitter.png
static=韩国直播, server-tag-regex=(原生), img-url=https://raw.githubusercontent.com/NB921/picture/main/live2.png
static=苹果服务, direct, 全球加速, img-url=https://raw.githubusercontent.com/NB921/picture/main/Apple.png
static=PayPal, direct, server-tag-regex=(^(?!.*网易)), img-url=https://raw.githubusercontent.com/NB921/picture/main/Paypal.png
static=Speed测速, direct, server-tag-regex=(^(?!.*网易)), img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/Speedtest.png
static=国内网站, direct, 全球加速, img-url=https://raw.githubusercontent.com/NB921/picture/main/China.png
static=黑白名单, 全球加速, direct, img-url=https://raw.githubusercontent.com/NB921/picture/main/Heibai.png
#server-tag-regex 以及 resource-tag-regex 参数用于正则筛选来建立策略组
#具体可参见教程部分: https://shrtm.nu/DAFP
#以下是quantumultX的3普通种策略组类型写法
;static=policy-name-1, Sample-A, Sample-B, Sample-C
;available=policy-name-2, Sample-A, Sample-B, Sample-C
;round-robin=policy-name-3, Sample-A, Sample-B, Sample-C
#下面是ssid策略组示范
;ssid=policy-name-4, Sample-A, Sample-B, LINK_22E171:Sample-B, LINK_22E172:Sample-C
# "tag" 跟 "enabled" 为可选参数,分别表示 “标签”及“开启状态”, true 为开启,false 关闭.
# update-interval 为更新时间参数,单位 秒, 默认更新时间为 24*60*60=86400 秒,也就是24小时.
# opt-parser=true/false 用于控制是否对本订阅 开启资源解析器,不写或者 false 表示不启用解析器;
#服务器远程订阅
[server_remote]
https://raw.githubusercontent.com/NB921/Config/main/163.txt, tag=网易云, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Netease_Music.png, update-interval=172800, opt-parser=false, enabled=true
https://raw.githubusercontent.com/crossutility/Quantumult-X/master/server-complete.txt, tag=速蛙云(导入后更新并删除示范), img-url=https://raw.githubusercontent.com/NB921/picture/main/Fastfrog.png, update-interval=172800, opt-parser=true, enabled=true
#远程服务器订阅模块,可直接订阅SSR,SS链接,以及Quantumult X格式的vmess/trojan/https订阅
#其它格式可用 opt-parser 参数开启解析器导入使用
#img-url参数用于指定图标,格式要求同样为 108*108 的 png 图片,可远程,可本地
#支持本地/iCloud的节点文件,位于Quantumult X/Profiles路径下
;servers.txt, tag=本地服务器, img-url=https://raw.githubusercontent.com/crossutility/Quantumult-X/master/quantumult-x.png, enabled=false
#规则分流远程订阅
[filter_remote]
#远程分流模块,可使用force-policy来强制使用策略偏好, 替换远程规则内所指定的策略组
;同样的
# update-interval 为更新时间参数,单位 秒, 默认更新时间为 24*60*60=86400 秒,也就是24小时.
# opt-parser=true/false 用于控制是否对本订阅 开启资源解析器,不写或者 false 表示不启用解析器;
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/AmazonPrimeVideo/AmazonPrimeVideo.list, tag=AmazonPrime, force-policy=AmazonPrime, update-interval=172800, opt-parser=false, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/iQIYIIntl/iQIYIIntl.list, tag=爱奇艺国际, force-policy=爱奇艺, update-interval=172800, opt-parser=false, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/iQIYI/iQIYI.list, tag=爱奇艺, force-policy=爱奇艺, update-interval=172800, opt-parser=false, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Hulu/Hulu.list, tag=Hulu, force-policy=Hulu, update-interval=172800, opt-parser=false, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Bahamut/Bahamut.list, tag=动画疯, force-policy=动画疯, update-interval=172800, opt-parser=false, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/AbemaTV/AbemaTV.list, tag=Abema, force-policy=Abema, update-interval=172800, opt-parser=false, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/PayPal/PayPal.list, tag=PayPal, force-policy=PayPal,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/LocalAreaNetwork.list, tag=国内网站, force-policy=国内网站,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/UnBan.list, tag=国内网站, force-policy=国内网站,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/NetEaseMusic.list, tag=网易云音乐, force-policy=网易云音乐,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Bilibili.list, tag=Bilibili, force-policy=哔哩哔哩,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/BilibiliHMT.list, tag=BilibiliHMT, force-policy=哔哩哔哩,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/HBO.list, tag=HBO, force-policy=HBO,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/HBO_GO_HKG.list, tag=HBOGO, force-policy=HBO,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Apple.list, tag=Apple, force-policy=苹果服务,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Netflix.list, tag=Netflix, force-policy=奈飞视频,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/NetflixIP.list, tag=NetflixIP, force-policy=奈飞视频,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/MyTVSuper.list, tag=MyTVSuper, force-policy=MyTVSuper,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/Jia-6/NET/main/Ruleset/SpeedTest.list, tag=SpeedTest, force-policy=Speed测速,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Telegram.list, tag=Telegram, force-policy=电报服务,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Twitter.list, tag=Twitter, force-policy=推特服务,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/YouTube.list, tag=YouTube, force-policy=油管视频,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Spotify.list, tag=Spotify, force-policy=Spotify,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/DisneyPlus.list, tag=Disney, force-policy=迪士尼,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/NB921/Ruleset/main/krTV.list, tag=韩国直播, force-policy=韩国直播,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyLite.list, tag=全球加速, force-policy=全球加速,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/Jia-6/NET/main/Ruleset/Proxyown.list, tag=全球加速补充, force-policy=全球加速,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaDomain.list, tag=国内网站, force-policy=国内网站,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaCompanyIp.list, tag=国内网站, force-policy=国内网站,update-interval=86400, opt-parser=true, enabled=true
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Download.list, tag=国内网站, force-policy=国内网站,update-interval=86400, opt-parser=true, enabled=true
#支持本地/iCloud规则文件,位于Quantumult X/Profiles路径下
;filter.txt, tag=本地分流, enabled=false
#rewrite 复写远程订阅
[rewrite_remote]
#远程复写模块,内包含主机名hostname以及复写rewrite规则
# update-interval 为更新时间参数,单位 秒, 默认更新时间为 24*60*60=86400 秒,也就是24小时.
# opt-parser=true/false 用于控制是否对本订阅 开启资源解析器,不写或者 false 表示不启用解析器;
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf, tag=神机重定向, update-interval=172800, opt-parser=false, enabled=true
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/Advertising.conf, tag=神机去广告, update-interval=172800, opt-parser=true, enabled=true
https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/Rewrite_lhie1.conf, tag=lhie1去广告, update-interval=172800, opt-parser=false, enabled=false
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/AdvertisingPlus.conf, tag=去广告脚本, update-interval=172800, opt-parser=false, enabled=true
#支持本地/iCloud的复写规则文件,位于Quantumult X/Profiles路径下
;rewrite.txt, tag=本地复写, opt-parser=false, enabled=false
# 本地服务器部分
[server_local]
#本地分流规则(对于完全相同的某条规则,本地的将优先生效)
[filter_local]
host-suffix, local, direct
ip-cidr, 192.168.0.0/16, direct
ip-cidr, 10.0.0.0/8, direct
ip-cidr, 172.16.0.0/12, direct
ip-cidr, 127.0.0.0/8, direct
ip-cidr, 100.64.0.0/10, direct
ip-cidr, 224.0.0.0/4, direct
ip6-cidr, fe80::/10, direct
ip-cidr, 203.107.1.1/24, reject
ip-cidr, 183.240.197.130/32, direct
# 已采用 ip 池数据,因此注释掉 geoip cn
;geoip, cn, direct
#不在上述规则中(远程以及本地)的剩余请求,将走final 指定的节点/策略,这里即是 → 黑白名单, 请根据自己的需求来选择直连或节点、策略
final, 黑白名单
#本地复写规则
[rewrite_local]
[http_backend]
https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js, host=boxjs.com, tag=BoxJS, path=^/, enabled=true
#以下为证书&主机名部分
[mitm]
;以下模块去掉;才生效
;请自行在 APP 的UI中生成证书 并安装&信任
skip_validating_cert = true
;force_sni_domain_name = false
;hostname = *.example.com, *.sample.com
;passphrase =
;p12 =