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

fix: sort ports and merge adjacent ones in the nft rule #9010

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

smira
Copy link
Member

@smira smira commented Jul 12, 2024

Fixes #9009

When building a port interval set, sort the ports and merge adjacent ranges to prevent mismatch on the nftables side.

With address sets, this was already the case due to the way IPRange builder works, but ports need a manual implementation.

Fixes siderolabs#9009

When building a port interval set, sort the ports and merge adjacent
ranges to prevent mismatch on the nftables side.

With address sets, this was already the case due to the way IPRange
builder works, but ports need a manual implementation.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira
Copy link
Member Author

smira commented Jul 12, 2024

/m

@talos-bot talos-bot merged commit f14c479 into siderolabs:main Jul 12, 2024
48 checks passed
@smira smira mentioned this pull request Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

firewall ruleset with sequential port list results in blocked port
3 participants