Direct at home, tunnel outside
This is the clearest expression of Orange. The same logical destination keeps the same name, but the transport changes automatically depending on where the user is.
# DNS: static mapping for home devices [dns.rules] "nas.home" = { host = "192.168.1.100" } "router.home" = { host = "192.168.1.1" } "pi.home" = { host = "192.168.1.50" } "*.home.lab" = { to = ["192.168.1.1"] } "default" = { to = ["8.8.8.8", "1.1.1.1"] } # Routing: direct when home, tunnel when outside [[proxy.rules]] geoip = "private" direct = true [[proxy.rules]] domain = "*.home.lab" when = { src = "192.168.1.0/24" } direct = true [[proxy.rules]] domain = "*.home.lab" to = "wg-home"