---
title: "Docker Engine v28: Hardening Container Networking by Default"
description: "Docker Engine 28.0 now drops inbound traffic to unpublished container ports by default, closing a long-standing gap where Linux hosts with a permissive iptables FORWARD chain and IP forwarding enabled let machines on the same LAN reach container IPs by adding a route to the bridge subnet."
url: "https://swe.quest/articles/docker-engine-v28-hardening-container-networking-by-default-f5fb2c080b5aa0c4"
canonical: "https://www.docker.com/blog/docker-engine-28-hardening-container-networking-by-default/"
source: "Docker"
published: "2025-02-28"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["containers","networking","security","linux"]
---

# Docker Engine v28: Hardening Container Networking by Default

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-02-28, 6 min read, Release. Original: [https://www.docker.com/blog/docker-engine-28-hardening-container-networking-by-default/](https://www.docker.com/blog/docker-engine-28-hardening-container-networking-by-default/)

## Summary

Docker Engine 28.0 now drops inbound traffic to unpublished container ports by default, closing a long-standing gap where Linux hosts with a permissive iptables FORWARD chain and IP forwarding enabled let machines on the same LAN reach container IPs by adding a route to the bridge subnet. Published ports and host-local access keep working, but setups that relied on direct container IP access from other machines will break. Those users can opt out with the ip-forward-no-drop daemon setting or create a bridge network with gateway\_mode\_ipv4=nat-unprotected. Before upgrading, inspect FORWARD chain policies with iptables -L and test in staging. Docker Desktop is not affected.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)

## Prerequisites

- iptables basics
- Docker bridge networking ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- NAT and IP forwarding ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))

## Keywords

Docker Engine 28, iptables, FORWARD chain, nat-unprotected, ip-forward-no-drop, RFC1918

## Related posts

- [Docker Engine v29: Foundational Updates for the Future](https://swe.quest/articles/docker-engine-v29-foundational-updates-for-the-future-bd0542aab28ccad9.md): Docker · 2025-11-11 · Medium · 6 min read · Containers, Linux, Networking, Go
  Docker Engine v29 is a foundational release with four under-the-hood changes.
- [Throwing Out The Phonebook](https://swe.quest/articles/throwing-out-the-phonebook-38542538ac98046f.md): Fly.io · 2026-11-13 · Hard · 10 min read · Networking, Linux, Distributed systems, Deployment, System design
  Fly.io rebuilt 6PN, its private IPv6 network between Fly Machines, replacing a fleet-wide eBPF map of every migrated Machine's location (hundreds of thousands of entries kept in sync from Corrosion's gossip-replicated SQLite) with lazy, on-demand routes.
- [Docker Desktop 4.34: MSI Installer GA, Upgraded Host Networking, and Powerful Enhancements for Boosted Productivity & Administration](https://swe.quest/articles/docker-desktop-4-34-msi-installer-ga-upgraded-host-networking-and-powerful-867a99a0a4ebe137.md): Docker · 2024-09-03 · Medium · 8 min read · Containers, Developer tools, Networking, Identity & auth
  Docker Desktop 4.34 makes the MSI installer generally available for Docker Business, with silent installs and an \`--allowed-org\` flag that writes a Windows registry key to enforce sign-in to a specific organization.
- [Docker Security Advisory: AuthZ Plugin Bypass Regression in Docker Engine](https://swe.quest/articles/docker-security-advisory-authz-plugin-bypass-regression-in-docker-engine-a88edacc9440d46e.md): Docker · 2024-07-23 · Medium · 3 min read · Containers, Identity & auth, Vulnerability research, Security
  Docker Engine v19.03 and later regressed on a 2018 authorization-plugin bypass (CVE-2024-41110): an API request with Content-Length set to 0 causes the daemon to forward the request to the AuthZ plugin without its body, so a plugin not set to deny by default may approve it and allow privilege escalation.
- [WireGuard at Modal: Static IPs for serverless containers](https://swe.quest/articles/wireguard-at-modal-static-ips-for-serverless-containers-f9b6b3f9bd58963d.md): Modal · 2024-12-02 · Hard · 14 min read · Networking, Linux, Serverless, Go, Multi-tenancy
  Modal built vprox, a high-availability Go VPN proxy on WireGuard, to give multi-tenant serverless containers static outbound IPv4 addresses for things like database IP allowlists.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
