# 配置名称: Surge 配置
# 配置作者: Centralmatrix3
# 更新时间: 25-02-05 00:00

[General]
# 日志级别
loglevel = notify

# 测试超时
test-timeout = 5

# 混合网络
all-hybrid = false

# 网络助理
wifi-assist = false

# 游戏优化
udp-priority = false

# 允许访问
allow-wifi-access = true
allow-hotspot-access = true

# 直连网络测试
internet-test-url = http://taobao.com/

# 代理策略测试
proxy-test-url = http://cp.cloudflare.com/generate_204

# 自定义数据库
geoip-maxmind-url = https://github.com/Masaiki/GeoIP2-CN/raw/release/Country.mmdb

# 常规DNS服务器
dns-server = 223.5.5.5, 119.29.29.29

# 加密DNS服务器
encrypted-dns-server = https://doh.pub/dns-query, https://dns.alidns.com/dns-query

# 排除简单主机名
exclude-simple-hostnames = true

# 显示拒绝错误页
show-error-page-for-reject = true

[Proxy Group]
# 自行选择
自行选择 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=^, policy-path=🧸订阅链接🧸, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/Static.png

# 自动选择
自动选择 = smart, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=^, include-other-group=自行选择, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/Available.png

# 苹果服务
苹果服务 = select, DIRECT, REJECT, 自行选择, 自动选择, 香港节点, 台湾节点, 日本节点, 韩国节点, 狮城节点, 美国节点, no-alert=0, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/Apple-2.png

# 港台番剧
港台番剧 = select, DIRECT, REJECT, 自行选择, 自动选择, 香港节点, 台湾节点, 日本节点, 韩国节点, 狮城节点, 美国节点, no-alert=0, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/StreamingSE.png

# 国内媒体
国内媒体 = select, DIRECT, REJECT, 自行选择, 自动选择, 香港节点, 台湾节点, 日本节点, 韩国节点, 狮城节点, 美国节点, no-alert=0, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/StreamingCN.png

# 国际媒体
国际媒体 = select, 自行选择, 自动选择, DIRECT, REJECT, 香港节点, 台湾节点, 日本节点, 韩国节点, 狮城节点, 美国节点, no-alert=0, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/Streaming.png

# 全球加速
全球加速 = select, 自行选择, 自动选择, DIRECT, REJECT, 香港节点, 台湾节点, 日本节点, 韩国节点, 狮城节点, 美国节点, no-alert=0, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/Global.png

# 黑白名单
黑白名单 = select, 自行选择, 自动选择, DIRECT, REJECT, 香港节点, 台湾节点, 日本节点, 韩国节点, 狮城节点, 美国节点, no-alert=0, hidden=0, include-all-proxies=0, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/Final.png

# 香港节点
香港节点 = smart, update-interval=0, policy-regex-filter=香港|港|HK|🇭🇰|(?i)Hong, no-alert=0, hidden=1, include-all-proxies=0, include-other-group=自行选择, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/HK.png

# 台湾节点
台湾节点 = smart, update-interval=0, policy-regex-filter=台湾|台|TW|🇹🇼|(?i)Taiwan, no-alert=0, hidden=1, include-all-proxies=0, include-other-group=自行选择, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/TW.png

# 日本节点
日本节点 = smart, update-interval=0, policy-regex-filter=日本|日|JP|🇯🇵|(?i)Japan, no-alert=0, hidden=1, include-all-proxies=0, include-other-group=自行选择, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/JP.png

# 韩国节点
韩国节点 = smart, update-interval=0, policy-regex-filter=韩国|韩|KR|🇰🇷|(?i)Korea, no-alert=0, hidden=1, include-all-proxies=0, include-other-group=自行选择, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/KR.png

# 狮城节点
狮城节点 = smart, update-interval=0, policy-regex-filter=新加坡|狮|SG|🇸🇬|(?i)Singapore, no-alert=0, hidden=1, include-all-proxies=0, include-other-group=自行选择, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/SG.png

# 美国节点
美国节点 = smart, update-interval=0, policy-regex-filter=美国|美|US|🇺🇸|(?i)States, no-alert=0, hidden=1, include-all-proxies=0, include-other-group=自行选择, icon-url=https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Gallery/Color/US.png

[Rule]
# 规则修正
RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/Unbreak.list,DIRECT

# 广告拦截
RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/Advertising.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/Centralmatrix3/Matrix-io/master/Surge/Ruleset/Apple.list,苹果服务

# 局域网络
RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/LAN.list,DIRECT

# 国内规则
RULE-SET,https://raw.githubusercontent.com/Centralmatrix3/Matrix-io/master/Surge/Ruleset/GEOIPCN.list,DIRECT

# 最终规则
FINAL,黑白名单,dns-failed

[MITM]
# MitM over HTTP/2
h2 = true

# 主机名
hostname = -buy.itunes.apple.com