# Lucky的自用Surge配置 [General] # > 测试超时(秒) test-timeout = 10 # UDP 优先级 udp-priority = false # > 国内 测试 URL internet-test-url = http://www.bing.com # > 代理测速 URL proxy-test-url = http://www.gstatic.com/generate_204 # > 自定义 GeoIP 数据库 geoip-maxmind-url = https://github.com/Hackl0us/GeoIP2-CN/raw/release/Country.mmdb # > IPv6 支持(默认关闭) ipv6 = false # > DNS 服务器 dns-server = 223.5.5.5, 114.114.114.114, 119.29.29.29, 162.159.195.1, system # DoH 服务器 encrypted-dns-server = https://doh.pub/dns-query, https://dns.alidns.com/dns-query # > 当遇到 REJECT 策略时返回错误页 show-error-page-for-reject = true # 跳过代理(已注释)Surge 5.8.0默认VIF Only # skip-proxy = 127.0.0.1, 192.168.0.0/16, 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 # > 允许 Wi-Fi 访问 (仅 iOS,若允许远程访问将「false」改为「true」) allow-wifi-access = false # HTTP 服务端口 wifi-access-http-port = 6528 # SOCKS5 服务端口 wifi-access-socks5-port = 6582 # 允许个人热点访问 allow-hotspot-access = true # > 增强版 Wi-Fi 助理 wifi-assist = true # HTTP-API控制 http-api = Lucky@127.0.0.1:5208 http-api-tls = false http-api-web-dashboard = true # > 远程控制器 use-default-policy-if-wifi-not-primary = false all-hybrid = false # All Hybrid 网络并发 exclude-simple-hostnames = true # > 排除简单主机名 read-etc-hosts = true # > 从 /etc/hosts 读取 DNS 记录 loglevel = notify # > 日志级别 always-real-ip = *.msftconnecttest.com, *.msftncsi.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, *.logon.battlenet.com.cn, *.logon.battle.net, stun.l.google.com # > Always Real IP Hosts disable-geoip-db-auto-update = true # > Surge VIF # tun-excluded-routes = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 # tun-included-routes = 192.168.1.12/32 # > 禁用 GEOIP 自动更新 udp-policy-not-supported-behaviour = reject # 如果没有代理服务器支持 UDP 转发,可修改为「 direct 」或注释下条,但需注意同一目标主机名 TCP 请求与 UDP 请求的源地址不同所造成的隐私及安全风险。 [Proxy] [Proxy Group] # 手动选择 ♥️网速超快 = select, no-alert=0, hidden=0, include-all-proxies=1, update-interval=0, policy-path=👉👉你的订阅链接 # 自动选择 🟡延迟优选 = url-test, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=^, include-other-group=♥️网速超快 # 苹果服务 🍎苹果服务 = select, ♥️网速超快, 🟡延迟优选, DIRECT, REJECT, 🍜香港, 🍝台湾, 🍛日本, 🥘韩国, 🍲新加坡, 🍲美国, 🍝智利, no-alert=0, hidden=0, include-all-proxies=0 # 港台番剧 🖥️港台番剧 = select, 🍜香港, 🍝台湾, DIRECT, REJECT, no-alert=0, hidden=0, include-all-proxies=0 # 国内媒体 💿国内媒体 = select, DIRECT, REJECT, 🍜香港, 🍝台湾, no-alert=0, hidden=0, include-all-proxies=0 # 国际媒体 📀国际媒体 = select, ♥️网速超快, 🟡延迟优选, 🍜香港, DIRECT, REJECT, 🍝台湾, 🍛日本, 🥘韩国, 🍲新加坡, 🍲美国, 🍝智利, no-alert=0, hidden=0, include-all-proxies=0 # 全球加速 🟢全球加速 = select, ♥️网速超快, 🟡延迟优选, DIRECT, REJECT, 🍜香港, 🍝台湾, 🍛日本, 🥘韩国, 🍲新加坡, 🍲美国, 🍝智利, no-alert=0, hidden=0, include-all-proxies=0 # 兜底规则 🟣法外狂徒 = select, ♥️网速超快, 🟡延迟优选, DIRECT, REJECT, 🍜香港, 🍝台湾, 🍛日本, 🥘韩国, 🍲新加坡, 🍲美国, 🍝智利, no-alert=0, hidden=0, include-all-proxies=0 # 网易云 🎙️网抑云 = select, policy-path=https://gist.githubusercontent.com/As-Lucky/93af45f81dcbd70d7079d3fc327706e0/raw/wyy, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0 # 香港分流 🍜香港 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(?=.*(🇭🇰|港|HK|(?i)Hong))^((?!(3倍)).)*$, include-other-group=🟡延迟优选 # 台湾分流 🍝台湾 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(🇨🇳)|(台)|(Tai)|(TW), include-other-group=🟡延迟优选 # 日本分流 🍛日本 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(🇯🇵)|(日)|(Japan)|(JP), include-other-group=🟡延迟优选 # 新加坡分流 🍲新加坡 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(🇸🇬)|(坡)|(Singapore)|(SG), include-other-group=🟡延迟优选 # 美国分流 🥘韩国 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(🇰🇷)|(韩)|(KR), include-other-group=🟡延迟优选 # 韩国分流 🍲美国 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(🇺🇸)|(美)|(States)|(US), include-other-group=🟡延迟优选 # 智利分流 🍝智利 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(🇨🇱)|(智利), include-other-group=🟡延迟优选 # 分流规则 [Rule] # 网易云解锁灰色 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/NetEaseMusic/NetEaseMusic.list,♥️网速超快 # Nba DOMAIN-SUFFIX,nbaprop.sc.omtrdc.net,DIRECT DOMAIN-SUFFIX,akamaized.net,DIRECT DOMAIN-SUFFIX,nba.studio.easelive.tv,DIRECT DOMAIN-SUFFIX,nba-cdn.cloud.easelive.tv,DIRECT DOMAIN-SUFFIX,nba.com,DIRECT DOMAIN-SUFFIX,nlnbaqos.neulion.com,DIRECT # 美团 DOMAIN-SUFFIX,d.meituan.net,DIRECT // Added for: route-stats.d.meituan.net:443 DOMAIN-SUFFIX,speedv6.m.jd.com,DIRECT // Added for: speedv6.m.jd.com:443 DOMAIN-SUFFIX,spotify.com,DIRECT DOMAIN-SUFFIX,zhuishudashi.net,DIRECT // Added for: g-lens2.zhuishudashi.net:443 AND,((PROTOCOL,UDP), (DEST-PORT,443)),REJECT-NO-DROP # 腾讯 WeChat RULE-SET,https://github.com/NobyDa/Script/raw/master/Surge/WeChat.list,DIRECT # 防止应用循环请求 IP-CIDR,0.0.0.0/32,REJECT,no-resolve # 规则修正 RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/Unbreak.list,DIRECT # > 局域网地址 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Lan/Lan.list,DIRECT # 广告拦截 RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/AdBlock.list,REJECT # 国际媒体 RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/Streaming.list,📀国际媒体 # 港台番剧 RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/StreamingSE.list,🖥️港台番剧 # 国内媒体 RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/StreamingCN.list,💿国内媒体 # 全球加速 RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/Global.list,🟢全球加速 # > 苹果服务 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple_All_No_Resolve.list,🍎苹果服务 # > 全球加速 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Proxy/Proxy_All_No_Resolve.list,♥️网速超快 # > GeoIP China GEOIP,CN,DIRECT # 兜底规则 FINAL,🟣法外狂徒,dns-failed [Host] # 微信 # *.tencent.com = 119.29.29.29 # *.qq.com = 119.29.29.29 *.weixin.com = 119.29.29.29 # Firebase Cloud Messaging mtalk.google.com = 108.177.125.188 # Apple TestFlight *testflight.apple.com = server:8.8.4.4 [URL Rewrite] ^https?:\/\/(www\.)?g\.cn https://www.google.com 302 ^https?:\/\/(www\.)?google\.cn https://www.google.com 302 [MITM] skip-server-cert-verify = true tcp-connection = true h2 = true hostname = *, %APPEND% pan.baidu.com, *account.wps.cn, *account.wps.com, api22-normal-c-alisg.tiktokv.com:443, webcast-normal.tiktokv.com:443, %APPEND% www.google.cn, www.g.cn hostname-disabled = *