# Surge 进阶配置 - 此配置文件主要用于 macOS 端,统一管理常用分流场景和地区策略,便于在日常使用中快速切换不同服务的出站策略。 # Date: 2026-06-21 # Author: https://jankan.com # 本地实际使用时,请自行替换订阅入口和 http-api 密码 [General] skip-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,*.crashlytics.com,seed-sequoia.siri.apple.com,localhost,sequoia.apple.com,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 exclude-simple-hostnames = true dns-server = 223.5.5.5 encrypted-dns-server = https://223.5.5.5/dns-query always-real-ip = *.srv.nintendo.net,*.stun.playstation.net,xbox.*.microsoft.com,*.xboxlive.com,*.battlenet.com.cn,*.battlenet.com,*.blzstatic.cn,*.battle.net,github.com,ssh.github.com,192.168.0.0/16 udp-priority = true http-api = your-api-secret@127.0.0.1:6171 http-api-tls = true http-api-web-dashboard = true ipv6 = false test-timeout = 5 internet-test-url = http://connectivitycheck.platform.hicloud.com/generate_204 proxy-test-url = http://www.gstatic.com/generate_204 [Proxy Group] # 订阅入口 订阅节点 = select, policy-path=https://example.com/subscription-url, update-interval=86400, no-alert=0, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/Proxy.png HUB = select, include-other-group=订阅节点, update-interval=0, no-alert=0, hidden=1, include-all-proxies=0, policy-regex-filter=(🇭🇰)|(🇨🇳)|(🇸🇬)|(🇯🇵)|(🇺🇸)|(🇨🇦)|(🇬🇧)|(🇩🇪)|(🇳🇱)|(🇮🇹)|(🇪🇸)|(🇹🇷)|(🇦🇺)|(🇦🇷)|(🇧🇷)|(🇨🇱)|(🇰🇷)|(🇮🇳)|(🇮🇱)|(🇹🇭)|(🇻🇳)|(🇲🇾)|(🇿🇦)|(Hong)|(Taiwan)|(Singapore)|(Japan)|(United States)|(Canada)|(United Kingdom)|(Germany)|(Netherlands)|(Italy)|(Spain)|(Turkey)|(Australia)|(Argentina)|(Brazil)|(Chile)|(Korea)|(India)|(Israel)|(Thailand)|(Vietnam)|(Malaysia)|(Johannesburg), icon-url=https://raw.githubusercontent.com/iconic/open-iconic/master/png/project-2x.png # 场景策略 Proxy = select, DIRECT, REJECT, 香港节点, 台湾节点, 日本节点, 韩国节点, 新加坡节点, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/Proxy.png Apple = select, DIRECT, REJECT, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/Apple.png Apple Music = select, DIRECT, REJECT, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/Apple_Music.png Microsoft = select, Proxy, DIRECT, 香港节点, 新加坡节点, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/Microsoft.png Spotify = select, 香港节点, 日本节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/Spotify.png OpenAI = select, DIRECT, REJECT, 日本节点, 美国节点, 新加坡节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/OpenAI.png Gemini = select, DIRECT, REJECT, 日本节点, 美国节点, 新加坡节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/AI.png Google = select, DIRECT, REJECT, 香港节点, 台湾节点, 日本节点, 韩国节点, 新加坡节点, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/Google.png GitHub = select, DIRECT, REJECT, 香港节点, 台湾节点, 日本节点, 韩国节点, 新加坡节点, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/GitHub.png YouTube = select, 香港节点, 台湾节点, 日本节点, 韩国节点, 新加坡节点, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/YouTube.png X = select, DIRECT, REJECT, 香港节点, 台湾节点, 日本节点, 韩国节点, 新加坡节点, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/X.png TikTok = select, DIRECT, REJECT, 香港节点, 日本节点, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/TikTok.png Telegram = select, DIRECT, REJECT, 香港节点, 台湾节点, 日本节点, 韩国节点, 新加坡节点, 美国节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/Telegram.png TradingView = select, DIRECT, REJECT, Proxy, 香港节点, 日本节点, 美国节点, 新加坡节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Jankan/proxy-configs/main/assets/icons/tradingview.png Lark = select, DIRECT, REJECT, Proxy, 香港节点, 日本节点, 美国节点, 新加坡节点, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Jankan/proxy-configs/main/assets/icons/lark.jpg macOS 更新 = select, DIRECT, REJECT, Proxy, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/Apple.png 广告拦截 = select, REJECT, DIRECT, 全球手动策略, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/Advertising.png WebRTC 防泄露 = select, REJECT, DIRECT, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/Reject.png 全球手动策略 = select, DIRECT, REJECT, include-other-group=HUB, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/Global.png # 地区策略 香港节点 = smart, include-other-group=HUB, update-interval=0, no-alert=0, hidden=1, include-all-proxies=0, policy-regex-filter=(🇭🇰)|(港)|(香港)|(Hong)|(HK), icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/HK.png 台湾节点 = smart, include-other-group=HUB, update-interval=0, no-alert=0, hidden=1, include-all-proxies=0, policy-regex-filter=(🇨🇳)|(湾)|(台湾)|(Taiwan)|(TW), icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/TW.png 日本节点 = smart, include-other-group=HUB, update-interval=0, no-alert=0, hidden=1, include-all-proxies=0, policy-regex-filter=(🇯🇵)|(日本)|(Japan)|(JP), icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/JP.png 韩国节点 = smart, include-other-group=HUB, update-interval=0, no-alert=0, hidden=1, include-all-proxies=0, policy-regex-filter=(🇰🇷)|(韩)|(韩国)|(Korea)|(KR), icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/KR.png 新加坡节点 = smart, include-other-group=HUB, update-interval=0, no-alert=0, hidden=1, include-all-proxies=0, policy-regex-filter=(🇸🇬)|(新加坡)|(Singapore)|(SG), icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/SG.png 美国节点 = smart, include-other-group=HUB, update-interval=0, no-alert=0, hidden=1, include-all-proxies=0, policy-regex-filter=(🇺🇸)|(美)|(美国)|(States)|(US), icon-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/US.png # 兜底策略 兜底后备策略 = fallback, include-other-group=HUB, policy-regex-filter=(🇭🇰)|(🇨🇳)|(🇸🇬)|(🇯🇵)|(🇺🇸)|(🇰🇷)|(Hong)|(Taiwan)|(Singapore)|(Japan)|(United States)|(Korea), url=http://www.gstatic.com/generate_204, interval=60, timeout=5, icon-url=https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/Final.png [Rule] # SSH 直连 PROCESS-NAME,ssh,DIRECT DEST-PORT,22,DIRECT DOMAIN-SUFFIX,jankan.com,DIRECT # 自维护规则 RULE-SET,https://raw.githubusercontent.com/Jankan/proxy-configs/main/surge/rules/webrtc-stun-block.list,"WebRTC 防泄露" RULE-SET,https://raw.githubusercontent.com/Jankan/proxy-configs/main/surge/rules/apple-software-update-block.list,"macOS 更新" RULE-SET,https://raw.githubusercontent.com/Jankan/proxy-configs/main/surge/rules/tradingview.list,TradingView RULE-SET,https://raw.githubusercontent.com/Jankan/proxy-configs/main/surge/rules/lark.list,Lark # 服务规则 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,YouTube RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Gemini/Gemini.list,Gemini RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/OpenAI/OpenAI.list,OpenAI RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/AppleMusic/AppleMusic.list,"Apple Music" RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple.list,Apple RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Microsoft/Microsoft.list,Microsoft RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Google/Google.list,Google RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GitHub/GitHub.list,GitHub RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Spotify/Spotify.list,Spotify RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/TikTok/TikTok.list,TikTok RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram.list,Telegram RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Twitter/Twitter.list,X # Sukka domainset DOMAIN-SET,https://ruleset-mirror.skk.moe/List/domainset/reject.conf,广告拦截,extended-matching DOMAIN-SET,https://ruleset-mirror.skk.moe/List/domainset/reject_extra.conf,广告拦截 DOMAIN-SET,https://ruleset-mirror.skk.moe/List/domainset/speedtest.conf,DIRECT,extended-matching DOMAIN-SET,https://ruleset-mirror.skk.moe/List/domainset/cdn.conf,全球手动策略 DOMAIN-SET,https://ruleset-mirror.skk.moe/List/domainset/apple_cdn.conf,Apple DOMAIN-SET,https://ruleset-mirror.skk.moe/List/domainset/download.conf,DIRECT # Sukka non_ip RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/reject-drop.conf,REJECT-DROP,pre-matching RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/reject.conf,广告拦截,extended-matching RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/reject-no-drop.conf,广告拦截,extended-matching RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/ai.conf,OpenAI RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/apple_intelligence.conf,OpenAI,extended-matching RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/telegram.conf,Telegram RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/apple_services.conf,Apple RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/apple_cn.conf,DIRECT RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/microsoft_cdn.conf,DIRECT RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/microsoft.conf,Microsoft RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/download.conf,DIRECT RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/lan.conf,DIRECT RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/domestic.conf,DIRECT RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/direct.conf,DIRECT RULE-SET,https://ruleset-mirror.skk.moe/List/non_ip/global.conf,全球手动策略 # Sukka ip RULE-SET,https://ruleset-mirror.skk.moe/List/ip/reject.conf,REJECT-DROP RULE-SET,https://ruleset-mirror.skk.moe/List/ip/telegram.conf,Telegram RULE-SET,https://ruleset-mirror.skk.moe/List/ip/telegram_asn.conf,Telegram RULE-SET,https://ruleset-mirror.skk.moe/List/ip/domestic.conf,DIRECT RULE-SET,https://ruleset-mirror.skk.moe/List/ip/lan.conf,DIRECT RULE-SET,https://ruleset-mirror.skk.moe/List/ip/china_ip.conf,DIRECT GEOIP,CN,DIRECT IP-CIDR,28.0.0.0/8,DIRECT,no-resolve IP-CIDR,198.18.0.0/15,DIRECT,no-resolve FINAL,兜底后备策略 [Host] dl.google.com = server:119.29.29.29 dl.l.google.com = server:119.29.29.29 update.googleapis.com = server:119.29.29.29 [URL Rewrite] ^https?://(www.)?g.cn https://www.google.com 302 ^https?://(www.)?google.cn https://www.google.com 302 [MITM] h2 = true hostname = www.google.cn, www.g.cn