-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurge-rule-providers.conf
106 lines (101 loc) · 5.85 KB
/
surge-rule-providers.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!MANAGED-CONFIG http://193.32.149.24:20088/c/?token=e3ce510712e275438b241200e85a04e6
# 深巷有喵的「Surge」配置
# 日期:2024-12-04
# 版本:3.5.4
# 配置作者: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
# > IPv6 VIF(默认禁用)
ipv6-vif = disabled
# > 测试超时(秒)
test-timeout = 2
# > Internet 测试 URL
internet-test-url = http://www.baidu.com
# > 代理测速 URL
proxy-test-url = http://193.32.149.24:20088/c/?token=e3ce510712e275438b241200e85a04e6
# > 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
# > DNS 加密服务器
encrypted-dns-server = https://223.5.5.5/dns-query
# > DNS 劫持
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, *.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]
🌐 全球直连 = direct
[Proxy Group]
# > 策略组(下面的节点信息需与外部节点对应,若删除了外部节点里的节点,那么在策略组里也要删除。)
🔰 节点选择 = select, ♻️ 自动选择 ,🌐 全球直连 = direct
♻️ 自动选择 = url-test ,url=http://www.gstatic.com/generate_204,interval=300,timeout=5
📲 电报信息 = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
🎥 奈飞视频 = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
🎬 迪士尼+ = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
📹 油管视频 = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
📽 哔哩哔哩 = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
🍿 国外媒体 = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
🍟 OpenAI = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
Ⓜ️ 微软服务 = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
🍎 苹果服务 = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
🎮 游戏平台 = select, 🔰 节点选择, ♻️ 自动选择 ,🌐 全球直连 = direct
[Rule]
# > Anti-AD
# DOMAIN-SET,https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge2.txt,REJECT,pre-matching,extended-matching
# > 苹果服务
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple_All_No_Resolve.list,🍎 苹果服务
# > OpenAI
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/OpenAI/OpenAI_Resolve.list,🍟 OpenAI
# > GitHub
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GitHub/GitHub.list,🔰 节点选择
# > 微软服务
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Microsoft/Microsoft.list,Ⓜ️ 微软服务
# > 社交平台
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram.list,📲 电报信息
# > 游戏平台
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Epic/Epic.list,🎮 游戏平台
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Sony/Sony.list,🎮 游戏平台
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Steam/Steam.list,🎮 游戏平台
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Nintendo/Nintendo.list,🎮 游戏平台
# > 流媒体
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,📹 油管视频
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Netflix/Netflix.list,🎥 奈飞视频
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Disney/Disney.list,🎬 迪士尼+
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/BiliBili/BiliBili.list,📽 哔哩哔哩
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/ChinaMedia/ChinaMedia.list,🌐 全球直连
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GlobalMedia/GlobalMedia_All_No_Resolve.list,🍿 国外媒体
# > Proxy
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Proxy/Proxy_All_No_Resolve.list,🔰 节点选择,extended-matching
# > China
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/ChinaMax/ChinaMax_All.list,🌐 全球直连,extended-matching
# > 局域网地址
RULE-SET,LAN,🌐 全球直连
# > DNS 查询失败走 Final 规则
FINAL,🔰 节点选择,dns-failed