Repository navigation
use the nft iptables backend in the image - #88
Merged
Merged
Conversation
Worker network setup and the CNI plugins call iptables and ip6tables. Those packages currently point at xtables-legacy-multi, which cannot open the nat table on nftables-only hosts (concourse/concourse#9449). iptables-nft and iptables-wrappers point the same commands at iptables-wrapper. The wrapper uses the nft backend when the host does, and the legacy binaries remain installed for hosts that still use them. Legacy was pinned after iptables 1.8.7 (nf_tables) failed to load the conntrack match (concourse-docker#86). Wolfi iptables 1.8.13 ships both backends. A wolfi-base install of this list reports `iptables v1.8.13 (nf_tables)`.
Author
|
@taylorsilva please review |
taylorsilva
approved these changes
Oct 5, 2026
taylorsilva
left a comment
Member
There was a problem hiding this comment.
LGTM - Thanks for suggesting this package change!
Member
|
Made the same change over in our CI: concourse/ci@6fec55f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Install
iptables-nftandiptables-wrappersinstead ofiptablesandip6tables.iproute2still depends on theiptablespackage, so the legacy binaries stay in the image.iptables-wrappersowns/usr/bin/iptablesand/usr/bin/ip6tables. On first use the wrapper selects the nft backend when that is the host's mode, and the legacy binaries remain available when the host is still on legacy rules.closes concourse/concourse#9449
buult local image with iptables-nft and iptables-wrappers

Why
#9449 is
ip6tables (legacy)failing onip6tables -t natduring bridge masquerade. The worker and the CNI plugins already exec those command names. They do not link Netfilter themselves. The image is what selects the legacy binary.A rebuild of
concourse/concourse:8.2.4that deletesip6tablesand adds these two packages is already in use. I reproduced the package result on currentcgr.dev/chainguard/wolfi-basewithiproute2 iptables-nft iptables-wrappers:iptables1.8.13-r4 is pulled in byiproute2ip6tablespackage is not installed/usr/bin/iptablesand/usr/bin/ip6tablespoint atiptables-wrapperiptables --versionandip6tables --versionreportv1.8.13 (nf_tables)ip6tables -t nat -S --waitexits 0This kernel still has the legacy nat table, so the original "table nat does not exist" crash was not reproduced here. The commands no longer resolve to the legacy binary that crash uses.
History
d256049 pinned iptables-legacy after
iptables v1.8.7 (nf_tables)could not load theconntrackmatch (concourse-docker#86, concourse#8558). Wolfi iptables 1.8.13 ships both backends, and the wrapper chooses at runtime.Relation to concourse/concourse#9746
That draft adds an
inet concoursetable through thenftbinary. This image does not shipnft, so that path falls back to the legacyiptablescommands and the #9449 crash remains. This package change is the fix. I am closing that draft.