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
| {
"log": {
"disabled": false,
"level": "info",
"output": "/root/box.log",
"timestamp": true
},
"inbounds": [
{
"type": "socks",
"tag": "socks-in",
"listen": "::",
"listen_port": 443,
"tcp_fast_open": true,
"tcp_multi_path": true,
"sniff": true,
"sniff_override_destination": true,
"users": [
{
"username": "fangxi",
"password": "fangxi"
}
]
},
{
"type": "shadowsocks",
"tag": "ss-in",
"listen": "::",
"listen_port": 80,
"method": "aes-128-gcm",
"password": "", //sing-box generate rand 16 --base64
"tcp_multi_path": true,
"tcp_fast_open": true,
"sniff": true,
"sniff_override_destination": true,
"udp_disable_domain_unmapping": true,
"multiplex": {
"enabled": true,
"padding": true
}
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
}
],
"route": {
"rules": [
{
"action": "sniff"
},
{
"protocol": [
"bittorrent"
],
"action": "reject",
"method": "default"
},
{
"inbound": [
"ss-in"
],
"outbound": "direct"
},
{
"inbound": [
"ss-in"
],
"outbound": "direct"
},
{
"rule_set": [
"geoip-cn",
"geosite-geolocation-cn",
"privateip",
"ads"
],
"action": "reject",
"method": "default"
},
{
"domain": [
"www.gstatic.com"
],
"outbound": "direct"
}
],
"rule_set": [
{
"type": "remote",
"tag": "privateip",
"format": "binary",
"url": "https://raw.githubusercontent.com/DustinWin/ruleset_geodata/sing-box-ruleset/privateip.srs",
"download_detour": "direct"
},
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
"download_detour": "direct"
},
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
"download_detour": "direct"
},
{
"type": "remote",
"tag": "geoip-jp",
"format": "binary",
"url": "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/srs/jp.srs",
"download_detour": "direct"
},
{
"type": "remote",
"tag": "geosite-abema",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-abema.srs",
"download_detour": "direct"
},
{
"type": "remote",
"tag": "geosite-dmm",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-dmm.srs",
"download_detour": "direct"
},
{
"type": "remote",
"tag": "geosite-dmm-porn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-dmm-porn.srs",
"download_detour": "direct"
},
{
"type": "remote",
"tag": "ads",
"format": "binary",
"url": "https://raw.githubusercontent.com/DustinWin/ruleset_geodata/sing-box-ruleset/ads.srs",
"download_detour": "direct"
}
]
}
}
|