From 73279cf7a9e962ba90f533dd81cee8e85b064169 Mon Sep 17 00:00:00 2001 From: jbandholz <20779634+jbandholz@users.noreply.github.com> Date: Mon, 29 Nov 2021 00:26:05 -0500 Subject: [PATCH] Update jails.conf to add IPV6 to ignoreip Update jails.conf to include IPV6 localhost and external ip to ignoreip line. Update system.sh to include IPV6 address in replacement. See mail-in-a-box#2066 for details. --- setup/system.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/system.sh b/setup/system.sh index ed399ba0..1e1045ff 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -356,6 +356,7 @@ systemctl restart systemd-resolved rm -f /etc/fail2ban/jail.local # we used to use this file but don't anymore rm -f /etc/fail2ban/jail.d/defaults-debian.conf # removes default config so we can manage all of fail2ban rules in one config cat conf/fail2ban/jails.conf \ + | sed "s/PUBLIC_IPV6/$PUBLIC_IPV6/g" \ | sed "s/PUBLIC_IP/$PUBLIC_IP/g" \ | sed "s#STORAGE_ROOT#$STORAGE_ROOT#" \ > /etc/fail2ban/jail.d/mailinabox.conf