mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-14 00:51:12 +03:00
44 lines
886 B
JSON
44 lines
886 B
JSON
{
|
|
"log": {
|
|
"level": "info"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "local",
|
|
"tag": "default"
|
|
}
|
|
]
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "socks",
|
|
"tag": "socks-in",
|
|
"listen_port": 7897
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "bandwidth-limiter",
|
|
"tag": "bandwidth-limiter",
|
|
"strategy": "global",
|
|
"mode": "bidirectional", // download, upload
|
|
"speed": "2MB", // 100KB, 1GB, etc.
|
|
"flow_keys": ["user", "destination"], // values: user, destination, ip, hwid, mux
|
|
"route": { // https://sing-box.sagernet.org/configuration/route/#structure
|
|
"rules": [],
|
|
"final": "direct"
|
|
}
|
|
}
|
|
],
|
|
"route": {
|
|
"final": "bandwidth-limiter",
|
|
"default_domain_resolver": "default",
|
|
"auto_detect_interface": true
|
|
}
|
|
}
|