Files
my-singbox-example/config/client/example-rule/tun-ipv4only.yaml
2025-07-19 11:41:29 +08:00

37 lines
793 B
YAML

{
"dns":
{
"servers":
[
{ "tag": "google", "address": "tls://8.8.8.8" },
{ "tag": "local", "address": "223.5.5.5", "detour": "direct" },
],
"rules": [{ "outbound": "any", "server": "local" }],
"strategy": "ipv4_only",
},
"inbounds":
[
{
"type": "tun",
"inet4_address": "172.19.0.1/30",
"auto_route": true,
"strict_route": false,
},
],
"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,
},
}