Tun Inbound

{
	"type": "tun",
	"tag": "tun-in",
	"interface_name": "tun0",
	"inet4_address": "172.19.0.1/30",
	"inet6_address": "fdfe:dcba:9876::1/128",
	"stack": "gvisor",
	"mtu": 9000,
	"auto_route": true,
	"strict_route": true,
	"endpoint_independent_nat": false,
	"sniff": true,
	"sniff_override_destination": true
}Code language: JSON / JSON with Comments (json)

Sing-Box’s auto_detect_interface feature allows it to bind outbound connections to the default network interface card (NIC) by default, which helps prevent routing loops when using the tun.