A CalDAV bridge on my host answered every local request instantly, and timed out from every container. Same port, same process, same uptime. From a shell on the box it was instant; from inside Docker it hung until timeout.
I chased a CalDAV problem, then an application problem, before working my way back to the actual fault: Docker's FORWARD chain policy was dropping the packets before they ever reached the socket.
The tell that would've saved me the evening: the bridge logs showed every host-side test and nothing from the containers — no malformed request, no auth failure, no half-open handshake. An empty log plus a client that "can't connect" means the packet died before the socket. There is no application-level explanation for that. It's routing or filtering, full stop.
Two things I learned the hard way:
- Auditing INPUT is not auditing Docker. Published ports and container-to-host flows are a FORWARD story, and Docker's default FORWARD policy is DROP.
- Binding to 0.0.0.0 proves nothing about reachability. I moved the bridge off loopback to 0.0.0.0 first — it changed nothing, because the listener was never the constraint. A bind address widens which addresses a socket answers on; it does not widen which packets are allowed to reach the network stack.
The fix wasn't a firewall exception. It was moving the service into the Docker network: the bridge joined the compose stack, dropped its host port, and got addressed by service name. Packets now stay inside the bridge network, where Docker's own rules already permit container-to-container traffic. No host listener left to reason about, no standing exception to remember forever.
The mental model that made the whole thing obvious: there's a boundary here, and I have to decide which side the service belongs on. The bridge's only callers were containers — it was sitting on the wrong side of a line I'd drawn without noticing.
Full walk-through (with the diagnostic checklist): https://igornews.com/2026/11/16/docker-forward-drop-container-to-host-traffic/
Top comments (0)