Skip to content

Commit 5ce7d9d

Browse files
authored
(update)sing-box rule
1 parent 73a4fd7 commit 5ce7d9d

File tree

1 file changed

+65
-14
lines changed

1 file changed

+65
-14
lines changed

config/appprofile.example.php

+65-14
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,23 @@
5757
'detour' => 'direct',
5858
],
5959
[
60-
'tag' => 'resolver',
60+
'tag' => 'alidns',
6161
'address' => 'quic://223.6.6.6',
62-
'strategy' => 'ipv4_only',
6362
'detour' => 'direct',
6463
],
6564
[
6665
'tag' => 'cloudflare',
67-
'address' => 'tls://one.one.one.one',
68-
'address_resolver' => 'resolver',
69-
'address_strategy' => 'ipv4_only',
70-
'strategy' => 'prefer_ipv4',
66+
'address' => 'tls://1.1.1.1',
7167
'detour' => 'select',
7268
],
7369
[
7470
'tag' => 'google',
7571
'address' => 'tls://dns.google',
76-
'address_resolver' => 'resolver',
72+
'address_resolver' => 'alidns',
7773
'address_strategy' => 'ipv4_only',
7874
'strategy' => 'prefer_ipv4',
7975
'detour' => 'select',
76+
'client_subnet' => '111.222.0.0',
8077
],
8178
[
8279
'tag' => 'fakeip',
@@ -96,9 +93,26 @@
9693
'clash_mode' => 'Global',
9794
'server' => 'fakeip',
9895
],
96+
[
97+
'query_type' => [
98+
'SVCB',
99+
'HTTPS',
100+
],
101+
'server' => 'block',
102+
],
103+
[
104+
'rule_set' => [
105+
'china-site',
106+
'geosite-geolocation-cn',
107+
'geosite-cn',
108+
'geosite-netease',
109+
'geosite-bilibili',
110+
],
111+
'server' => 'local',
112+
],
99113
[
100114
'clash_mode' => 'Rule',
101-
'server' => 'fakeip',
115+
'server' => 'cloudflare',
102116
],
103117
[
104118
'clash_mode' => 'Direct',
@@ -169,31 +183,44 @@
169183
'outbound' => 'direct',
170184
],
171185
[
172-
'clash_mode' => 'Rule',
173186
'rule_set' => [
174187
'geosite-geolocation-!cn',
175188
],
176189
'outbound' => 'select',
177190
],
178191
[
179-
'clash_mode' => 'Rule',
180192
'rule_set' => [
181193
'geoip-cn',
182194
],
183195
'outbound' => 'direct',
184196
],
185197
[
186-
'clash_mode' => 'Rule',
187198
'rule_set' => [
199+
'china-site',
188200
'geosite-geolocation-cn',
201+
'geosite-cn',
202+
'geosite-netease',
203+
'geosite-bilibili',
189204
],
190205
'outbound' => 'direct',
191206
],
192207
[
193-
'clash_mode' => 'Rule',
194-
'rule_set' => [
195-
'geosite-cn',
208+
'type' => 'logical',
209+
'mode' => 'and',
210+
'rules' => [
211+
[
212+
'rule_set' => [
213+
'geosite-geolocation-!cn',
214+
],
215+
'invert' => true,
216+
],
217+
[
218+
'rule_set' => [
219+
'geoip-cn',
220+
],
221+
]
196222
],
223+
'action' => 'route',
197224
'outbound' => 'direct',
198225
],
199226
[
@@ -227,6 +254,14 @@
227254
'download_detour' => 'auto',
228255
'update_interval' => '1d',
229256
],
257+
[
258+
'tag' => 'china-site',
259+
'type' => 'remote',
260+
'format' => 'binary',
261+
'url' => 'https://github.com/77-QiQi/sing-box-rule-set/releases/download/china-rule-set/china_site.srs',
262+
'download_detour' => 'auto',
263+
'update_interval' => '1d',
264+
],
230265
[
231266
'tag' => 'geosite-geolocation-cn',
232267
'type' => 'remote',
@@ -243,6 +278,22 @@
243278
'download_detour' => 'auto',
244279
'update_interval' => '1d',
245280
],
281+
[
282+
'tag' => 'geosite-netease',
283+
'type' => 'remote',
284+
'format' => 'binary',
285+
'url' => 'https://' . $_ENV['jsdelivr_url'] . '/gh/SagerNet/sing-geosite@rule-set/geosite-netease.srs',
286+
'download_detour' => 'auto',
287+
'update_interval' => '1d',
288+
],
289+
[
290+
'tag' => 'geosite-bilibili',
291+
'type' => 'remote',
292+
'format' => 'binary',
293+
'url' => 'https://' . $_ENV['jsdelivr_url'] . '/gh/SagerNet/sing-geosite@rule-set/geosite-bilibili.srs',
294+
'download_detour' => 'auto',
295+
'update_interval' => '1d',
296+
],
246297
],
247298
'final' => 'select',
248299
'auto_detect_interface' => true,

0 commit comments

Comments
 (0)