port/builtin: switch from iptables to nft for transparent routing - #613
Open
Akshitguptaa wants to merge 1 commit into
Open
port/builtin: switch from iptables to nft for transparent routing#613Akshitguptaa wants to merge 1 commit into
Akshitguptaa wants to merge 1 commit into
Conversation
AkihiroSuda
reviewed
Jul 23, 2026
Member
There was a problem hiding this comment.
Let's keep iptables mode too and test the both in CI
Contributor
Author
There was a problem hiding this comment.
kept iptables as a fallback.
CI runs test with both nft and iptables, and a separate one with only iptables (no nft) to cover the fallback path.
Signed-off-by: akshitguptaa <akshitguptaa29@gmail.com>
Akshitguptaa
force-pushed
the
fix-589-nft
branch
from
July 24, 2026 09:50
cf8b461 to
5cfb8e0
Compare
AkihiroSuda
reviewed
Jul 26, 2026
| // destined to transparent-bound source IPs are delivered locally. | ||
| // The firewall rules are implemented via nft, falling back to iptables if | ||
| // nft isn't available on the host (see setupTransparentRoutingNFT and | ||
| // setupTransparentRoutingIPTables). |
Member
There was a problem hiding this comment.
Can we have a CLI flag --source-ip-transparent-backend to explicitly set the backend?
Also, the backend should be visible in PortDriverInfo, perhaps as Extra map[string]string
See #607 for how to extend the API
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.
Fixes #589