From 13eb16ac17df069a4855d6d2d48225e856e43699 Mon Sep 17 00:00:00 2001 From: rubenb Date: Thu, 26 Oct 2023 14:10:06 +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 aa2d89b..69a8295 100644 --- a/roles/config-fail2ban/templates/jail.j2 +++ b/roles/config-fail2ban/templates/jail.j2 @@ -12,6 +12,8 @@ maxretry = {{ maxretry }} findtime = {{ findtime }} destemail = sysadmin@verdnatura.es sender = root@{{ ansible_nodename }}.verdnatura.es +banaction = nftables-multiport +banaction_allports = nftables-allports action = %(action_mwl)s #+++++++++++++++++++++++++++++++++++++