-
Notifications
You must be signed in to change notification settings - Fork 313
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
feat(network.threat.manager): Update ipv6 flooding protection and fragment filtering #4840
Conversation
...c/main/java/org/eclipse/kura/internal/floodingprotection/FloodingProtectionConfigurator.java
Show resolved
Hide resolved
@@ -15,6 +15,7 @@ Import-Package: javax.ws.rs;version="2.0.1", | |||
org.eclipse.kura.core.configuration;version="[2.0,3.0)", | |||
org.eclipse.kura.core.configuration.metatype;version="[1.0,2.0)", | |||
org.eclipse.kura.net.admin;version="[1.0,3.0)", | |||
org.eclipse.kura.net.admin.ipv6;version="[1.0,2.0)", | |||
org.eclipse.kura.security;version="[1.1,2.0)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the minimum version in org.eclipse.kura.security;version="[1.1,2.0)",
should be changed to [1.2,2.0)
to ensure that the imported package has the latest introduced methods getFloodingProtectionFilterRulesIPv6
, getFloodingProtectionNatRulesIPv6
, and getFloodingProtectionMangleRulesIPv6
which are implemented here.
Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
Signed-off-by: pierantoniomerlino <[email protected]>
22f55ed
to
2b44d84
Compare
Signed-off-by: pierantoniomerlino <[email protected]>
…gment filtering (#4840) * First implementation of flooding protection ipv6 Signed-off-by: pierantoniomerlino <[email protected]> * Added headers filtering to flooding protection Signed-off-by: pierantoniomerlino <[email protected]> * Updated tests; minor fixes Signed-off-by: pierantoniomerlino <[email protected]> * Added fragment filtering feature Signed-off-by: pierantoniomerlino <[email protected]> * Updated tests Signed-off-by: pierantoniomerlino <[email protected]> * Refactored test in Gerkin style Signed-off-by: pierantoniomerlino <[email protected]> * Fixed service configuration Signed-off-by: pierantoniomerlino <[email protected]> * Updated dependency version Signed-off-by: pierantoniomerlino <[email protected]> * Updated net.firewall tests Signed-off-by: pierantoniomerlino <[email protected]> --------- Signed-off-by: pierantoniomerlino <[email protected]>
This PR updates the
org.eclipse.kura.network.threat.manager
for IPv6 and chagne the way the TCP fragments are filtered.Description of the solution adopted: The following rules are added for managing the flooding protection for IPv6 (see here):
Moreover, to properly filter the TCP fragments, the
/proc/sys/net/ipv4/ipfrag_low_thresh
,/proc/sys/net/ipv4/ipfrag_high_thresh
,/proc/sys/net/netfilter/nf_conntrack_frag6_low_thresh
and/proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh
are configured. See here, here and here for more details about fragment filtering.