Skip to content

Instantly share code, notes, and snippets.

@yang12me
Forked from ylx2016/quanx.conf
Created July 30, 2021 16:48
Show Gist options
  • Save yang12me/5238a675c5c7741c5dfe50cc63f697b4 to your computer and use it in GitHub Desktop.
Save yang12me/5238a675c5c7741c5dfe50cc63f697b4 to your computer and use it in GitHub Desktop.
;”;” “#”为注释符号,去掉前面的符号,该行才会生效
; 基于lhie1和KOP-XIAO配置整理
; 自用规则,随缘更新。欢迎访问 https://merlinblog.xyz/
; Modified by phlinhng
[general]
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
server_check_url=http://www.gstatic.com/generate_204
; 繁体: lang=zh-CN (後面的 js 有簡繁轉換), 英语: lang=en
geo_location_checker=http://ip-api.com/json/?lang=en, https://raw.githubusercontent.com/phlinhng/QuantumultX/master/Scripts/IP_API.js
resource_parser_url=https://cdn.jsdelivr.net/gh/KOP-XIAO/QuantumultX@master/Scripts/resource-parser.js
dns_exclusion_list=*.qq.com, qq.com,*.weibo.com,*.sinaimg.cn,*.music.126.net,*.music.163.com,*.alicdn.com,*.taobao.com,*.tmall.com
[dns]
server=119.29.29.29
server=101.6.6.6:5353
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=/*.gov.tw/1.1.1.1
server=/*.edu.tw/1.1.1.1
[policy]
# CMedia 策略组为中国媒体(包括A站、B站、爱奇艺等);GMedia 为国际媒体(包括HULU、HBO等);Outside 指定访问境外网站时的策略或节点;Mainland 控制访问大陆网站时的策略;Others 为其他规则,若前边的规则都没有被匹配到,则听从此策略组的规定。
static=Apple, direct, GMedia, Outside, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Apple.png
static=Microsoft, direct, GMedia, Outside, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Microsoft.png
static=GMedia, Outside, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/GMedia.png
static=Spotify, direct, GMedia, Outside, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Spotify.png
static=YouTube, GMedia, Outside, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/YouTube.png
static=Telegram, Outside, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Telegram_X.png
static=Outside, proxy, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Outside.png
static=Cloudflare, direct, Outside, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Cloudflare.png
static=Mainland, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/China_Map.png
[server_local]
# 本地服务器部分
[server_remote]
# 节点远程订阅,自行添加
https://example.com?sub=123456#tfo=-1&tls13=1&cert=1, tag=example, update-interval=172800, opt-parser=true, enabled=true, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Airport.png
[filter_remote]
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Apple.list, tag=Apple (Stick Rules), enabled=true
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Optional/Spotify.list, tag=Spotify (Stick Rules), enabled=true
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Optional/YouTube.list, tag=YouTube (Stick Rules), enabled=true
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/GMedia.list, tag=GMedia (Stick Rules), enabled=true
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Optional/Telegram.list, tag=Telegram (Stick Rules), enabled=true
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Optional/Microsoft.list, tag=Microsoft (Stick Rules), enabled=true
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Outside.list, tag=Outside (Stick Rules), enabled=true
https://raw.githubusercontent.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Services/Cloudflare.list, tag=Cloudflare (Sve1r), enabled=true
https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Mainland.list, tag=Mainland (Stick Rules), enabled=true
[filter_local]
# 本地分流规则(相同规则下,本地规则将覆盖远程规则,优先生效)
# 绕过企业证书过期
host, ocsp.apple.com, reject
# 避免迅雷版权问题
host, hub5idx.v6.shub.sandai.net, reject
host, hub5emu.v6.shub.sandai.net, reject
host, hub5btmain.v6.shub.sandai.net, reject
# 其他
host-suffix, tw, proxy
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, direct
final, proxy
[rewrite_remote]
# rewrite 复写远程订阅
https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf, tag=General (DivineEngine), enabled=true
[rewrite_local]
# 本地复写规则
; 重定向 Google 搜索服务
^(http|https):\/\/(www.)?(g|google)\.cn url 302 https://www.google.com
; 微博短链接 URL
^http:\/\/t\.cn url 302 https://sinaurl.cn
[task_local]
# 本地定时任务
[mitm]
;passphrase =
;p12 =
;skip_validating_cert = false
;force_sni_domain_name = false
;hostname = *.example.com, *.sample.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment