From f40fe618f2a3efb7ea4dba35614f40db87903501 Mon Sep 17 00:00:00 2001 From: Adrian Almenar Date: Thu, 21 Jul 2022 17:18:30 +0200 Subject: fastnetmon: T4553: Allow to configure ban_time instead of 1900s default value --- data/templates/ids/fastnetmon.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'data/templates/ids') diff --git a/data/templates/ids/fastnetmon.j2 b/data/templates/ids/fastnetmon.j2 index c482002fa..e095b0786 100644 --- a/data/templates/ids/fastnetmon.j2 +++ b/data/templates/ids/fastnetmon.j2 @@ -15,7 +15,9 @@ ban_details_records_count = 500 ## How long (in seconds) we should keep an IP in blocked state ## If you set 0 here it completely disables unban capability -ban_time = 1900 +{% if ban_time is vyos_defined %} +ban_time = {{ ban_time }} +{% endif %} # Check if the attack is still active, before triggering an unban callback with this option # If the attack is still active, check each run of the unban watchdog -- cgit v1.2.3