Repository navigation
fix(classifier): spell the dstnat chain's priority as -100 so nft before 1.0.9 loads the table - #3560
Merged
Conversation
…ore 1.0.9 loads the table (#3179) The classifier table's dstnat chain declared `type nat hook output priority dstnat`. nft up to 1.0.8 pairs the name `dstnat` with the prerouting hook only and refuses it on output with "invalid priority expression value in this context" (the output pairing arrived in nftables 1.0.9, upstream commit 8beafab7, and nft's documented matrix still lists prerouting alone). One refused chain fails the whole transaction, so on Debian 12 (nft 1.0.6) and Ubuntu 22.04 (nft 1.0.2) `min finalize-install` installed no classifier and every host-address box went without per-box egress enforcement. The chain now says `priority -100`, the value `dstnat` names, which every nft accepts on every hook; 1.0.9 and later load the same chain as before. The script is the one source for both the host's table and the guest's, which minimald renders through it, so both are fixed. Tests: a rendered-table check in minimald that every base chain of the native and the guest render names its priority in a form nft before 1.0.9 accepts on its hook, with the name/hook matrix pinned on its own, and install_test.sh asserts the numeric spelling and that no chain names dstnat or srcnat off the one hook old nft takes it on. Refs: gominimal/inbox#1196 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 6416376)
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Contributor
|
Approved: no findings at Nothing to do. Clobber: none seen. |
norrietaylor
approved these changes
Nov 18, 2026
norrietaylor
approved these changes
Nov 18, 2026
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.
Backport of #3179 to
release/0.7.x.Squash-merge this PR and keep the PR title as the subject. The cherry-picked commit keeps the source subject.