diff --git a/README.md b/README.md index 22f5a74..cc1ba40 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ fail2ban_services: protocol: tcp (optional) action: action_ (optional) banaction: iptables-multiport (optional) + bantime: 600 (optional) findtime: 600 (optional) ``` diff --git a/templates/etc/fail2ban/jail.local.j2 b/templates/etc/fail2ban/jail.local.j2 index f4b8556..32656a6 100644 --- a/templates/etc/fail2ban/jail.local.j2 +++ b/templates/etc/fail2ban/jail.local.j2 @@ -107,6 +107,9 @@ protocol = {{ service.protocol }} {% if service.findtime is defined %} findtime = {{ service.findtime }} {% endif %} +{% if service.bantime is defined %} +bantime = {{ service.bantime }} +{% endif %} {% if service.action is defined %} action = %({{ service.action }})s {% endif %}