mirror of
https://github.com/Dichgrem/singbox-example.git
synced 2025-07-31 00:59:32 -04:00
49 lines
1.1 KiB
YAML
49 lines
1.1 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,
|
|
},
|
|
} #
|
|
|