-
Notifications
You must be signed in to change notification settings - Fork 0
/
SurgePro.conf
218 lines (212 loc) · 11.6 KB
/
SurgePro.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
[General]
# ✰MuTu Surge Pro 自用配置
# ✰以"#" ";" 和 "//" 开头的行为注释行
# ✰具体配置请参考Surge使用手册 https://manual.nssurge.com
# > HTTP-API
http-api = MuTu@0.0.0.0:6170
# > 日志等级
loglevel = notify
# > 跳过代理
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, localhost, *.local, *.crashlytics.com
# > VIF Excluded Routes
# tun-excluded-routes = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 , 239.255.255.250/32
# > VIF Included Routes
# tun-included-routes = 192.168.1.12/32
# > Always Real IP Hosts
always-real-ip = *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com
# Hijack DNS
# hijack-dns = 8.8.8.8:53, 8.8.4.4:53
# > 允许 Wi-Fi 访问macOS
http-listen = 0.0.0.0:8888
socks5-listen = 0.0.0.0:8889
# > 允许 Wi-Fi 访问iOS
allow-wifi-access = false
wifi-access-http-port = 6152
wifi-access-socks5-port = 6153
# > Internet 测试 URL
internet-test-url = http://www.aliyun.com
# > 代理测速 URL
proxy-test-url = http://www.gstatic.com/generate_204
# > 测试超时(秒)
test-timeout = 5
# > 排除简单主机名
exclude-simple-hostnames = true
# > IPv6 支持
ipv6 = false
# > 当遇到 REJECT 策略时返回错误页
show-error-page-for-reject = true
# > Wi-Fi 不是主接口则使用SSID组的默认策略
use-default-policy-if-wifi-not-primary = false
# > 增强版 Wi-Fi 助理
wifi-assist = false
# > DNS 服务器
dns-server = 223.5.5.5, 114.114.114.114, 119.29.29.29
# > DNS over HTPPS
doh-server = https://223.5.5.5/dns-query
# doh-server = https://dns.alidns.com/dns-query
# > etc/hosts 读取 DNS 记录
read-etc-hosts = true
# > 路由防火墙
# 包含所有的网络请求
include-all-networks = false
# 包含本地网络请求
include-local-networks = false
# > 自定义 GeoIP 数据库
geoip-maxmind-url = https://cdn.jsdelivr.net/gh/Hackl0us/GeoIP2-CN@release/Country.mmdb
# > GeoIP 禁用自动更新
disable-geoip-db-auto-update = false
# > UDP IP 防泄漏
udp-policy-not-supported-behaviour = REJECT
# > HTTP-API-TLS
http-api-tls = false
# > Web 控制器
http-api-web-dashboard = true
# > 隐藏 VPN 图标
hide-vpn-icon = false
# > All Hybrid 网络并发
# all-hybrid = false
# > 兼容模式
# compatibility-mode = false
# > 允许个人热点使用代理
allow-hotspot-access = false
[Replica]
# > 隐藏 Apple 请求
hide-apple-request = false
# > 隐藏崩溃追踪器请求
hide-crash-reporter-request = true
# > 隐藏 UDP 会话
hide-udp = false
# > 关键词过滤器
keyword-filter-type = false
[Proxy]
# > 别名策略+代理
𝗗𝗜𝗥𝗘𝗖𝗧 = direct
𝗛𝗬𝗕𝗥𝗜𝗗 = direct, hybrid=on
[Proxy Group]
# > 自定义策略
# 机场信息 A
𝗗𝗹𝗲𝗿𝗖𝗹𝗼𝘂𝗱 = select, policy-path=http://sub.info?url=(这个网站转义https://www.urlencoder.org)&reset_day=1&alert=1&title=DlerCloud, update-interval=3600, no-alert=0, hidden=0, include-all-proxies=0
# 机场信息 B
𝗠𝗟𝗦𝗮𝗼 = select, policy-path=http://sub.info?url=(这个网站转义https://www.urlencoder.org)&title=MlSao, update-interval=3600, hidden=0, no-alert=0, include-all-proxies=0
# 备用线路
𝗦𝘂𝗽𝗽𝗼𝗿𝘁 = select, policy-path=https://sub.store/download/collection/Server, update-interval=43200, no-alert=0, hidden=0, include-all-proxies=0
# 代理选择
𝗣𝗥𝗢𝗫𝗬 = select, 𝗔𝗨𝗧𝗢 ✰, 𝗦𝘂𝗽𝗽𝗼𝗿𝘁, 𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴, 𝗧𝗮𝗶𝘄𝗮𝗻, 𝗦𝗶𝗻𝗴𝗮𝗽𝗼𝗿𝗲, 𝗝𝗮𝗽𝗮𝗻, 𝗨𝗻𝗶𝘁𝗲𝗱 𝗦𝘁𝗮𝘁𝗲𝘀, 𝗞𝗼𝗿𝗲𝗮, 𝗚𝗲𝗿𝗺𝗮𝗻𝘆, 𝗢𝘁𝗵𝗲𝗿, no-alert=0, hidden=1, include-all-proxies=0
# 延迟选择
𝗔𝗨𝗧𝗢 ✰ = url-test, include-other-group="𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴, 𝗦𝗶𝗻𝗴𝗮𝗽𝗼𝗿𝗲", policy-regex-filter=香港|新加坡, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 香港
𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴 = fallback, policy-path=https://sub.store/download/Dler, policy-regex-filter=香港, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 台湾
𝗧𝗮𝗶𝘄𝗮𝗻 = fallback, policy-path=https://sub.store/download/Dler, policy-regex-filter=台湾, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 新加坡
𝗦𝗶𝗻𝗴𝗮𝗽𝗼𝗿𝗲 = fallback, policy-path=https://sub.store/download/Dler, policy-regex-filter=新加坡, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 日本
𝗝𝗮𝗽𝗮𝗻 = fallback, policy-path=https://sub.store/download/Dler, policy-regex-filter=日本, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 德国
𝗚𝗲𝗿𝗺𝗮𝗻𝘆 = fallback, policy-path=https://sub.store/download/Dler, policy-regex-filter=德国, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 美国
𝗨𝗻𝗶𝘁𝗲𝗱 𝗦𝘁𝗮𝘁𝗲𝘀 = fallback, policy-path=https://sub.store/download/Dler, policy-regex-filter=美国, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 韩国
𝗞𝗼𝗿𝗲𝗮 = fallback, policy-path=https://sub.store/download/Dler, policy-regex-filter=韩国, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 其它
𝗢𝘁𝗵𝗲𝗿 = select, policy-path=https://sub.store/download/Dler, policy-regex-filter=^((?!香港|台湾|新加坡|日本|韩国|美国|德国).)*$, update-interval=43200, no-alert=0, hidden=1, include-all-proxies=0
# 流媒体
𝗦𝘁𝗿𝗲𝗮𝗺𝗶𝗻𝗴 = select, include-other-group="𝗦𝗶𝗻𝗴𝗮𝗽𝗼𝗿𝗲, 𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴", update-interval=43200, no-alert=0, hidden=0, include-all-proxies=0
# Speedtest
𝗦𝗽𝗲𝗲𝗱𝘁𝗲𝘀𝘁 = select, include-other-group="𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴, 𝗧𝗮𝗶𝘄𝗮𝗻, 𝗦𝗶𝗻𝗴𝗮𝗽𝗼𝗿𝗲, 𝗝𝗮𝗽𝗮𝗻, 𝗨𝗻𝗶𝘁𝗲𝗱 𝗦𝘁𝗮𝘁𝗲𝘀, 𝗞𝗼𝗿𝗲𝗮, 𝗚𝗲𝗿𝗺𝗮𝗻𝘆, 𝗢𝘁𝗵𝗲𝗿, 𝗦𝘂𝗽𝗽𝗼𝗿𝘁", update-interval=43200, no-alert=0, hidden=0, include-all-proxies=0
# 哔哩哔哩
𝗕𝗶𝗹𝗶𝗕𝗶𝗹𝗶 = select, 𝗗𝗜𝗥𝗘𝗖𝗧, 𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴, 𝗧𝗮𝗶𝘄𝗮𝗻, no-alert=0, hidden=1, include-all-proxies=0
# Spotify
𝗦𝗽𝗼𝘁𝗶𝗳𝘆 = select, 𝗛𝗬𝗕𝗥𝗜𝗗, 𝗗𝗜𝗥𝗘𝗖𝗧, 𝗣𝗥𝗢𝗫𝗬, 𝗔𝗨𝗧𝗢 ✰, 𝗦𝘂𝗽𝗽𝗼𝗿𝘁, 𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴, 𝗧𝗮𝗶𝘄𝗮𝗻, 𝗦𝗶𝗻𝗴𝗮𝗽𝗼𝗿𝗲, 𝗝𝗮𝗽𝗮𝗻, 𝗨𝗻𝗶𝘁𝗲𝗱 𝗦𝘁𝗮𝘁𝗲𝘀, 𝗞𝗼𝗿𝗲𝗮, 𝗚𝗲𝗿𝗺𝗮𝗻𝘆, 𝗢𝘁𝗵𝗲𝗿, no-alert=0, hidden=1, include-all-proxies=0
# Telegram
𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 = select, 𝗛𝗬𝗕𝗥𝗜𝗗, 𝗗𝗜𝗥𝗘𝗖𝗧, 𝗣𝗥𝗢𝗫𝗬, 𝗔𝗨𝗧𝗢 ✰, 𝗦𝘂𝗽𝗽𝗼𝗿𝘁, 𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴, 𝗧𝗮𝗶𝘄𝗮𝗻, 𝗦𝗶𝗻𝗴𝗮𝗽𝗼𝗿𝗲, 𝗝𝗮𝗽𝗮𝗻, 𝗨𝗻𝗶𝘁𝗲𝗱 𝗦𝘁𝗮𝘁𝗲𝘀, 𝗞𝗼𝗿𝗲𝗮, 𝗚𝗲𝗿𝗺𝗮𝗻𝘆, 𝗢𝘁𝗵𝗲𝗿, no-alert=0, hidden=0, include-all-proxies=0
# 苹果服务
𝗔𝗽𝗽𝗹𝗲 = select, 𝗛𝗬𝗕𝗥𝗜𝗗, 𝗗𝗜𝗥𝗘𝗖𝗧, 𝗣𝗥𝗢𝗫𝗬, 𝗔𝗨𝗧𝗢 ✰, 𝗦𝘂𝗽𝗽𝗼𝗿𝘁, 𝗛𝗼𝗻𝗴 𝗞𝗼𝗻𝗴, 𝗧𝗮𝗶𝘄𝗮𝗻, 𝗦𝗶𝗻𝗴𝗮𝗽𝗼𝗿𝗲, 𝗝𝗮𝗽𝗮𝗻, 𝗨𝗻𝗶𝘁𝗲𝗱 𝗦𝘁𝗮𝘁𝗲𝘀, 𝗞𝗼𝗿𝗲𝗮, 𝗚𝗲𝗿𝗺𝗮𝗻𝘆, 𝗢𝘁𝗵𝗲𝗿, no-alert=0, hidden=0, include-all-proxies=0
[Rule]
# > 规则分流
# 规则修正
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Unbreak.list,𝗗𝗜𝗥𝗘𝗖𝗧
# 广告拦截
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Advertising.list,REJECT-TINYGIF
# 域名拦截
DOMAIN-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/AdvertisingPlus.list,REJECT
# 隐私保护
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Privacy.list,REJECT-TINYGIF
# 运营商劫持
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Hijacking.list,REJECT-TINYGIF
# WeChat
RULE-SET,https://raw.githubusercontent.com/NobyDa/Script/master/Surge/WeChat.list,𝗛𝗬𝗕𝗥𝗜𝗗
# Netflix
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/Netflix.list,𝗦𝘁𝗿𝗲𝗮𝗺𝗶𝗻𝗴
# Spotify
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Spotify/Spotify.list,𝗦𝗽𝗼𝘁𝗶𝗳𝘆
# Speedtest
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/release/rule/Surge/Speedtest/Speedtest.list,𝗦𝗽𝗲𝗲𝗱𝘁𝗲𝘀𝘁
# Telegram
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram.list,𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺
# TikTok
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/TikTok.list,𝗣𝗥𝗢𝗫𝗬
# 哔哩哔哩
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/BiliBili/BiliBili.list,𝗕𝗶𝗹𝗶𝗕𝗶𝗹𝗶
# YouTube
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Video/YouTube.list,𝗦𝘁𝗿𝗲𝗮𝗺𝗶𝗻𝗴
# 国际流媒体
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Streaming.list,𝗣𝗥𝗢𝗫𝗬
# 全球加速
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Global.list,𝗣𝗥𝗢𝗫𝗬
# TestFlight
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/Apple/TestFlight.list,𝗣𝗥𝗢𝗫𝗬
# 苹果服务
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/Apple/Apple.list,𝗔𝗽𝗽𝗹𝗲
# 中国直连
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/China.list,𝗗𝗜𝗥𝗘𝗖𝗧
# Local Area Network 局域网
RULE-SET,LAN,𝗗𝗜𝗥𝗘𝗖𝗧
# GeoIP China
GEOIP,CN,𝗗𝗜𝗥𝗘𝗖𝗧
# 兜底规则
FINAL,𝗣𝗥𝗢𝗫𝗬,dns-failed
[Host]
# > DNS 映射
# IPv6
ip6-localhost = ::1
ip6-loopback = ::1
# DNS 服务器
taobao.com = server:223.6.6.6
*.taobao.com = server:223.6.6.6
tmall.com = server:223.6.6.6
*.tmall.com = server:223.6.6.6
jd.com = server:119.29.29.29
*.jd.com = server:119.28.28.28
*.qq.com = server:119.28.28.28
*.bilibili.com = server:119.29.29.29
*.tencent.com = server:119.28.28.28
*.alicdn.com = server:223.5.5.5
aliyun.com = server:223.5.5.5
*.aliyun.com = server:223.5.5.5
weixin.com = server:119.28.28.28
*.weixin.com = server:119.28.28.28
hdslb.com = server:119.29.29.29
163.com = server:119.29.29.29
*.163.com = server:119.29.29.29
126.com = server:119.29.29.29
*.126.com = server:119.29.29.29
*.126.net = server:119.29.29.29
*.127.net = server:119.29.29.29
*.netease.com = server:119.29.29.29
mi.com = server:119.29.29.29
*.mi.com = server:119.29.29.29
xiaomi.com = server:119.29.29.29
*.xiaomi.com = server:119.29.29.29
dler.cloud = server:180.76.76.76
dleris.best = server:180.76.76.76
routerlogin.net = server:syslib
_hotspot_.m2m = server:syslib
router.asus.com = server:syslib
hotspot.cslwifi.com = server:syslib
amplifi.lan = server:syslib
*.lan = server:syslib
[MITM]
# > VIF 对原始 TCP 流量进行解密
tcp-connection = true
# > CA 证书