add fail2ban class

This commit is contained in:
Arne Teuke
2025-02-14 12:01:01 +01:00
parent 78f5f6d87c
commit 20dba070d6
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
################################################################################
##### fail2ban jail for haproxy.conf created by Puppet #####
################################################################################
[haproxy-http-auth]
enabled = true
filter = haproxy
action = iptables[name=haproxy, port="http,https", protocol=tcp]
logpath = /var/log/haproxy.log
maxretry = 5
findtime = 600
bantime = 3600