-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quantumult X.conf
181 lines (161 loc) · 13.7 KB
/
Quantumult X.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
[general]
# server_check_url Quantumult X 会对指定的网址进行相应测试,以确认节点的可用性
server_check_url=http://www.qualcomm.cn/generate_204
network_check_url=http://cp.cloudflare.com/generate_204
# 给 Quantumult X 添加资源解析器
resource_parser_url= https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/resource-parser.js
# geo_location_checker 用于节点页面的信息展示,可完整自定义
geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/IP_API.js
# dns_exclusion_list list中的域名将不使用fake-ip方式, 多个域名用“, ”连接。其它域名则全部采用 fake-ip及远程解析的模式
dns_exclusion_list =*.cmpassport.com, *.jegotrip.com.cn, *.icitymobile.mobi, id6.me, *.icitymobile.mobi, *.pingan.com.cn, *.cmbchina.com, *.localnetwork.uop, mfs.ykimg.com*.ttf
profile_img_url=https://raw.githubusercontent.com/Orz-3/mini/none/Orz-3.png
# 下列表中内容将不经过 QuantumultX 的处理
excluded_routes=192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0.0.0/8
icmp_auto_reply=true
[dns]
# 指定的 dns 服务器
server=119.29.29.29
server=119.28.28.28
server=182.254.116.116
server=1.2.4.8
server=223.5.5.5
server=114.114.114.114
server=202.141.176.93
server=202.141.178.13
server=117.50.10.10
# 制定域名解析 dns
server=/*.taobao.com/223.5.5.5
server=/*.tmall.com/223.5.5.5
server=/*.alipay.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=/*.netease.com/119.29.29.29
server=/*testflight.apple.com/23.76.66.98
no-ipv6
address=/mtalk.google.com/108.177.125.188
[policy]
## 策略组 将分流规则传递过来的网络请求进行分发,CMedia 策略组为中国媒体(包括A站、B站、爱奇艺等);GMedia 为国际媒体(包括HULU、HBO等);Outside 指定访问境外网站时的策略或节点;Mainland 控制访问大陆网站时的策略;Others 为其他规则,若前边的规则都没有被匹配到,则听从此策略组的规定。
static=AdBlock, reject, Outside, direct, img-url= https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/Advertising.png
# 国外媒体策略
static=GMedia, Lowest Latency, US Server, HK Server, TW Server, SG Server, JP Server, direct, img-url= https://raw.githubcontent.com/GeQ1an/Rules/blob/master/QuantumultX/IconSet/GMedia.png
static=Netflix, Lowest Latency, GMedia, US Server, HK Server, TW Server, SG Server, JP Server, KR Server, direct, Final, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Netflix.png
static=Spotify, Lowest Latency, GMedia, US Server, HK Server, TW Server, SG Server, JP Server, KR Server, direct, Final, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Spotify.png
static=TikTok, GMedia, US Server, TW Server, SG Server, JP Server, KR Server, direct, Final, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/TikTok.png
# 软件&服务策略
# 国外连接策略
static=Outside, Lowest Latency, US Server, HK Server, TW Server, SG Server, JP Server, KR Server, direct, img-url= https://raw.githubcontent.com/GeQ1an/Rules/blob/master/QuantumultX/IconSet/Outside.png
# 国内连接策略
static=Mainland, direct, proxy, img-url= https://raw.githubcontent.com/GeQ1an/Rules/blob/master/QuantumultX/IconSet/Mainland.png
static=HKMTMedia, direct, TW Server, HK Server, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/HKMTMedia.png
# 国内媒体策略
static=CMedia, direct, proxy, img-url=https://raw.githubcontent.com/GeQ1an/Rules/blob/master/QuantumultX/IconSet/CMedia.png
# 网易云策略
static=Netease Music, direct, Netease Unblock Server, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Netease_Music_Unlock.png
# 网易云音乐解锁服务器分组策略(正则策略)
# 最终策略 如果前边的策略都没有被匹配到,则听从此策略组的规定
static=Final, Lowest Latency , direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Final.png
# 服务器按地区分组策略(正则策略)
url-latency-benchmark=Lowest Latency, server-tag-regex=^((?!(网易云|节点|代理)).)*$, check-interval=300, tolerance=0, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Auto.png
url-latency-benchmark=HK Server, server-tag-regex=(?=.*(港|HK|(?i)Hong))^((?!(台湾|日本|新加坡|美国|韩国|狮城|南朝鲜|US|SG|JP|KR|TW|台灣|美國|韓國|獅城)).)*$, check-interval=600, tolerance=0, img-url= https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Hong_Kong.png
url-latency-benchmark=TW Server, server-tag-regex=(?=.*(台湾|台灣|TW|(?i)Taiwan))^((?!(香港|日本|新加坡|美国|韩国|狮城|南朝鲜|US|SG|JP|KR|HK|美國|韓國|獅城)).)*$, check-interval=600, tolerance=0, img-url= https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Taiwan.png
url-latency-benchmark=JP Server, server-tag-regex=(?=.*(日本|JP|(?i)Japan))^((?!(香港|台湾|新加坡|美国|韩国|狮城|南朝鲜|US|SG|KR|HK|TW|台灣|美國|韓國|獅城)).)*$, check-interval=600, tolerance=0, img-url= https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Japan.png
url-latency-benchmark=SG Server, server-tag-regex=(?=.*(新加坡|狮城|SG|(?i)Singapore))^((?!(香港|台湾|日本|美国|韩国|南朝鲜|US|JP|KR|HK|TW|台灣|美國|韓國)).)*$, check-interval=600, tolerance=0, img-url= https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Singapore.png
url-latency-benchmark=US Server, server-tag-regex=(?=.*(美国|美國|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|US|(?i)States|American))^((?!(香港|台湾|日本|新加坡|韩国|狮城|南朝鲜|SG|JP|KR|HK|TW|台灣|韓國|獅城)).)*$, check-interval=600, tolerance=0, img-url= https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/United_States.png
url-latency-benchmark=KR Server, server-tag-regex=(?=.*(韩国|韩國|南朝鲜|韓國|KR|(?i)Korea))^((?!(香港|台湾|日本|新加坡|狮城|SG|JP|HK|TW|台灣|獅城)).)*$, check-interval=600, tolerance=0, img-url= https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Korea.png
[filter_remote]
## 远程分流规则订阅
## 将网络请求进行分流,网络请求的走向(是否能成功访问)由匹配到的策略组决定
# 部分规则有先后顺序要求,调整顺序可能失效
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Unbreak.list, tag=规则修正, update-interval=86400, opt-parser=false, enabled=true
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Guard/Advertising.list, tag=广告拦截, force-policy=reject, update-interval=86400, opt-parser=false, enabled=true
https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/AdRule.list, tag=广告拦截, force-policy=reject, update-interval=86400, opt-parser=false, enabled=true
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Guard/Hijacking.list, tag=运营劫持, force-policy=reject, update-interval=86400, opt-parser=false, enabled=true
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Guard/Privacy.list, tag=隐私保护, force-policy=reject, update-interval=86400, opt-parser=false, enabled=true
# 网易云音乐规则
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Optional/Netease%20Music.list, tag=Netease Music 规则, force-policy=Netease Music, update-interval=86400, opt-parser=false, enabled=true
# 港台番剧(bilibili Aiqiyi)
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/StreamingSE.list, tag=港台番剧, force-policy=HKMTMedia, update-interval=86400, opt-parser=false, enabled=true
# 国内媒体
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/StreamingCN.list, tag=CMedia 规则, force-policy=CMedia, update-interval=86400, opt-parser=false, enabled=true
# Tictok
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/Video/TikTok.list, tag=TikTok, force-policy=TikTok, update-interval=86400, opt-parser=true, enabled=true
# Netflix规则
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/Video/Netflix.list, tag=Netflix 规则, force-policy=Netflix, update-interval=86400, opt-parser=false, enabled=true
# Spotify规则
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/Music/Spotify.list, tag=Spotify 规则, force-policy=Spotify, update-interval=86400, opt-parser=false, enabled=true
# 动画疯 规则
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/Video/Bahamut.list, tag=动画疯, force-policy=TW Server, update-interval=86400, opt-parser=false, enabled=true
# HBO 规则
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/Video/HBO.list, tag=HBO, force-policy=US Server, update-interval=86400, opt-parser=false, enabled=true
# Clubhouse
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Extra/Clubhouse.list, tag=Clubhouse, update-interval=86400, opt-parser=false, enabled=true
# 出国媒体规则
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/Streaming.list, tag=GMedia 规则, force-policy=GMedia, update-interval=86400, opt-parser=false, enabled=true
# 境外国际总规则
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Global.list, tag=Outside, force-policy=Outside, update-interval=86400, opt-parser=false, enabled=true
# 国内总规则
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/China.list, tag=CMedia 规则, force-policy=CMedia, update-interval=86400, opt-parser=false, enabled=true
# 国内IP
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Extra/ChinaIP.list, tag=Mainland 规则, force-policy=Mainland, update-interval=86400, opt-parser=false, enabled=true
[filter_local]
# 本地分流规则
# 相同规则下本地规则优先生效
# 绕过企业证书过期
host, ocsp.apple.com, reject
# 其它
host-suffix, local, direct
ip-cidr, 10.0.0.0/8, direct
ip-cidr, 17.0.0.0/8, direct
ip-cidr, 100.64.0.0/10, direct
ip-cidr, 127.0.0.0/8, direct
ip-cidr, 172.16.0.0/12, direct
ip-cidr, 192.168.0.0/16, direct
geoip, cn, Mainland
final, Final
[server_local]
# 本地服务器
#解锁网易云音乐节点
shadowsocks=120.55.164.155:18888, method=chacha20-ietf, password=musicli, fast-open=false, udp-relay=false, tag=网易云
http=106.52.127.72:19951, fast-open=false, udp-relay=false, tag= 解锁网易云音乐
[server_remote]
# 服务器引用(订阅)
# 支持远程订阅地址和本地文件
# 无用订阅(请勿删除)
https://raw.githubusercontent.com/limbopro/Profiles/master/limbopro/Gift/unlesssub.txt, tag=无用节点(❌请不要动它), enabled=true
[rewrite_remote]
# 远程重写订阅
# 包含主机名 hostname 以及复写 rewrite 规则
# update-interval 为更新时间参数,单位:秒, 默认更新时间为:24*60*60=86400 秒,也就是24小时
# opt-parser=true/false 用于控制是否对订阅开启资源解析器,不写或者 false 表示不启用解析器
# 神机重定向(by DivineEngine)
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf, tag=神机重定向, update-interval=86400, opt-parser=false, enabled=true
# 神机去广告(by DivineEngine)
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/Advertising.conf, tag=神机去广告, update-interval=86400, opt-parser=false, enabled=true
# 神机去广告Plus
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/AdvertisingPlus.conf, tag=神机去广告Plus, update-interval=86400, opt-parser=false, enabled=true
# Youtube去广告(by DivineEngine)
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/YouTubeAds.conf, tag=神机去YT广告(Premuim会员勿开), update-interval=86400, opt-parser=false, enabled=true
https://raw.githubusercontent.com/Orz-3/QuantumultX/master/YouTube.conf, tag=YouTube去广告, update-interval=86400, opt-parser=false, enabled=false
# BoxJS(by chavyleung)
https://gitee.com/chavyleung/scripts/raw/master/box/rewrite/boxjs.rewrite.quanx.conf, tag=BoxJS, update-interval=86400, opt-parser=false, enabled=true
#JS脚本
https://raw.githubusercontent.com/Orz-3/QuantumultX/master/JS.conf, tag=JS脚本合集, update-interval=86400, opt-parser=false, enabled=false
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js, tag=JS集, update-interval=86400, opt-parser=false, enabled=false
https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/Js.conf, tag=野比集, update-interval=86400, opt-parser=false, enabled=false
https://raw.githubusercontent.com/srk24/profile/master/quanx/buy.qx, tag=srk脚本, update-interval=86400, opt-parser=false, enabled=false
[rewrite_local]
# 本地重写
# 解锁 TikTok
# 更换 TikTok 区域请修改下方国家代码,默认为韩国
# 使用国内版抖音需使用 ; 注释 (?<=version_code=)\d{1,}.\d{1}\.\d{1} url 307 8.4.0 规则
(?<=_region=)CN(?=&) url 307 KR
(?<=&mcc_mnc=)4 url 307 2
^(https?:\/\/dm[\w-]+\.\w+\.com\/.+)(\?)(.+) url 302 $1$3
(^https?:\/\/*\.\w{4}okv.com\/.+&.+)(\d{2}\.3\.\d)(.+) url 302 $118.0$3
[mitm]
# 开启 mitm,需要自行在Quantumult X中生成证书、安装、信任
hostname = *.tiktokv.com,*.byteoversea.com,*.tik-tokapi.com