mirror of
https://github.com/Dichgrem/singbox-example.git
synced 2025-08-01 17:49:30 -04:00
73 lines
1.2 KiB
YAML
73 lines
1.2 KiB
YAML
{
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"tag": "google",
|
|
"address": "tls://8.8.8.8"
|
|
},
|
|
{
|
|
"tag": "local",
|
|
"address": "223.5.5.5",
|
|
"detour": "direct"
|
|
},
|
|
{
|
|
"tag": "remote",
|
|
"address": "fakeip"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"outbound": "any",
|
|
"server": "local"
|
|
},
|
|
{
|
|
"query_type": [
|
|
"A",
|
|
"AAAA"
|
|
],
|
|
"server": "remote"
|
|
}
|
|
],
|
|
"fakeip": {
|
|
"enabled": true,
|
|
"inet4_range": "198.18.0.0/15",
|
|
"inet6_range": "fc00::/18"
|
|
},
|
|
"independent_cache": true
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "tun",
|
|
"inet4_address": "172.19.0.1/30",
|
|
"inet6_address": "fdfe:dcba:9876::1/126",
|
|
"auto_route": true,
|
|
"strict_route": true
|
|
}
|
|
],
|
|
"outbounds": [
|
|
// ...
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "dns",
|
|
"tag": "dns-out"
|
|
}
|
|
],
|
|
"route": {
|
|
"rules": [
|
|
{
|
|
"protocol": "dns",
|
|
"outbound": "dns-out"
|
|
},
|
|
{
|
|
"geoip": [
|
|
"private"
|
|
],
|
|
"outbound": "direct"
|
|
}
|
|
],
|
|
"auto_detect_interface": true
|
|
}
|
|
} |