From c40ff90434c35e895190db7f1216c1dcd42d86c5 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 7 Dec 2022 10:29:49 -0800 Subject: [PATCH] config f2b to use WEBMASTER var as destemail address --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6f05aec..9700d18 100644 --- a/install.sh +++ b/install.sh @@ -100,6 +100,7 @@ DEBIAN_FRONTEND=noninteractive apt-get -y install fail2ban chmod 644 fail2ban/*.local chmod 644 fail2ban/*/*.conf cp -a fail2ban/* /etc/fail2ban/ +echo "destemail = $WEBMASTER" >> /etc/fail2ban/jail.local systemctl enable fail2ban systemctl start fail2ban @@ -119,5 +120,5 @@ chmod 750 sbin/* cp sbin/* /usr/local/sbin/ echo "" -echo "Unattended upgrades are configured to send notifications to $WEBMASTER." -echo "Update Unattended-Upgrade::Mail in /etc/apt/apt.conf.d/50unattended-upgrades to suit your needs." +echo "Unattended upgrades & fail2ban are configured to send notifications to $WEBMASTER." +echo "Update /etc/apt/apt.conf.d/50unattended-upgrades and /etc/fail2ban/jail.local to suit your needs."