summaryrefslogtreecommitdiff
path: root/interface-definitions/service-ids-ddos-protection.xml.in
diff options
context:
space:
mode:
authorAdrian Almenar <adrian@tecnocratica.net>2022-07-21 17:18:30 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-21 19:05:48 +0200
commitf40fe618f2a3efb7ea4dba35614f40db87903501 (patch)
treef359f5c8096fd4fb1d1261295839b3bd73a78b6e /interface-definitions/service-ids-ddos-protection.xml.in
parentf424d84f41791949a2ada417ecdd45a3b842799a (diff)
downloadvyos-1x-f40fe618f2a3efb7ea4dba35614f40db87903501.tar.gz
vyos-1x-f40fe618f2a3efb7ea4dba35614f40db87903501.zip
fastnetmon: T4553: Allow to configure ban_time instead of 1900s default value
Diffstat (limited to 'interface-definitions/service-ids-ddos-protection.xml.in')
-rw-r--r--interface-definitions/service-ids-ddos-protection.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/interface-definitions/service-ids-ddos-protection.xml.in b/interface-definitions/service-ids-ddos-protection.xml.in
index 5e65d3106..135fa2ffa 100644
--- a/interface-definitions/service-ids-ddos-protection.xml.in
+++ b/interface-definitions/service-ids-ddos-protection.xml.in
@@ -18,6 +18,19 @@
<help>Path to fastnetmon alert script</help>
</properties>
</leafNode>
+ <leafNode name="ban-time">
+ <properties>
+ <help>Time to ban (in seconds) an ip</help>
+ <valueHelp>
+ <format>u32:0-4294967294</format>
+ <description>Time to ban (in seconds) an ip</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-4294967294"/>
+ </constraint>
+ </properties>
+ <defaultValue>1900</defaultValue>
+ </leafNode>
<leafNode name="direction">
<properties>
<help>Direction for processing traffic</help>