[general] #测试节点延迟URL server_check_url= http://www.qualcomm.cn/generate_204 #节点延迟测试超时参数,需小于 5000 毫秒才生效 server_check_timeout=3000 #资源解析器,具体内容直接参照链接里的使用说明 resource_parser_url= https://fastly.jsdelivr.net/gh/KOP-XIAO/QuantumultX@master/Scripts/resource-parser.js #geo_location_checker用于节点页面的节点信息展示 geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/IP_API.js # 在网络环境切换时出发运行模式变更 # filter - 规则分流,all_proxy - 全部代理,all_direct - 全部直连 # 示例意思:[蜂窝数据],[Wi-Fi],[SSID] # 下列示例的意思为:在蜂窝数据使用规则分流(第一个 filter),在 Wi-Fi 使用规则分流(第二个 filter),在 SSID 为 LINK_22E171 的 Wi-Fi 使用全部代理,,在 SSID 为 LINK_22E172 的 Wi-Fi 使用全部直连 # Rewrite 及 Task 模块始终生效 #running_mode_trigger=filter, filter, LINK_22E171:all_proxy, LINK_22E172:all_direct # 在特定 SSID 网络时(除了 Task 模块)暂停 Quantumult X #ssid_suspended_list=LINK_22E174, LINK_22E175 ;dns exclusion list中的域名将不使用fake-ip方式. 其它域名则全部采用 fake-ip 及远程解析的模式 ;dns_exclusion_list=*.qq.com ;UDP 白名单,留空则默认所有为端口。不在udp白名单列表中的端口,将被丢弃处理(返回 ICMP “端口不可达” 信息)。 ;udp_whitelist=53, 80-427, 444-65535 ; UDP Drop名单,同白名单类似,但不会返回 ICMP “端口不可达” 信息 ; drop 名单仅处理 whitelist名单中的端口 ;udp_drop_list = 1900, 80 # 参数 fallback_udp_policy 仅支持 v1.0.19 以及之后的版本。 # 参数 fallback_udp_policy 的值仅支持末端策略(末端策略为经由规则模块和策略模块后所命中的策略,例如:direct、reject 以及节点;不支持内置策略 proxy 以及其它自定义策略)。 fallback_udp_policy=direct ;下列表中的内容将不经过 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 ;指定 DoH 请求所使用的 User-Agent ;doh_user_agent=Agent/1.0 ;指定服务器测试时所使用的 User-Agent ;server_check_user_agent = Agent/1.0 // 默认当 DNS 层面某domain 被reject时,将返回loopback IP。你可以通过下面的参数 // 修改成为 “no-error-no-answer”,或者 “nxdomain” ;dns_reject_domain_behavior = loopback [dns] no-system no-ipv6 #如果dns返回以下ip,则等待返回正确ip circumvent-ipv4-answer = 127.0.0.1, 0.0.0.0 circumvent-ipv6-answer = :: #如需使用 DoH3,DNS over HTTP/3,请开启下面参数 #prefer-doh3 server=119.29.29.29 server=223.5.5.5 #污染不严重或者不是那么在意隐私可以不启用doh #doh-server= https://223.5.5.5/dns-query [task_local] event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/streaming-ui-check.js, tag = 流媒体 - 解锁查询,img-url=checkmark.seal.system, enabled=true #以下为策略组[policy]部分 # static 策略组中,你需要手动选择想要的节点/策略组。 # available 策略组将按顺序选择你列表中第一个可用的节点。 # round-robin 策略组,将按列表的顺序轮流使用其中的节点。 # url-latency-benchmark 延迟策略组,选取延迟最优节点。 # dest-hash 策略组,随机负载均衡,但相同域名走固定节点。 # ssid 策略组,将根据你所设定的网络来自动切换节点/策略组 [policy] static=Global acceleration, proxy, Hong kong, Taiwan, Japan, Singapore, South Korea, America, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Universal/Final.png static=Apple, direct, proxy, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Social_Media/Apple.png static=Netfix, proxy, Taiwan, Japan, Singapore, South Korea, Hong kong, America, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Universal/Netflix.png static=Disney, proxy, Taiwan, Japan, Singapore, South Korea, Hong kong, America, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Social_Media/Daily_Motion.png static=Spotify, proxy, direct, Taiwan, Japan, Singapore, South Korea, Hong kong, America, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Social_Media/Spotify.png static=bilibili, direct, Hong kong, Taiwan, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Universal/BiliBili.png static=YouTube, proxy, Taiwan, Japan, Singapore, South Korea, Hong kong, America, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Social_Media/YouTube.png static=Google, proxy, Taiwan, Japan, Singapore, South Korea, Hong kong, America, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Google_Suite/Google.png static=stream media, proxy, Hong kong, Taiwan, America, Japan, Singapore, South Korea, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Social_Media/FilmAffinity.png static=final, proxy, Taiwan, Japan, Singapore, South Korea, Hong kong, America, Global acceleration, direct, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Universal/Clubhouse.png url-latency-benchmark=Taiwan, server-tag-regex=(台湾|TW|Tai), check-interval=600, tolerance=0, alive-checking=false, img-url=https://raw.githubusercontent.com/Orz-3/face/master/TW.png url-latency-benchmark=Japan, server-tag-regex=(日本|川日|东京|大阪|泉日|埼玉|沪日|深日|JP|Japan|🇯🇵), check-interval=600, tolerance=0, alive-checking=false, img-url=https://raw.githubusercontent.com/Orz-3/face/master/JP.png url-latency-benchmark=Singapore, server-tag-regex=(新加坡|坡|狮城|SG|Singapore|🇸🇬), check-interval=600, tolerance=0, alive-checking=false, img-url=https://raw.githubusercontent.com/Orz-3/face/master/SG.png url-latency-benchmark=South Korea, server-tag-regex=(KR|Korea|KOR|首尔|韩国|🇰🇷), check-interval=600, tolerance=0, alive-checking=false, img-url=https://raw.githubusercontent.com/Orz-3/face/master/KR.png url-latency-benchmark=Hong kong, server-tag-regex=(香港|HK|Hong|🇭🇰), check-interval=600, tolerance=0, alive-checking=false, img-url=https://raw.githubusercontent.com/Orz-3/face/master/HK.png url-latency-benchmark=America, server-tag-regex=(美国|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|US|United States|🇺🇸), check-interval=600, tolerance=0, alive-checking=false, img-url=https://raw.githubusercontent.com/Orz-3/face/master/US.png # "tag" 跟 "enabled" 为可选参数,分别表示 “标签”及“开启状态”, true 为开启,false 关闭. # update-interval 为更新时间参数,单位 秒 #服务器远程订阅 [server_remote] #规则分流远程订阅 [filter_remote] https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Unbreak.list, tag=Rule Amendment, force-policy=direct, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/app2smile/rules/master/rule/zhihu-ad-qx.list, tag=知乎去广告, force-policy=reject, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/app2smile/rules/master/rule/tieba-ad-qx.list, tag=贴吧去广告, force-policy=reject, update-interval=172800, opt-parser=false, enabled=true https://limbopro.com/Adblock4limbo.list, tag=毒奶去广告, force-policy=reject, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Disney/Disney.list, tag=Disney, force-policy=Disney, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Amazon/Amazon.list, tag=Amazon, force-policy=America, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Facebook/Facebook.list, tag=Facebook, force-policy=America, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Netflix/Netflix.list, tag=Netflix, force-policy=Netfix, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Apple/Apple.list, tag=Apple, force-policy=Apple, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Spotify/Spotify.list, tag=Spotify, force-policy=America, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/StreamingSE.list, tag=bilibili, force-policy=bilibili, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/YouTube/YouTube.list, tag=YouTube, force-policy=YouTube, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Google/Google.list, tag=Google, force-policy=Google, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Streaming.list, tag=stream media, force-policy=Global acceleration, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Global.list, tag=Global acceleraton,force-policy=Global acceleration, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/WeChat/WeChat.list, tag=WeChat, force-policy=direct, update-interval=172800, opt-parser=true, enabled=true #rewrite 复写远程订阅 [rewrite_remote] https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf, tag=神机重定向, update-interval=172800, opt-parser=false, enabled=true https://github.com/ddgksf2013/Rewrite/raw/master/Function/Bilibili_CC.conf, tag=b站cc字幕, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/app2smile/rules/master/module/tieba-qx.conf, tag=贴吧去广告, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/app2smile/rules/master/module/spotify.conf, tag=Spotify破解, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/app2smile/rules/master/module/qidian.conf, tag=起点去广告, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/app2smile/rules/master/module/zhihu.conf, tag=知乎去广告, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/app2smile/rules/master/module/adsense.conf, tag=广告联盟, update-interval=172800, opt-parser=false, enabled=true https://raw.githubusercontent.com/I-am-R-E/Functional-Store-Hub/Master/KuWoMusic/KuWoMusic.Surge.sgmodule, tag=re酷我破解, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/Surge/Module/bodianMusic.sgmodule, tag=波点音乐屏蔽mv, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/bai1zi/shadowrocket-surge-loon-qx/main/WeChat.sgmodule, tag=WeChat公众号去广告, update-interval=172800, opt-parser=true, enabled=true https://raw.githubusercontent.com/bai1zi/shadowrocket-surge-loon-qx/main/YouTubeads.sgmodule, tag=YouTube去广告, update-interval=172800, opt-parser=true, enabled=true https://limbopro.com/Adblock4limbo.conf, tag=毒奶去广告, update-interval=172800, opt-parser=false, enabled=true # 本地服务器部分 [server_local] #本地分流规则(对于完全相同的某条规则,本地的将优先生效) [filter_local] user-agent, ?abc*, proxy host, www.google.com, proxy host-keyword, adsite, reject host-suffix, googleapis.com, proxy //强制分流走蜂窝网络 ;host-suffix, googleapis.com, proxy, force-cellular //让分流走蜂窝网络跟 Wi-Fi 中的优选结果 ;host-suffix, googleapis.com, proxy, multi-interface //让分流走蜂窝网络跟 Wi-Fi 中的负载均衡,提供更大带宽出入接口 ;host-suffix, googleapis.com, proxy, multi-interface-balance //指定分流走特定网络接口 ;host-suffix, googleapis.com, proxy, via-interface=pdp_ip0 // %TUN% 参数,回传给 Quantumult X 接口,可用于曲线实现代理链功能 ;host-suffix, example.com, ServerA, via-interface=%TUN% ;ip-cidr, ServerA's IP Range, ServerB // ip 规则 ip-cidr, 10.0.0.0/8, 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 ip-cidr, 224.0.0.0/24, direct geoip,cn,direct final,final #本地复写规则 [rewrite_local] #以下为证书&主机名部分 [mitm]