From b2e91d7d6d1a4d1611a4bfde9b23fafcfd45c838 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 16 Oct 2020 19:15:38 +0100 Subject: [PATCH] Update haproxy fail2ban jail to use systemd for logs --- ansible/roles/gateway/files/haproxy-fail2ban-jail.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/gateway/files/haproxy-fail2ban-jail.conf b/ansible/roles/gateway/files/haproxy-fail2ban-jail.conf index f19b266..e4d3bc2 100644 --- a/ansible/roles/gateway/files/haproxy-fail2ban-jail.conf +++ b/ansible/roles/gateway/files/haproxy-fail2ban-jail.conf @@ -4,5 +4,7 @@ bantime = 600 findtime = 120 maxretry = 15 filter = haproxy-basic -logpath = /var/log/haproxy.log +backend = systemd +journalmatch = _COMM=haproxy port = http,https +ignoreip = {{ wireguard.cidr }}