From 0f6980f66ec565c1aca9d1e27fa9f9cfa0ee4f43 Mon Sep 17 00:00:00 2001 From: rubenb Date: Thu, 26 Oct 2023 14:30:23 +0200 Subject: [PATCH] add banactions --- roles/config-fail2ban/templates/jail.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/config-fail2ban/templates/jail.j2 b/roles/config-fail2ban/templates/jail.j2 index 69a8295..55ff8ec 100644 --- a/roles/config-fail2ban/templates/jail.j2 +++ b/roles/config-fail2ban/templates/jail.j2 @@ -33,6 +33,8 @@ port = {{ jail.port | join(' ') }} maxretry = {{ jail.maxretry }} bantime = {{ jail.bantime }} findtime = {{ jail.findtime }} +banaction = nftables-multiport +banaction_allports = nftables-allports action = {{ jail.action }} {% endfor %} #+++++++++++++++++++++++++++++++++++++