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(network.threat.manager): Fix flooding protection backport #4830

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

pierantoniomerlino
Copy link
Contributor

This PR adds a default set of rules for the firewall filter table if the flooding protection is enabled.

Description of the solution adopted: The network.threat.manager adds a set of firewall rules for flooding protection. These rules are mainly applied to the mangle table, but there are situations where more rules are needed to the filter tables. The current FirewalConfigurationServiceImpl.addFloodingProtectionRules method doesn't allow this, so this PR adds a basic set of default rules to the filter tables when the flooding protection is enabled.

The code is replicated both in the old org.eclipse.kura.net.admin and the new org.eclipse.kura.net.admin.firewall.

@pierantoniomerlino
Copy link
Contributor Author

The Sonar checks fail for some code duplication. This can acceptable since it's a portion duplicated in the old and new firewall implementation.

@pierantoniomerlino pierantoniomerlino force-pushed the fix_flooding_protection_backport branch from eb26ec9 to 43d6c70 Compare September 7, 2023 12:48
@pierantoniomerlino pierantoniomerlino merged commit ea9663a into release-5.3.0 Sep 8, 2023
@pierantoniomerlino pierantoniomerlino deleted the fix_flooding_protection_backport branch September 8, 2023 09:41
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