Install fail2ban
This commit is contained in:
4
ansible/roles/gateway/files/haproxy-fail2ban-filter.conf
Normal file
4
ansible/roles/gateway/files/haproxy-fail2ban-filter.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[Definition]
|
||||
|
||||
failregex = ^.*haproxy\[[0-9]+\]: <HOST>:.*$
|
||||
ignoreregex =
|
8
ansible/roles/gateway/files/haproxy-fail2ban-jail.conf
Normal file
8
ansible/roles/gateway/files/haproxy-fail2ban-jail.conf
Normal file
@ -0,0 +1,8 @@
|
||||
[haproxy]
|
||||
enabled = true
|
||||
bantime = 600
|
||||
findtime = 120
|
||||
maxretry = 10
|
||||
filter = haproxy-basic
|
||||
logpath = /var/log/haproxy.log
|
||||
port = http,https
|
Reference in New Issue
Block a user