config f2b to use WEBMASTER var as destemail address

This commit is contained in:
Matthew Saunders Brown 2022-12-07 10:29:49 -08:00
parent 2ec70a31d2
commit c40ff90434

View File

@ -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."