add fail2ban class
This commit is contained in:
12
templates/fail2ban/010_jail.d_haproxy.conf.erb
Normal file
12
templates/fail2ban/010_jail.d_haproxy.conf.erb
Normal 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
|
||||
Reference in New Issue
Block a user