ipv6: true vif_only: true hide_vpn_icon: false hijack_dns: - '*:53' geoip_db_url: https://raw.githubusercontent.com/Masaiki/GeoIP2-CN/release/Country.mmdb asn_db_url: https://raw.githubusercontent.com/P3TERX/GeoLite.mmdb/download/GeoLite2-ASN.mmdb direct_latency_test_url: http://wifi.vivo.com.cn/generate_204 compat_route: false dns: bootstrap: - 223.5.5.5 - 119.29.29.29 - 1.12.12.12 - 120.53.53.53 - 2400:3200::1 upstreams: AdBlack: - quic://dns.adguard-dns.com - https://dns.adguard-dns.com/dns-query Alibaba: - 223.5.5.5 - https://dns.alidns.com/dns-query Tencent: - 119.29.29.29 - https://doh.pub/dns-query ByteDance: - 180.184.2.2 - 180.184.1.1 China: - 223.5.5.5 - 119.29.29.29 - https://doh.pub/dns-query - https://dns.alidns.com/dns-query Global: - https://1.1.1.1/dns-query - https://8.8.8.8/dns-query - https://dns.google/dns-query - https://cloudflare-dns.com/dns-query forward: - proxy_rule_set: match: https://raw.githubusercontent.com/Loyalsoldier/surge-rules/release/ruleset/reject.txt value: AdBlack disabled: false - proxy_rule_set: match: https://rule.kelee.one/Loon/Alibaba.lsr value: Alibaba - proxy_rule_set: match: https://rule.kelee.one/Loon/Tencent.lsr value: Tencent - proxy_rule_set: match: https://rule.kelee.one/Loon/DouYin.lsr value: ByteDance - proxy_rule_set: match: https://rule.kelee.one/Loon/Apple.lsr value: China - proxy_rule_set: match: https://rule.kelee.one/Loon/ChinaMax.lsr value: China - proxy_rule_set: match: https://rule.kelee.one/Loon/Global.lsr value: Global - domain_wildcard: match: '*' value: Global proxy_nameservers: - https://doh.pub/dns-query - https://dns.alidns.com/dns-query public_ip_lookup_url: https://ifconfig.me/ip policy_groups: - external: name: AllServer type: select urls: - https://your-subscription-url filter: '^((?!Remain|Expired|官网|如需|套餐|去除|剩余|距离|Reset|重置|流量).)+$' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/05icon/rocket(1).png hidden: false - select: name: Hong Kong policies: - AllServer flatten: true filter: '🇭🇰|HK|香港|Hong\s*Kong|HongKong|HKG|MO' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/01Country/Hongkong(3).png hidden: false - select: name: Taiwan policies: - AllServer flatten: true filter: '🇹🇼|TW|台湾|Taiwan|Tai|TWN' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/01Country/taiwan(4).png hidden: false - select: name: Japan policies: - AllServer flatten: true filter: '🇯🇵|JP|日本|Japan|JPN' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/01Country/Japan(2).png hidden: false - select: name: Singapore policies: - AllServer flatten: true filter: '🇸🇬|SG|新加坡|狮城|Singapore|SGP|MA' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/01Country/singapore.png hidden: false - select: name: United States policies: - AllServer flatten: true filter: '🇺🇸|US|美国|United\s*States|USA|States|American' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/01Country/US(2).png hidden: false - select: name: United Kingdom policies: - AllServer flatten: true filter: '🇬🇧|UK|英国|United\s*Kingdom|England|Britain' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/01Country/UnitedKingdom(2).png hidden: false - select: name: Korea policies: - AllServer flatten: true filter: '🇰🇷|KR|韩国|Korea|KOR' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/01Country/Korea(2).png hidden: false - select: name: Other policies: - AllServer flatten: true filter: '^(?!.*(🇭🇰|HK|香港|Hong\s*Kong|HongKong|HKG|🇹🇼|TW|台湾|Taiwan|Tai|TWN|🇯🇵|JP|日本|Japan|JPN|🇸🇬|SG|新加坡|狮城|Singapore|SGP|🇺🇸|US|美国|United\s*States|USA|States|American|🇬🇧|UK|英国|United\s*Kingdom|England|Britain|🇰🇷|KR|韩国|Korea|KOR)).*$' update_interval: 86400 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/01Country/EuropeanUnion(2).png hidden: false - auto_test: name: Automatic policies: - Hong Kong - Taiwan - Japan - Singapore - United States - United Kingdom - Korea interval: 300 tolerance: 50 timeout: 3 icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/05icon/lightning(5).png hidden: false - select: name: Proxy policies: - Automatic - Hong Kong - Taiwan - Singapore - Japan - United States - United Kingdom - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/05icon/rocket(1).png hidden: false - select: name: NoAuto policies: - Mainland - Automatic - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/05icon/lightning.png hidden: false - select: name: Apple policies: - Mainland - Hong Kong - United States - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/03CNSoft/apple.png hidden: false - select: name: AI policies: - Automatic - United States - Japan - Singapore - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/04ProxySoft/chatgpt(1).png hidden: false - select: name: Microsoft policies: - Mainland - Hong Kong - Singapore - United States - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/03CNSoft/microsoft.png hidden: false - select: name: OneDrive policies: - Mainland - Hong Kong - Singapore - United States - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/03CNSoft/OneDrive.png hidden: false - select: name: Telegram policies: - Automatic - Singapore - United States - Hong Kong - Taiwan - Japan - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/04ProxySoft/telegram.png hidden: false - select: name: WeChat policies: - Mainland - Hong Kong - Singapore - United States - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/03CNSoft/wechat.png hidden: false - select: name: X policies: - Automatic - Hong Kong - Taiwan - Singapore - Japan - United States - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/04ProxySoft/twitter.png hidden: false - select: name: Bilibili policies: - Mainland - Hong Kong - Taiwan - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/03CNSoft/bilibili.png hidden: false - select: name: Disney+ policies: - Hong Kong - Singapore - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/04ProxySoft/disney.png hidden: false - select: name: Netflix policies: - Hong Kong - Taiwan - Singapore - Japan - United States - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/04ProxySoft/netflix.png hidden: false - select: name: TikTok policies: - Taiwan - Singapore - Japan - United States - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/04ProxySoft/tiktok.png hidden: false - select: name: YouTube policies: - Automatic - Hong Kong - Taiwan - Singapore - Japan - United States - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/04ProxySoft/Youtube.png hidden: false - select: name: Speedtest policies: - Mainland - Automatic - AllServer icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/03CNSoft/speedtest.png hidden: false - select: name: Mainland policies: - DIRECT icon: https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/icon/05icon/direct.png hidden: false rules: - rule_set: match: https://raw.githubusercontent.com/zxfccmm4/Profiles/refs/heads/main/Surge/Ruleset/Unbreak.list policy: DIRECT - rule_set: match: https://ruleset.skk.moe/List/domainset/reject.conf policy: REJECT - rule_set: match: https://ruleset.skk.moe/List/non_ip/reject-drop.conf policy: REJECT - rule_set: match: https://ruleset.skk.moe/List/non_ip/reject.conf policy: REJECT - rule_set: match: https://ruleset.skk.moe/List/ip/reject.conf policy: REJECT - domain: match: app-site-association.cdn-apple.com policy: REJECT - domain: match: prpr.96110.cn.com policy: DIRECT - domain_keyword: match: '96110' policy: REJECT - domain_suffix: match: gjfzpt.cn policy: REJECT - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/WeChat/WeChat.list policy: WeChat - rule_set: match: https://ruleset.skk.moe/List/non_ip/neteasemusic.conf policy: Mainland - rule_set: match: https://ruleset.skk.moe/List/ip/neteasemusic.conf policy: Mainland - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/BiliBili/BiliBili.list policy: Bilibili - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Weibo/Weibo.list policy: Mainland - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/XiaoHongShu/XiaoHongShu.list policy: Mainland - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/AppStore/AppStore.list policy: DIRECT - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/AppleNews/AppleNews.list policy: United States - rule_set: match: https://ruleset.skk.moe/List/domainset/apple_cdn.conf policy: Apple - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/AppleTV/AppleTV.list policy: Apple - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple.list policy: Apple - domain_keyword: match: diabrowser.engineering policy: AI - domain_suffix: match: apple-relay.apple.com policy: AI - domain_suffix: match: apple-relay.cloudflare.com policy: AI - domain_keyword: match: apple-relay policy: AI - domain_suffix: match: googleapis.com policy: AI - rule_set: match: https://ruleset.skk.moe/List/non_ip/ai.conf policy: AI - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Bing/Bing.list policy: AI - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Disney/Disney.list policy: Disney+ - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Netflix/Netflix.list policy: Netflix - rule_set: match: https://raw.githubusercontent.com/Semporia/TikTok-Unlock/master/Surge/TikTok.list policy: TikTok - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list policy: YouTube - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GoogleSearch/GoogleSearch.list policy: YouTube - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Emby/Emby.list policy: Automatic - rule_set: match: https://ruleset.skk.moe/List/non_ip/stream_us.conf policy: United States - rule_set: match: https://ruleset.skk.moe/List/ip/stream_us.conf policy: United States - rule_set: match: https://ruleset.skk.moe/List/non_ip/stream_eu.conf policy: United Kingdom - rule_set: match: https://ruleset.skk.moe/List/ip/stream_eu.conf policy: United Kingdom - rule_set: match: https://ruleset.skk.moe/List/non_ip/stream_jp.conf policy: Japan - rule_set: match: https://ruleset.skk.moe/List/ip/stream_jp.conf policy: Japan - rule_set: match: https://ruleset.skk.moe/List/non_ip/stream_kr.conf policy: Korea - rule_set: match: https://ruleset.skk.moe/List/ip/stream_kr.conf policy: Korea - rule_set: match: https://ruleset.skk.moe/List/non_ip/stream_hk.conf policy: Hong Kong - rule_set: match: https://ruleset.skk.moe/List/ip/stream_hk.conf policy: Hong Kong - rule_set: match: https://ruleset.skk.moe/List/non_ip/stream_tw.conf policy: Taiwan - rule_set: match: https://ruleset.skk.moe/List/ip/stream_tw.conf policy: Taiwan - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Twitter/Twitter.list policy: X - rule_set: match: https://ruleset.skk.moe/List/non_ip/telegram.conf policy: Telegram - rule_set: match: https://ruleset.skk.moe/List/ip/telegram.conf policy: Telegram - rule_set: match: https://ruleset.skk.moe/List/ip/telegram_asn.conf policy: Telegram - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Facebook/Facebook.list policy: Automatic - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Instagram/Instagram.list policy: Automatic - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Threads/Threads.list policy: Automatic - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Discord/Discord.list policy: Automatic - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/OneDrive/OneDrive.list policy: OneDrive - rule_set: match: https://ruleset.skk.moe/List/non_ip/microsoft.conf policy: Microsoft - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GitHub/GitHub.list policy: Automatic - rule_set: match: https://raw.githubusercontent.com/getsomecat/GetSomeCats/Surge/rule/substore.list policy: Automatic - domain_suffix: match: vercel.app policy: Automatic - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Speedtest/Speedtest.list policy: Speedtest - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Riot/Riot.list policy: United States - domain_suffix: match: mypikpak.com policy: United States - domain_suffix: match: nssurge.com policy: Automatic - domain_suffix: match: surgee.me policy: Automatic - domain_suffix: match: www.torrentmac.net policy: Automatic - domain_suffix: match: cloudflare.com policy: Automatic - domain: match: jable.tv policy: Automatic - domain: match: api.amplitude.com policy: Automatic - domain: match: m.cmx.im policy: Automatic - domain_suffix: match: api.themoviedb.org policy: Automatic - rule_set: match: https://ruleset.skk.moe/List/non_ip/direct.conf policy: Mainland - rule_set: match: https://ruleset.skk.moe/List/non_ip/domestic.conf policy: Mainland - rule_set: match: https://ruleset.skk.moe/List/ip/domestic.conf policy: Mainland - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/ChinaMax/ChinaMax.list policy: Mainland - rule_set: match: https://raw.githubusercontent.com/VirgilClyne/GetSomeFries/main/ruleset/ASN.China.list policy: DIRECT - rule_set: match: https://ruleset.skk.moe/List/domainset/download.conf policy: Mainland - rule_set: match: https://ruleset.skk.moe/List/non_ip/download.conf policy: Mainland - rule_set: match: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Tesla/Tesla.list policy: DIRECT - domain_suffix: match: appstorrent.ru policy: DIRECT - rule_set: match: https://ruleset.skk.moe/List/domainset/cdn.conf policy: Automatic - rule_set: match: https://ruleset.skk.moe/List/non_ip/cdn.conf policy: Automatic - rule_set: match: https://ruleset.skk.moe/List/non_ip/global_plus.conf policy: Automatic - rule_set: match: https://ruleset.skk.moe/List/non_ip/global.conf policy: Automatic - domain_suffix: match: googlevideo.com policy: REJECT - domain_suffix: match: smtp policy: DIRECT - url_regex: match: (Subject|HELO|SMTP) policy: DIRECT - rule_set: match: https://ruleset.skk.moe/List/non_ip/lan.conf policy: DIRECT - domain_suffix: match: cn policy: Mainland - geoip: match: CN policy: Mainland no_resolve: true - default: policy: NoAuto mitm: ca_p12: egern.p12 ca_passphrase: egern hostnames: includes: - www.google.cn - api.abema.io - '*.zhihu.com' - sub.store excludes: []