Merge pull request #13 from oreshkin75/add-sing-box-readme

add sing-box readme
This commit is contained in:
Andrevich 2024-10-15 14:00:17 +04:00 committed by GitHub
commit e3360a6630
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,46 @@
]
}
}
```
## Пример использования Sing-Box
```json
{
"route": {
"final": "direct",
"auto_detect_interface": true,
"rules": [
{
"rule_set": [
"refilter-domains",
"refilter-ips"
],
"outbound": "proxy"
}
],
"rule_set": [
{
"tag": "refilter-domains",
"type": "remote",
"format": "binary",
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.srs",
"download_detour": "direct"
},
{
"tag": "refilter-ips",
"type": "remote",
"format": "binary",
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.srs",
"download_detour": "direct"
}
]
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}
```
Пример RoutingA для V2RayA:
`default: direct`
@ -117,6 +156,47 @@ protocol bgp refilter {
}
}
```
## Sing-box config example
```json
{
"route": {
"final": "direct",
"auto_detect_interface": true,
"rules": [
{
"rule_set": [
"refilter-domains",
"refilter-ips"
],
"outbound": "proxy"
}
],
"rule_set": [
{
"tag": "refilter-domains",
"type": "remote",
"format": "binary",
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.srs",
"download_detour": "direct"
},
{
"tag": "refilter-ips",
"type": "remote",
"format": "binary",
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.srs",
"download_detour": "direct"
}
]
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}
```
RoutingA of V2RayA Example:
`default: direct`
`ip(geoip:refilter)->proxy`