From e31f10535bd8fd339ea8e26122207358ede6ebb2 Mon Sep 17 00:00:00 2001 From: lhie1 Date: Fri, 18 Dec 2020 12:40:28 +0800 Subject: [PATCH] DoH --- QuantumultX/Head.conf | 30 ++++++------ QuantumultX/Script.conf | 1 + QuantumultX/Tail.conf | 36 ++++++++------ QuantumultX/此文件夹已暂停维护.md | 0 Surge/Surge 3/.DS_Store | Bin 0 -> 6148 bytes Surge/Surge 3/Module/Ali_DoH.sgmodule | 2 +- Surge/Surge 3/Module/IPv6.sgmodule | 1 + alibaba-https.mobileconfig | 53 +++++++++++++++++++++ dnspod-https.mobileconfig | 50 +++++++++++++++++++ 9 files changed, 142 insertions(+), 31 deletions(-) delete mode 100644 QuantumultX/此文件夹已暂停维护.md create mode 100644 Surge/Surge 3/.DS_Store create mode 100644 alibaba-https.mobileconfig create mode 100644 dnspod-https.mobileconfig diff --git a/QuantumultX/Head.conf b/QuantumultX/Head.conf index 985cd0b..0cc57fb 100644 --- a/QuantumultX/Head.conf +++ b/QuantumultX/Head.conf @@ -4,7 +4,7 @@ excluded_routes = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0 network_check_url = http://www.gstatic.com/generate_204 server_check_url = http://www.gstatic.cn/generate_204 -geo_location_checker = http://ip-api.com/json/?lang=zh-CN, https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/IP_API.js +geo_location_checker = http://ip-api.com/json/?lang = zh-CN, https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/IP_API.js [dns] server = 119.29.29.29 @@ -14,17 +14,17 @@ server = 182.254.116.116 [policy] # 其中 CMedia 策略组为中国媒体,GMedia 为国际媒体,Outside 为境外链接,Mainland 为大陆链接,Others 为最终规则 -static=AdBlock, reject, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/AdBlock.png -static=Apple, direct, Outside, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Apple.png -static=CMedia, direct, proxy, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/CMedia.png -static=GMedia, Outside, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/GMedia.png -static=Netflix, Outside, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Netflix.png -static=YouTube, Outside, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/YouTube.png -static=Netease Music, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Netease_Music.png -static=Telegram, Outside, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Telegram_X.png -static=Microsoft, direct, Outside, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Microsoft.png -static=PayPal, Outside, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/PayPal.png -static=Outside, proxy, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Outside.png -static=Mainland, direct, proxy, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Mainland.png -static=Speedtest, Outside, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Speedtest.png -static=Others, Outside, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Others.png \ No newline at end of file +static = AdBlock, reject, direct, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/AdBlock.png +static = Apple, direct, Outside, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/Apple.png +static = CMedia, direct, proxy, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/CMedia.png +static = GMedia, Outside, direct, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/GMedia.png +static = Netflix, GMedia, direct, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/Netflix.png +static = Spotify, GMedia, direct, img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Spotify.png +static = YouTube, GMedia, direct, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/YouTube.png +static = Telegram, Outside, direct, img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Telegram_X.png +static = Microsoft, direct, Outside, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/Microsoft.png +static = PayPal, Outside, direct, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/PayPal.png +static = Outside, proxy, direct, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/Outside.png +static = Mainland, direct, proxy, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/Mainland.png +static = Speedtest, Outside, direct, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/Speedtest.png +static = Others, Outside, direct, img-url = https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/IconSet/Others.png diff --git a/QuantumultX/Script.conf b/QuantumultX/Script.conf index e69de29..8b13789 100644 --- a/QuantumultX/Script.conf +++ b/QuantumultX/Script.conf @@ -0,0 +1 @@ + diff --git a/QuantumultX/Tail.conf b/QuantumultX/Tail.conf index 3f4a62f..73933db 100644 --- a/QuantumultX/Tail.conf +++ b/QuantumultX/Tail.conf @@ -1,17 +1,17 @@ [filter_remote] -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/AdBlock.list, tag=AdBlock , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Netease%20Music.list, tag=Netease Music , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Netflix.list, tag=Netflix , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/YouTube.list, tag=YouTube , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Microsoft.list, tag=Microsoft , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/CMedia.list, tag=CMedia , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/GMedia.list, tag=GMedia , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/PayPal.list, tag=PayPal , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Speedtest.list, tag=Speedtest , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Telegram.list, tag=Telegram , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Outside.list, tag=Outside , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Mainland.list, tag=Mainland , enabled=true -https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Apple.list, tag=Apple , enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/AdBlock.list, tag=AdBlock (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Apple.list, tag=Apple (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/CMedia.list, tag=CMedia (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Optional/Netflix.list, tag=Netflix (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Optional/Spotify.list, tag=Spotify (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Optional/YouTube.list, tag=YouTube (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/GMedia.list, tag=GMedia (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Optional/Telegram.list, tag=Telegram (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Optional/Microsoft.list, tag=Microsoft (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Optional/PayPal.list, tag=PayPal (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Speedtest.list, tag=Speedtest (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Outside.list, tag=Outside (Stick Rules), enabled=true +https://cdn.jsdelivr.net/gh/GeQ1an/Rules@master/QuantumultX/Filter/Mainland.list, tag=Mainland (Stick Rules), enabled=true [filter_local] host-suffix, local, direct @@ -25,7 +25,13 @@ geoip, cn, Mainland final, Others [rewrite_remote] -https://raw.githubusercontent.com/ConnersHua/Profiles/master/Quantumult/X/Rewrite.conf, tag=Rewrite (ConnersHua), enabled=true +https://cdn.jsdelivr.net/gh/DivineEngine/Profiles@master/Quantumult/Rewrite/Block/Advertising.conf, tag=Rewrite (ConnersHua), enabled=true http://cloudcompute.lbyczf.com/quanx-rewrite, tag=Rewrite (lhie1), enabled=false -[rewrite_local] \ No newline at end of file +[rewrite_local] +# 更换 TikTok 区域请修改下方国家代码,默认为韩国 KR +# 非亚洲区域 App Store 下载的 TikTok 请将 "8.4.0" 修改为 "14.0.0" +# 使用国内版抖音需使用 ; 注释 (?<=version_code=)\d{1,}.\d{1}\.\d{1} url 307 8.4.0 规则 +(.*video_id=\w{32})(.*watermark=)(.*) url 302 $1 +(?<=(carrier|account|sys|sim)_region=)CN url 307 KR +(?<=version_code=)\d{1,}.\d{1}\.\d{1} url 307 8.4.0 diff --git a/QuantumultX/此文件夹已暂停维护.md b/QuantumultX/此文件夹已暂停维护.md deleted file mode 100644 index e69de29..0000000 diff --git a/Surge/Surge 3/.DS_Store b/Surge/Surge 3/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..17f49214470049cf1c58d9fa1b13d8143c19ea95 GIT binary patch literal 6148 zcmeHK!Ab)$5KY>uX+`WoP(0=0t%qHeq6cBA_25AeR`j6K?y^M})=g=*7Oj>25B(!Q zz~6BuNeiWV@FG%XVDcuDnS{JuG6`dhHwKZ*Sd}p*KoJXNXuc5~N1c;`^&oORN5VSc zu-^?670yMI<3BQh-)@lP>Q z4#vzjAN^jMsPqo}lblH`Au&J<5CaR(fIaxc>ca1oHb@K*1HWYe&j$&L=vmAS>Z1c1 zyguT12@wTsd`looi=M^YAdG-;lL}~3xqV`AlMa4q<2;MGL6gq7UK!@GD|7oo;d*uO zOC8R*XOLQAfEbu%plG^Ptp6uJzyD{Gs7DMC0}I6fFE#yU1GZ#q>)htB)=JPeC + + + + PayloadContent + + + DNSSettings + + DNSProtocol + HTTPS + ServerAddresses + + 2400:3200::1 + 2400:3200:baba::1 + 223.5.5.5 + 223.6.6.6 + + ServerURL + https://dns.alidns.com/dns-query + + PayloadDescription + Configures device to use AliDNS Encrypted DNS over TLS + PayloadDisplayName + AliDNS DNS over HTTPS + PayloadIdentifier + com.apple.dnsSettings.managed.9d6e5fdf-e404-4f34-ae94-27ed2f636ac4 + PayloadType + com.apple.dnsSettings.managed + PayloadUUID + 35d5c8a0-afa6-4b36-a9fe-099a997b44ad + PayloadVersion + 1 + ProhibitDisablement + + + + PayloadDescription + Adds the AliDNS to Big Sur and iOS 14 based systems + PayloadDisplayName + AliDNS over HTTPS + PayloadIdentifier + com.paulmillr.apple-dns + PayloadRemovalDisallowed + + PayloadType + Configuration + PayloadUUID + A4475135-633A-4F15-A79B-BE15093DC97A + PayloadVersion + 1 + + diff --git a/dnspod-https.mobileconfig b/dnspod-https.mobileconfig new file mode 100644 index 0000000..6bf13b3 --- /dev/null +++ b/dnspod-https.mobileconfig @@ -0,0 +1,50 @@ + + + + + PayloadContent + + + DNSSettings + + DNSProtocol + HTTPS + ServerAddresses + + 119.29.29.29 + + ServerURL + https://doh.pub/dns-query + + PayloadDescription + Configures device to use DNSPod Encrypted DNS over HTTPS + PayloadDisplayName + DNSPod over HTTPS + PayloadIdentifier + com.apple.dnsSettings.managed.C498EC0C-EF6C-44F0-BFB7-0000658B99AC + PayloadType + com.apple.dnsSettings.managed + PayloadUUID + 065AB183-5E34-4794-9BEB-B5327CF61F27 + PayloadVersion + 1 + ProhibitDisablement + + + + PayloadDescription + Adds the DNSPod to Big Sur and iOS 14 based systems + PayloadDisplayName + DNSPod over HTTPS + PayloadIdentifier + com.paulmillr.apple-dns + PayloadRemovalDisallowed + + PayloadType + Configuration + PayloadUUID + 030E6D6F-69A2-4515-9D77-99342CB9AE76 + PayloadVersion + 1 + +