← All notes

Docker Engine: nftables firewall backend

Answer: The rules for overlay networks have not yet been migrated from iptables.

When nftables can be used

For bridge networks, Docker creates nftables rules in the host's network namespace.

These options apply to both iptables and nftables.

Therefore, nftables cannot be enabled when the Docker daemon is running in Swarm mode.

For bridge and other network types, DNS rules are also created in the container's network namespace.

Rule creation can be disabled using the iptables and ip6tables daemon options.

Tables and user chains

For bridge networks, Docker creates two tables, one for IPv4 bridges and one for IPv6 bridges.

However, the tables and their rules are likely to change between Docker Engine releases.

In Docker's nftables implementation, there is no DOCKER-USER chain.

Disabling rule creation is not recommended for most users as it will likely break container networking.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Packet filtering and firewalls with nftables; Docker, Inc., Packet filtering and firewalls with nftables (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Packet filtering and firewalls with nftables; Docker, Inc., Packet filtering and firewalls with nftables (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.

Cite this

Permanent ID: iil:note:wrevs985

iinventedlight. 2026. "Docker Engine: nftables firewall backend." iinventedlight Library, iil:note:wrevs985, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-nftables/. License: CC-BY-4.0.

@misc{iil_note_wrevs985,
  author = {{iinventedlight}},
  title = {{Docker Engine: nftables firewall backend}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-24},
  url = {https://iinventedlight.com/library/notes/docker-nftables/},
  note = {Permanent ID iil:note:wrevs985. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-nftables.md.