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

Pin iptables to 1.8.9 (legacy) #2252

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Pin iptables to 1.8.9 (legacy) #2252

merged 1 commit into from
Mar 18, 2024

Conversation

cywang117
Copy link
Contributor

@cywang117 cywang117 commented Mar 18, 2024

With Alpine 3.19, iptables gets bumped to 1.8.10 which uses nftables. The host OS still uses iptables 1.8.7 (legacy), and the compatibility of legacy & nftables is questionable. At the minimum, nftables-created rules don't appear when running iptables -L using legacy iptables, and this is confusing for users. Worst case scenario, rules made with iptables-nftables don't apply at all, leaving the device vulnerable.

See: https://balena.zulipchat.com/#narrow/stream/345889-balena-io.2Fos/topic/iptables.20host.20vs.2E.20nftables.20Supervisor
Change-type: patch

Tested by running on a device using npm run sync and verifying iptables version using iptables -V. Also checked rules were still applied and iptables otherwise functions properly using iptables -L, both from host and in Supervisor container.

With Alpine 3.19, iptables gets bumped to 1.8.10 which uses nftables.
The host OS still uses iptables 1.8.7 (legacy), and we should
use legacy as well until the OS uses nftables.

See: https://balena.zulipchat.com/#narrow/stream/345889-balena-io.2Fos/topic/iptables.20host.20vs.2E.20nftables.20Supervisor
Change-type: patch
Signed-off-by: Christina Ying Wang <[email protected]>
@cywang117 cywang117 marked this pull request as ready for review March 18, 2024 21:17
@cywang117 cywang117 requested a review from pipex March 18, 2024 21:24
@flowzone-app flowzone-app bot merged commit 77e596c into master Mar 18, 2024
54 checks passed
@flowzone-app flowzone-app bot deleted the pin-iptables-to-legacy branch March 18, 2024 21:36
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.

2 participants