Skip to content

Commit 98d2062

Browse files
authored
feat(RED-DA): default enable flooding protection (#5847)
* feat: enable flooding protection in snapshot0 * feat: update metatype according to new default
1 parent 60096aa commit 98d2062

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

kura/distrib/src/main/resources/common/snapshots/snapshot_0.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,4 +391,14 @@ NETWORK_CONFIGURATION
391391
</esf:property>
392392
</esf:properties>
393393
</esf:configuration>
394+
<esf:configuration pid="org.eclipse.kura.internal.floodingprotection.FloodingProtectionConfigurator">
395+
<esf:properties>
396+
<esf:property array="false" encrypted="false" name="flooding.protection.enabled.ipv6" type="Boolean">
397+
<esf:value>true</esf:value>
398+
</esf:property>
399+
<esf:property array="false" encrypted="false" name="flooding.protection.enabled" type="Boolean">
400+
<esf:value>true</esf:value>
401+
</esf:property>
402+
</esf:properties>
403+
</esf:configuration>
394404
</esf:configurations>

kura/org.eclipse.kura.network.threat.manager/src/main/java/org/eclipse/kura/internal/floodingprotection/FloodingProtectionOptions.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*******************************************************************************
22
* Copyright (c) 2021, 2025 Eurotech and/or its affiliates and others
3-
*
3+
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
66
* which is available at https://www.eclipse.org/legal/epl-2.0/
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
9-
*
9+
*
1010
* Contributors:
1111
* Eurotech
1212
******************************************************************************/
@@ -86,8 +86,8 @@ public class FloodingProtectionOptions {
8686
+ "If the device does not support IPv6, this property will be ignored. "
8787
+ "In kernel versions less than 6.x, after disabling the feature by setting this field to false, "
8888
+ "a reboot may be needed to completely disable the filtering.";
89-
private static final boolean FP_ENABLED_DEFAULT_IPV4 = false;
90-
private static final boolean FP_ENABLED_DEFAULT_IPV6 = false;
89+
private static final boolean FP_ENABLED_DEFAULT_IPV4 = true;
90+
private static final boolean FP_ENABLED_DEFAULT_IPV6 = true;
9191

9292
private Map<String, Object> properties = new HashMap<>();
9393

0 commit comments

Comments
 (0)