# 本配置文件地址: https://ruleset.isteed.cc/Config/surge.conf # 食用说明: # 将 [Proxy Group] 中的 https://example.com/sub 替换为你的订阅地址 # 官方文档: https://manual.nssurge.com [General] # 日志等级 loglevel = notify # 增强的 Wi-Fi 助理 wifi-assist = false # 混合网络 all-hybrid = true # 在高负载时优先处理 UDP 数据包(游戏优化) udp-priority = true # 延迟测试 test-timeout = 3 internet-test-url = http://connectivitycheck.platform.hicloud.com/generate_204 proxy-test-url = http://cp.cloudflare.com/generate_204 # IPv6 支持 ipv6 = true # 上游 DNS 地址 dns-server = 223.6.6.6, 119.29.29.29, system # 跳过代理 skip-proxy = localhost, *.local, injections.adguard.org, local.adguard.org, captive.apple.com, 0.0.0.0/8, 10.0.0.0/8, 17.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, ::1/128, fe80::/10 # 排除简单主机名 exclude-simple-hostnames = true # 包含所有网络请求 include-all-networks = false # 包含本地网络请求 include-local-networks = false # 允许 Wi-Fi 网络下的其它设备访问 allow-wifi-access = true # Surge iOS 默认 HTTP/SOCKS5 端口为 6152/6153 wifi-access-http-port = 7767 wifi-access-socks5-port = 7767 # Surge Mac 默认 HTTP/SOCKS5 端口为 6152/6153 http-listen = 0.0.0.0:7767 socks5-listen = 0.0.0.0:7766 # 允许热点共享 allow-hotspot-access = true # 允许远程控制器管理控制 Surge external-controller-access = 1145141919810@127.0.0.1:6170 http-api = 1145141919810@127.0.0.1:6166 [Proxy] 𝐷𝑖𝑟𝑒𝑐𝑡 = direct 𝑅𝑒𝑗𝑒𝑐𝑡 = reject 𝑅𝑒𝑗𝑒𝑐𝑡-𝑡𝑖𝑛𝑦𝑔𝑖𝑓 = reject-tinygif [Proxy Group] 𝑆𝑢𝑏 = select, hidden=true, policy-path=https://example.com/sub 𝑃𝑟𝑜𝑥𝑦 = select, 𝑆𝑚𝑎𝑟𝑡, 𝑆𝑚𝑎𝑟𝑡𝐻𝐾, 𝑆𝑚𝑎𝑟𝑡𝐽𝑃, include-other-group=𝑆𝑢𝑏 𝑆𝑡𝑟𝑒𝑎𝑚𝑖𝑛𝑔 = select, 𝑃𝑟𝑜𝑥𝑦, include-other-group=𝑆𝑢𝑏 𝑆𝑡𝑟𝑒𝑎𝑚𝑖𝑛𝑔𝑆𝐸 = select, 𝐷𝑖𝑟𝑒𝑐𝑡, 𝑃𝑟𝑜𝑥𝑦, 𝑆𝑚𝑎𝑟𝑡𝐻𝐾, include-other-group=𝑆𝑢𝑏, policy-regex-filter=(?i)(h(ong)?k(ong)?|ta?i?w|macau)|澳门|港|台|🇭🇰|🇲🇴|🇹🇼 𝑇𝑒𝑙𝑒𝑔𝑟𝑎𝑚 = select, 𝑃𝑟𝑜𝑥𝑦, 𝑆𝑚𝑎𝑟𝑡𝑆𝐺, include-other-group=𝑆𝑢𝑏, policy-regex-filter=(?i)(sg|us|nl|singapore|united|netherland)|新加坡|荷兰|美国|狮城|🇸🇬|🇳🇱|🇺🇸 𝐴𝐼 = select, 𝑃𝑟𝑜𝑥𝑦, 𝑆𝑚𝑎𝑟𝑡𝐽𝑃, include-other-group=𝑆𝑢𝑏, policy-regex-filter=(?i)(jp|japan|u[sk]|america|united|ta?i?w)|[美英]国|日本|台|🇺🇸|🇬🇧|🇯🇵|🇹🇼 𝐴𝑝𝑝𝑙𝑒 = select, 𝐷𝑖𝑟𝑒𝑐𝑡, 𝑃𝑟𝑜𝑥𝑦 𝑂𝑛𝑒𝐷𝑟𝑖𝑣𝑒 = select, 𝐷𝑖𝑟𝑒𝑐𝑡, 𝑃𝑟𝑜𝑥𝑦 𝐺𝑢𝑎𝑟𝑑 = select, 𝑅𝑒𝑗𝑒𝑐𝑡, 𝑅𝑒𝑗𝑒𝑐𝑡-𝑡𝑖𝑛𝑦𝑔𝑖𝑓, 𝐷𝑖𝑟𝑒𝑐𝑡 𝐹𝑖𝑛𝑎𝑙 = select, 𝑃𝑟𝑜𝑥𝑦, 𝐷𝑖𝑟𝑒𝑐𝑡 𝑆𝑚𝑎𝑟𝑡 = smart, include-other-group=𝑆𝑢𝑏 𝑆𝑚𝑎𝑟𝑡𝐻𝐾 = smart, include-other-group=𝑆𝑢𝑏, policy-regex-filter=(?i)(h(ong)?k(ong)?)|港|🇭🇰 𝑆𝑚𝑎𝑟𝑡𝐽𝑃 = smart, include-other-group=𝑆𝑢𝑏, policy-regex-filter=(?i)(jp|japan)|日本|🇯🇵 𝑆𝑚𝑎𝑟𝑡𝑆𝐺 = smart, include-other-group=𝑆𝑢𝑏, policy-regex-filter=(?i)(sg|singapore)|新加坡|🇸🇬 [Rule] # 自用规则 RULE-SET,https://ruleset.isteed.cc/List/Surge/DirectCustom.conf,𝐷𝑖𝑟𝑒𝑐𝑡,extended-matching RULE-SET,https://ruleset.isteed.cc/List/Surge/ProxyCustom.conf,𝑃𝑟𝑜𝑥𝑦,extended-matching # 垃圾服务 DOMAIN-SET,https://ruleset.isteed.cc/List/Surge/Guard.conf,𝐺𝑢𝑎𝑟𝑑,extended-matching # Unbreak 后续规则修正 RULE-SET,https://ruleset.isteed.cc/List/Surge/Unbreak.conf,𝐷𝑖𝑟𝑒𝑐𝑡,extended-matching # Apple 服务 RULE-SET,https://ruleset.isteed.cc/List/Surge/Apple.conf,𝐴𝑝𝑝𝑙𝑒,extended-matching # Apple CDN DOMAIN-SET,https://ruleset.isteed.cc/List/Surge/ChinaApple.conf,𝐷𝑖𝑟𝑒𝑐𝑡,extended-matching # AI Chat RULE-SET,https://ruleset.isteed.cc/List/Surge/AI.conf,𝐴𝐼,extended-matching # Telegram RULE-SET,https://ruleset.isteed.cc/List/Surge/Telegram.conf,𝑇𝑒𝑙𝑒𝑔𝑟𝑎𝑚,extended-matching # OneDrive RULE-SET,https://ruleset.isteed.cc/List/Surge/OneDrive.conf,𝑂𝑛𝑒𝐷𝑟𝑖𝑣𝑒,extended-matching # Streaming 国际流媒体服务 RULE-SET,https://ruleset.isteed.cc/List/Surge/Streaming.conf,𝑆𝑡𝑟𝑒𝑎𝑚𝑖𝑛𝑔,extended-matching # StreamingSE 国内流媒体服务 RULE-SET,https://ruleset.isteed.cc/List/Surge/StreamingSE.conf,𝑆𝑡𝑟𝑒𝑎𝑚𝑖𝑛𝑔𝑆𝐸,extended-matching # Global 全球加速 RULE-SET,https://ruleset.isteed.cc/List/Surge/Global.conf,𝑃𝑟𝑜𝑥𝑦,extended-matching # China 中国直连 RULE-SET,https://ruleset.isteed.cc/List/Surge/China.conf,𝐷𝑖𝑟𝑒𝑐𝑡,extended-matching # 防止应用循环请求 IP-CIDR,0.0.0.0/32,𝑅𝑒𝑗𝑒𝑐𝑡,no-resolve # 最终规则 RULE-SET,SYSTEM,𝐷𝑖𝑟𝑒𝑐𝑡 RULE-SET,https://ruleset.isteed.cc/List/Surge/ChinaIP.conf,𝐷𝑖𝑟𝑒𝑐𝑡 RULE-SET,https://ruleset.isteed.cc/List/Surge/ChinaIPv6.conf,𝐷𝑖𝑟𝑒𝑐𝑡 # GEOIP,CN,𝐷𝑖𝑟𝑒𝑐𝑡 FINAL,𝐹𝑖𝑛𝑎𝑙,dns-failed [URL Rewrite] # 重定向谷歌搜索 ^https?:\/\/(www.)?(g|google).cn https://www.google.com 307 # 重定向谷歌地图 ^https?:\/\/(ditu|maps).google\.cn https://maps.google.com 307 [MITM] # 跳过服务端证书验证 skip-server-cert-verify = true # MITM over HTTP/2 h2 = true # 主机名 hostname = *.google.cn