fix fail2ban

This commit is contained in:
Bachir Soussi Chiadmi 2019-06-12 15:24:07 +02:00
parent 934874b297
commit 84691bb6d5
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ sleep 2
apt-get --yes --force-yes install fail2ban apt-get --yes --force-yes install fail2ban
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
# ToDo ask for email and configure jail.local with it # ToDo ask for email and configure jail.local with it
touch /var/log/auth.log
systemctl enable fail2ban systemctl enable fail2ban
systemctl restart fail2ban systemctl restart fail2ban
echo -e "\033[92;1mfail2ban installed and configured\033[Om" echo -e "\033[92;1mfail2ban installed and configured\033[Om"