# 深巷有喵的Surge配置 # 日期:2024-07-24 # 版本:1.7 # 配置作者:https://github.com/Rabbit-Spec/Surge # 适用版本:iOS/macOS的Surge 5 [General] # > 日志级别 loglevel = notify show-error-page-for-reject = true # > 允许Wi-Fi访问 allow-wifi-access = false # > All Hybrid 网络并发 all-hybrid = false # > IPv6 支持(默认关闭) ipv6 = false # > 测试超时(秒) test-timeout = 15 # > Internet 测试 URL internet-test-url = http://www.baidu.com # > 代理测速 URL proxy-test-url = http://www.google.com/generate_204 # > GeoIP数据库 geoip-maxmind-url = https://github.com/Hackl0us/GeoIP2-CN/raw/release/Country.mmdb # > 排除简单主机名 exclude-simple-hostnames = true # > DNS 服务器 dns-server = 223.5.5.5, 119.29.29.29 # encrypted-dns-server = https://223.5.5.5/dns-query hijack-dns = 8.8.8.8:53, 8.8.4.4:53 # > 从 /etc/hosts 读取 DNS 记录 read-etc-hosts = true # > 远程控制器 http-api-web-dashboard = true use-default-policy-if-wifi-not-primary = false # > 跳过代理 skip-proxy = 192.168.0.0/24, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.1, localhost, *.local # > Always Real IP always-real-ip = *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com*.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, *.battlenet.com.cn, *.battlenet.com, *.blzstatic.cn, *.battle.net # > 兼容模式(若需要使用Homekit摄像头,可以开启兼容模式,但开启兼容模式会导致一些屏蔽广告的模块失效,请自行取舍) # compatibility-mode = 5 # > 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 自动更新 disable-geoip-db-auto-update = true # > 当节点不支持UDP时,默认fallback 到reject udp-policy-not-supported-behaviour = REJECT [Proxy Group] # > 策略组(下面的节点信息需与外部节点对应,若删除了外部节点里的节点,那么在策略组里也要删除。) Proxy = select, 🇭🇰 香港节点, 🇺🇸 美国节点, 🇯🇵 日本节点, 🇨🇳 台湾节点, 🇸🇬 新加坡节点, 🚀 我的节点 GlobalMedia = select, 🇭🇰 香港节点, 🇺🇸 美国节点, 🇯🇵 日本节点, 🇨🇳 台湾节点, 🇸🇬 新加坡节点 # > 外部节点 🇭🇰 香港节点 = smart, include-other-group=🚀 我的节点, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0, policy-regex-filter=(🇭🇰)|(港)|(Hong)|(HK) 🇨🇳 台湾节点 = smart, include-other-group=🚀 我的节点, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0, policy-regex-filter=(🇨🇳)|(台)|(Tai)|(TW) 🇺🇸 美国节点 = smart, include-other-group=🚀 我的节点, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0, policy-regex-filter=(🇺🇸)|(美)|(States)|(US) 🇯🇵 日本节点 = smart, include-other-group=🚀 我的节点, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0, policy-regex-filter=(🇯🇵)|(日)|(Japan)|(JP) 🇸🇬 新加坡节点 = smart, include-other-group=🚀 我的节点, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0, policy-regex-filter=(🇸🇬)|(新)|(Singapore)|(SG) 🚀 我的节点 = select, policy-path=你的订阅地址, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0 [Rule] # > 防止应用循环请求 IP-CIDR,0.0.0.0/32,REJECT,no-resolve # > 苹果服务 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple_All_No_Resolve.list,DIRECT # > 社交平台 RULE-SET,https://raw.githubusercontent.com/VirgilClyne/GetSomeFries/main/ruleset/ASN.Telegram.list,Proxy # > 流媒体 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GlobalMedia/GlobalMedia_All_No_Resolve.list,GlobalMedia # > Proxy RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Proxy/Proxy_All_No_Resolve.list,Proxy # > 局域网地址 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Lan/Lan.list,DIRECT # > China ASN RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/ChinaASN/ChinaASN_Resolve.list,DIRECT # > China 补全 RULE-SET,https://raw.githubusercontent.com/Blankwonder/surge-list/master/cn.list,DIRECT # > DNS 查询失败走Final规则 FINAL,Proxy,dns-failed