Remove fail2ban
Keeps getting hit by stats. I should fix that at some point
This commit is contained in:
parent
f3126e34b9
commit
1f0e33acc8
4 changed files with 0 additions and 40 deletions
|
@ -1,4 +0,0 @@
|
||||||
[Definition]
|
|
||||||
|
|
||||||
failregex = ^.*haproxy\[[0-9]+\]: <HOST>:.*$
|
|
||||||
ignoreregex =
|
|
|
@ -1,8 +0,0 @@
|
||||||
[haproxy]
|
|
||||||
enabled = true
|
|
||||||
bantime = 600
|
|
||||||
findtime = 120
|
|
||||||
maxretry = 15
|
|
||||||
filter = haproxy-basic
|
|
||||||
logpath = /var/log/haproxy.log
|
|
||||||
port = http,https
|
|
|
@ -1,25 +0,0 @@
|
||||||
- name: Install fail2ban
|
|
||||||
apt:
|
|
||||||
name: fail2ban
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: fail2ban filter
|
|
||||||
template:
|
|
||||||
src: files/haproxy-fail2ban-filter.conf
|
|
||||||
dest: /etc/fail2ban/filter.d/haproxy-basic.conf
|
|
||||||
become: true
|
|
||||||
register: fail2ban_filter
|
|
||||||
|
|
||||||
- name: fail2ban jail
|
|
||||||
template:
|
|
||||||
src: files/haproxy-fail2ban-jail.conf
|
|
||||||
dest: /etc/fail2ban/jail.d/haproxy.conf
|
|
||||||
become: true
|
|
||||||
register: fail2ban_jail
|
|
||||||
|
|
||||||
- name: Restart fail2ban
|
|
||||||
service:
|
|
||||||
name: haproxy
|
|
||||||
state: restarted
|
|
||||||
become: true
|
|
||||||
when: fail2ban_filter.changed or fail2ban_jail.changed
|
|
|
@ -3,6 +3,3 @@
|
||||||
|
|
||||||
- name: Configure wireguard
|
- name: Configure wireguard
|
||||||
include: wireguard.yml
|
include: wireguard.yml
|
||||||
|
|
||||||
- name: Configure fail2ban
|
|
||||||
include: fail2ban.yml
|
|
||||||
|
|
Loading…
Reference in a new issue