[General] # > 𝐥𝐚𝐨𝐬𝐡𝐮@𝐒𝐮𝐫𝐠𝐞𝐏𝐫𝐨 专用配置 # > 配置下载𝐔𝐑𝐋: https://raw.githubusercontent.com/jnlaoshu/MySelf/master/Surge/Config.conf # > 花样字体生成: https://qwerty.dev/fancy-font-generator/ # > 机场转义𝐄𝐍𝐂𝐎𝐃𝐄: https://www.urlencoder.org # > 𝐔𝐩𝐝𝐚𝐭𝐞: 2026.01.17 12:05 # > 隐藏 VPN 图标 hide-vpn-icon = false # > 增强版 Wi-Fi 助理 wifi-assist = false # > 混合网络 all-hybrid = false # > Internet 测试 URL (用于检测互联网联通性) internet-test-url = http://wifi.vivo.com.cn/generate_204 # > 代理测速 URL (用于节点测速) proxy-test-url = http://www.gstatic.com/generate_204 # > 测试超时(秒) test-timeout = 5 # > GeoIP 数据库 geoip-maxmind-url = https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb disable-geoip-db-auto-update = false # > IPv6 支持 ipv6 = true # > 允许 Wi-Fi/热点 访问 allow-wifi-access = true wifi-access-http-port = 6152 wifi-access-socks5-port = 6153 allow-hotspot-access = true http-listen = 127.0.0.1:6152 socks5-listen = 127.0.0.1:6153 use-default-policy-if-wifi-not-primary = false # > HTTP-API (用于控制台和面板) http-api = laoshu@0.0.0.0:6170 http-api-tls = false http-api-web-dashboard = true # > 跳过代理 (直连网段) 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, localhost, *.local, passenger.12306.cn, www.baidu.com # > 路由防火墙 include-all-networks = false include-local-networks = false # > 日志等级 loglevel = notify show-error-page-for-reject = true # > Always Real IP (解决部分应用推送和连接问题) always-real-ip = *.lan, *.msftconnecttest.com, *.msftncsi.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.apple.com # > DNS 设置 # 劫持传统 DNS 请求 hijack-dns = *:53 # 默认 DNS 服务器 dns-server = 223.5.5.5, 119.29.29.29 # 加密 DNS (DOH/DOQ) encrypted-dns-server = https://dns.alidns.com/dns-query, https://doh.pub/dns-query # 关闭 DOH 证书验证 (提高兼容性) doh-skip-cert-verification = true # 读取系统 hosts read-etc-hosts = true # 代理请求使用本地 DNS 映射 (通常设为 false) use-local-host-item-for-proxy = false # > UDP 设置 # 遇到不支持 UDP 的代理时拒绝 udp-policy-not-supported-behaviour = REJECT # 提高 UDP 优先级 (对游戏和语音通话有帮助) udp-priority = true # > 兼容性模式 # 0: 自动/轻量 (推荐); 1: Proxy-First; 3: VIF-Only # 官方建议保持默认(注释掉),除非遇到严重的网络兼容性问题 # compatibility-mode = 1 # > 排除简单主机名 exclude-simple-hostnames = true [Proxy Group] Naiyun = select, policy-path=https%3A%2F%2Fsubmit.mylac.cn%3A20443%2Fapi%2Fv1%2Fclient%2Fsubscribe%3Ftoken%3D137f3ae5248ac71fcb7c26ae4f7f33&alert=1&title=Naiyun, update-interval=3600, no-alert=0, hidden=0, include-all-proxies=0 # 主策略 Proxy = select, Auto, AllServer, HongKong, TaiWan, Japan, Singapore, United States, Korea, Other # 自动选择 Auto = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/AllServer?target=Surge, interval=600, tolerance=50 # 策略组 Google = select, Auto, AllServer, HongKong, TaiWan, Japan, Singapore, United States, Korea, Other TikTok = select, Auto, AllServer, HongKong, TaiWan, Japan, Singapore, United States, Korea, Other Twitter = select, Auto, AllServer, HongKong, TaiWan, Japan, Singapore, United States, Korea, Other Telegram = select, Auto, AllServer, HongKong, TaiWan, Japan, Singapore, United States, Korea, Other YouTube = select, Auto, AllServer, HongKong, TaiWan, Japan, Singapore, United States, Korea, Other # 地区分组 (Regex 筛选) HongKong = url-test, url=http://www.gstatic.com/generate_204, interval=1200, tolerance=50, update-interval=0, include-other-group="Auto", policy-regex-filter=🇭🇰|港|HK|Hong TaiWan = url-test, url=http://www.gstatic.com/generate_204, interval=1200, tolerance=50, update-interval=0, include-other-group="Auto", policy-regex-filter=🇹🇼|台|TW|Tai Japan = url-test, url=http://www.gstatic.com/generate_204, interval=1200, tolerance=50, update-interval=0, include-other-group="Auto", policy-regex-filter=🇯🇵|日|JP|Japan Singapore = url-test, url=http://www.gstatic.com/generate_204, interval=1200, tolerance=50, update-interval=0, include-other-group="Auto", policy-regex-filter=🇸🇬|坡|狮城|SG|Singapore United States = url-test, url=http://www.gstatic.com/generate_204, interval=1200, tolerance=50, update-interval=0, include-other-group="Auto", policy-regex-filter=🇺🇸|美|US|States|American Korea = url-test, url=http://www.gstatic.com/generate_204, interval=1200, tolerance=50, update-interval=0, include-other-group="Auto", policy-regex-filter=🇰🇷|韩|KR|KOR|Korea Other = select, include-other-group="Auto", policy-regex-filter=^((?!🇭🇰|港|HK|Hong|🇹🇼|台|TW|Tai|🇯🇵|日|JP|Japan|🇸🇬|坡|狮城|SG|Singapore|🇰🇷|韩|KR|KOR|Korea|🇺🇸|美|US|States|American|Music).)*$ AllServer = select, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/AllServer?target=Surge, update-interval=0 [Rule] # > 屏蔽 HTTP3/QUIC (保证稳定性,强制回落 TCP) AND,((PROTOCOL,UDP),(DEST-PORT,443)),REJECT-NO-DROP # > 屏蔽 YouTube QUIC (防止缓冲问题) AND,((PROTOCOL,UDP),(DOMAIN-SUFFIX,googlevideo.com)),REJECT-NO-DROP # > 隐私与安全 DOMAIN,app-site-association.cdn-apple.com,REJECT DOMAIN,ocsp.apple.com,REJECT # > 本地/特定功能 DOMAIN-KEYWORD,jsdelivr.net,Proxy DOMAIN-SUFFIX,vercel.app,Proxy DOMAIN,beta.apple.com,Proxy DOMAIN,testflight.apple.com,Proxy # > 规则集 (Rule-Sets) # 直连修正 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Direct/Direct.list,DIRECT # 广告拦截 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Advertising/Advertising_All_No_Resolve.list,REJECT # Apple RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple_All_No_Resolve.list,DIRECT # Microsoft RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Microsoft/Microsoft.list,DIRECT # WeChat RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/WeChat/WeChat_Resolve.list,DIRECT # > 代理应用 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Bing/Bing.list,United States RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/OpenAI/OpenAI_Resolve.list,United States RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Google/Google_Resolve.list,Google RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GoogleVoice/GoogleVoice.list,Google RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/PayPal/PayPal.list,United States RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Spotify/Spotify_Resolve.list,United States # > Telegram (防频繁请求 + 规则) AND,((PROCESS-NAME,Telegram), (OR,((IP-CIDR,0.0.0.0/8), (IP-CIDR,224.0.0.0/4)))),REJECT RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram_Resolve.list,Telegram # > 社交媒体 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Twitter/Twitter_Resolve.list,Twitter RULE-SET,https://raw.githubusercontent.com/Semporia/TikTok-Unlock/master/Surge/TikTok.list,TikTok RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube_Resolve.list,YouTube RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTubeMusic/YouTubeMusic.list,YouTube # > 兜底分流 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Global/Global_All_No_Resolve.list,Proxy RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/China/China_All_No_Resolve.list,DIRECT # > 局域网与 GeoIP IP-CIDR,0.0.0.0/32,REJECT,no-resolve RULE-SET,LAN,DIRECT GEOIP,CN,DIRECT FINAL,Proxy,dns-failed [Host] # > 本地映射 ip6-localhost = ::1 ip6-loopback = ::1 router.asus.com = server:syslib tplogin.cn = server:syslib tplinklogin.net = server:syslib *.lan = server:syslib # 修复 Google 地图中国版重定向问题 *.google.cn = server:142.250.204.46 [URL Rewrite] # > 重定向 Google 搜索和地图 (将 .cn 重写为 .com) ^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302 ^https?:\/\/(ditu|maps).google\.cn https://maps.google.com 302 [Script] Sub-Store Core = type=http-request,pattern=^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info))),script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-1.min.js,requires-body=true,timeout=120,ability=http-client-policy,engine=auto Sub-Store Simple = type=http-request,pattern=^https?:\/\/sub\.store,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-0.min.js,requires-body=true,timeout=120,engine=auto 机场信息 = type=http-request,timeout=10,pattern=http://sub\.info,script-path=https://raw.githubusercontent.com/jnlaoshu/MySelf/master/Surge/Sub_info.js 运行时长 = type = generic,timeout=10,script-path=https://raw.githubusercontent.com/jnlaoshu/MySelf/master/Surge/StartTime.js 今日黄历&节假日倒数 = type=generic, timeout=10, script-path=https://raw.githubusercontent.com/jnlaoshu/MySelf/main/Script/Almanac.js 网络信息 = type=generic, timeout=10, script-path=https://raw.githubusercontent.com/jnlaoshu/MySelf/main/Script/NetworkInfo.js 流媒体&AI服务解锁检测 = type=generic, timeout=15, script-path=https://raw.githubusercontent.com/jnlaoshu/MySelf/main/Script/ServiceDetection.js [Panel] 策略面板1 = script-name=运行时长,title=运行时长,content=请刷新,update-interval=1 今日黄历&节假日倒数 = script-name=今日黄历&节假日倒数, update-interval=1800 策略面板2 = script-name=网络信息,title=网络信息,content=请刷新,style=info 流媒体&AI服务解锁检测 = script-name=流媒体&AI服务解锁检测, title="流媒体&AI服务解锁检测", content="请刷新面板", [MITM] skip-server-cert-verify = true h2 = true hostname = sub.store, testflight.apple.com, *.google.cn, *.google.com.hk