【Surge】多订阅分流配置
11月17日 / 12月9日
1[General] 2# 基础配置 3loglevel = warning 4show-error-page-for-reject = true 5internet-test-url = http://www.apple.com/library/test/success.html 6 7# 测试URL 8proxy-test-url = http://www.gstatic.com/generate_204 9geoip-maxmind-url = https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-without-asn.mmdb 10 11# GeoIP数据库 12disable-geoip-db-auto-update = false 13exclude-simple-hostnames = true 14dns-server = 223.5.5.5,1.1.1.1 15 16# DNS 17encrypted-dns-follow-outbound-mode = false 18encrypted-dns-server = https://doh.pub/dns-query,https://i4cm5lqxfu.cloudflare-gateway.com/dns-query 19read-etc-hosts = true 20http-api-web-dashboard = false 21 22# 控制器安全配置 23http-api-tls = false 24proxy-restricted-to-lan = true 25skip-proxy = 223.5.5.5,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,17.0.0.0/8,*.local,localhost,www.abchina.com.cn,captive.apple.com,169.254.0.0/16,192.0.0.0/24,192.0.2.0/24,192.168.0.0/16 26 27# 跳过代理列表 28always-real-ip = *.srv.nintendo.net,*.stun.playstation.net,xbox.*.microsoft.com,*.xboxlive.com,*.battlenet.com.cn,*.battlenet.com,*.blzstatic.cn,*.battle.net 29 30# 强制直连列表(游戏/特定服务,避免代理解析问题) 31udp-policy-not-supported-behaviour = REJECT 32 33# UDP配置(优化兼容性) 34udp-priority = false 35use-local-host-item-for-proxy = true 36encrypted-dns-skip-cert-verification = false 37 38[Proxy Group] 39# 主策略组 40🚀Proxy = select, 🌐自动, 🇭🇰香港, 🇺🇸美国, 🇯🇵日本, 🇰🇷韩国, 🇨🇳台湾, 🇸🇬狮城, hidden=false, no-alert=false 41 42# 细分功能策略组 43🤖AI = select, 🇯🇵日本, 🇺🇸美国, 🇰🇷韩国, 🇸🇬狮城, hidden=false, no-alert=false 44🫨TikTok = select, 🇸🇬狮城, 🇭🇰香港, 🇺🇸美国, 🇯🇵日本, 🇰🇷韩国, hidden=false, no-alert=false 45🎥YouTube = select, 🚀Proxy, 🇭🇰香港, 🇺🇸美国, 🇯🇵日本, 🇰🇷韩国, 🇸🇬狮城, hidden=false, no-alert=false 46📺Media = select, 🚀Proxy, 🇭🇰香港, 🇺🇸美国, 🇯🇵日本, 🇰🇷韩国, 🇸🇬狮城, hidden=false, no-alert=false 47 48# 基础策略组 49🎯Direct = select, DIRECT, hidden=true 50🐠Final = select, 🚀Proxy, hidden=true 51🚫Reject = select, REJECT, hidden=true 52 53# 自动测速策略组 54🌐自动 = smart, include-other-group=🔗HUB, policy-regex-filter=(?i)(?:🇭🇰|港|香港|Hong|HK)|(?:🇯🇵|日本|Japan|JP)|(?:🇸🇬|新加坡|Singapore|SG|狮城), hidden=true 55 56# 地区智能策略组 57🇭🇰香港 = smart, include-other-group=🔗HUB, policy-regex-filter=(?i)(?:🇭🇰|港|香港|Hong|HK), hidden=true 58🇺🇸美国 = smart, include-other-group=🔗HUB, policy-regex-filter=(?i)(?:🇺🇸|美|美国|States|US), hidden=true 59🇯🇵日本 = smart, include-other-group=🔗HUB, policy-regex-filter=(?i)(?:🇯🇵|日本|Japan|JP), hidden=true 60🇨🇳台湾 = smart, include-other-group=🔗HUB, policy-regex-filter=(?i)(?:🇨🇳|湾|台湾|Tai|TW), hidden=true 61🇰🇷韩国 = smart, include-other-group=🔗HUB, policy-regex-filter=(?i)(?:🇰🇷|韩|韩国|Korea|KR), hidden=true 62🇸🇬狮城 = smart, include-other-group=🔗HUB, policy-regex-filter=(?i)(?:🇸🇬|新加坡|Singapore|SG|狮城), hidden=true 63 64# 订阅聚合组 65🔗HUB = select, include-other-group="Sub1,Sub2,Sub3,Sub4,Sub5,Sub6", hidden=true 66 67# 机场订阅策略组 68Sub1 = select, policy-path=xxx, update-interval=86400, hidden=true, no-alert=false 69Sub2 = select, policy-path=xxx, update-interval=86400, hidden=true, no-alert=false 70Sub3 = select, policy-path=xxx, update-interval=86400, hidden=true, no-alert=false 71Sub4 = select, policy-path=xxx, update-interval=86400, hidden=true, no-alert=false 72Sub5 = select, policy-path=xxx, update-interval=86400, hidden=true, no-alert=false 73Sub6 = select, policy-path=xxx, update-interval=86400, hidden=true, no-alert=false 74 75[Rule] 76# 广告屏蔽 77DOMAIN-SET,https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge2.txt,🚫Reject,no-resolve # Anti 78 79# 服务特定规则 80RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GitHub/GitHub.list,🚀Proxy,no-resolve # GitHub 81RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/OpenAI/OpenAI.list,🤖AI,no-resolve # OpenAI 82RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Claude/Claude.list,🤖AI,no-resolve # Claude 83RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Copilot/Copilot.list,🤖AI,no-resolve # Copilot 84RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Google/Google.list,🤖AI,no-resolve # Google 85RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Jetbrains/Jetbrains.list,🤖AI,no-resolve # JetBrains 86 87# 流媒体 88RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,🎥YouTube,no-resolve # YouTube 89RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/TikTok/TikTok.list,🫨TikTok,no-resolve # TikTok 90RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GlobalMedia/GlobalMedia_All_No_Resolve.list,📺Media,no-resolve # GlobalMedia 91 92# 通用代理 93RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Proxy/Proxy_All_No_Resolve.list,🚀Proxy,no-resolve 94 95# 国内直连 96RULE-SET,LAN,🎯Direct 97RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple_All_No_Resolve.list,🎯Direct,no-resolve # Apple 98RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/China/China_All_No_Resolve.list,🎯Direct,no-resolve 99 100# 最终规则 101GEOIP,CN,🎯Direct,no-resolve 102GEOIP,PRIVATE,🎯Direct 103FINAL,🐠Final 104 105[MITM] 106h2 = true
cd ..