Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util/linuxfw: fix IPv6 nat for nftables (cherry-pick) #12123

Merged
merged 1 commit into from
May 14, 2024

Conversation

irbekrm
Copy link
Contributor

@irbekrm irbekrm commented May 14, 2024

Cherry-pick of #12009

* util/linuxfw: fix IPv6 NAT availability check for nftables

When running firewall in nftables mode,
there is no need for a separate NAT availability check
(unlike with iptables, there are no hosts that support nftables, but not IPv6 NAT - see #11353).
This change fixes a firewall NAT availability check that was using the no-longer set ipv6NATAvailable field
by removing the field and using a method that, for nftables, just checks that IPv6 is available.

Updates #12008

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
(cherry picked from commit 7ef2f72)
@irbekrm irbekrm changed the title Irbekrm/ch ipv6nat util/linuxfw: fix IPv6 nat for nftables (cherry-pick) May 14, 2024
@irbekrm irbekrm requested a review from nickoneill May 14, 2024 08:00
@irbekrm irbekrm merged commit 9d2768a into release-branch/1.66 May 14, 2024
45 checks passed
@irbekrm irbekrm deleted the irbekrm/ch_ipv6nat branch May 14, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants