水一篇关于Quantumult X(圈X)的文章吧,讲讲圈X配置文件,笼统将一下圈x各个配置的作用和用法:
[server_local]
首先来说一下 [server_local] 这个配置项目,这个就是节点配置文件,比如SS或者vmess节点信息
[server_local]
;shadowsocks=example.com:80, method=2022-blake3-aes-128-gcm, password=BJDBGeLKx/JbEACCSN5rRg==, udp-relay=true, tag=ss2022-blake3-aes-128-gcm
[general]
[general] 也就是延迟测试项:
[general]
server_check_url=http://www.gstatic.com/generate_204
[dns]
就是dns设置项:
[dns]
;no-system
;no-ipv6
server=223.5.5.5
server=[2400:3200::1]
server=/*.aliyun.com/223.5.5.5
server=/*.jd.com/119.29.29.29
[policy]
[policy] 用于APP分流,比如PayPal走那个节点,X走那个节点,等等。后面的img-url是APP logo:
static=PayPal, direct, proxy, reject, LALA/HKB, HW/SG, img-url=https://raw.githubusercontent.com/yeahwu/Qure/master/IconSet/Color/PayPal.png
static=Twitter, direct, proxy, FX/DDPS, LALA/HKB, img-url=https://raw.githubusercontent.com/yeahwu/Qure/master/IconSet/Color/Twitter.png
[server_remote]
用于节点订阅:
[server_remote]
;https://jiang.netlify.com/, enabled=true
;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/server.txt, tag=Sample-01
[filter_remote]
[filter_remote] 用于节点分流或去广告,这个和[policy]配合使用:
[filter_remote]
https://raw.githubusercontent.com/yeahwu/Rules-For-Quantumult-X/main/Rules/Region/Global.list, tag=Global, update-interval=2592000, opt-parser=false, enabled=true
https://raw.githubusercontent.com/yeahwu/Rules-For-Quantumult-X/main/Rules/Services/Apple.list, tag=Apple, update-interval=2592000, opt-parser=false, enabled=true
https://raw.githubusercontent.com/yeahwu/Rules-For-Quantumult-X/main/Rules/Region/China.list, tag=China, update-interval=2592000, opt-parser=false, enabled=true
[rewrite_remote]
用于重写规则:
[rewrite_remote]
https://raw.githubusercontent.com/yeahwu/Rules-For-Quantumult-X/main/Rewrite/Advertising.adblock, tag=Advertising, update-interval=2592000, opt-parser=false, enabled=true
[filter_local]
[filter_local] 这个用于自定义规则,自定义网址是走代理,或直连,或走特点节点,详细讲一下怎么自定义?
host-suffix, 1024.day, proxy
host-wildcard, *.1024.day, proxy
host, www.1024.day, proxy
host-keyword, 1024, proxy
匹配后缀(主域+子域),主域和子域全部走代理,用途较广:
host-suffix, 1024.day, proxy
通配符匹配,只匹配前缀,不包含主域,只代理子域,不代理裸域(较少需求):
host-wildcard, *.1024.day, proxy
精准匹配,仅主域走代理:
host, www.1024.day, proxy
关键字匹配,所有包含1024关键字的域名都走代理:
host-keyword, 1024, proxy
[filter_local]
host, www.itdog.cn, proxy
host-suffix, uhdnow.com, FX/RFC
host-wildcard, *.nodeseek.com, proxy
host-suffix, lala.gg, direct
geoip, private, direct
geoip, cn, direct
final, proxy
另外还有一种用法,就是匹配的域名可以直接指定节点,如上
[rewrite_local]
本地重写规则,比如spotify去广告,跳过会员之类的:
[rewrite_local]
^https:\/\/(spclient\.wg\.spotify\.com|.*-spclient\.spotify\.com(:443)?)\/user-customization-service\/v1\/customize$ url script-request-header https://raw.githubusercontent.com/app2smile/rules/master/js/spotify-qx-header.js
^https:\/\/(spclient\.wg\.spotify\.com|.*-spclient\.spotify\.com(:443)?)\/(bootstrap\/v1\/bootstrap|user-customization-service\/v1\/customize)$ url script-response-body https://raw.githubusercontent.com/app2smile/rules/master/js/spotify-proto.js
^https:\/\/(spclient\.wg\.spotify\.com|.*-spclient\.spotify\.com(:443)?)\/(artistview\/v1\/artist|album-entity-view\/v2\/album)\/ url script-request-header https://raw.githubusercontent.com/app2smile/rules/master/js/spotify-json.js
[mitm]
中间人代理,也叫https劫持,一般可搭配 [rewrite_local] 使用,代理上这一项可选(非必须)
[mitm]
hostname = spclient.wg.spotify.com, *spclient.spotify.com
passphrase =
p12 =
完结,比较笼统,将就着看吧!