Databases don't belong on a public IPA tunnel between servers.Why WireGuardWireGuard is small, fast and easy to configure. Each server gets a private address, for example in 10.200.0.0/24.Encryption between nodes by defaultInternal ports stay closed from the outsidePostgres on 5432–5434Redis on 6379–6381A single open UDP portServers only see each other through the tunnel.The stepsGenerate keys on every node.Add the peers to wg0.conf.Allow only the private subnet in the firewall.If a port doesn't need to be public, don't publish it.The result: the app talks to its databases only through the tunnel.Published:October 30, 2026