From 84691bb6d5e8082935a1ccffd9f18071fe066928 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 12 Jun 2019 15:24:07 +0200 Subject: [PATCH] fix fail2ban --- assets/knockd.conf | 2 +- bin/fail2ban.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/knockd.conf b/assets/knockd.conf index b37d6b1..b209bf4 100644 --- a/assets/knockd.conf +++ b/assets/knockd.conf @@ -24,4 +24,4 @@ tcpflags = syn cmd_timeout = 600 # stop_command = ufw delete allow from %IP% to any port 22 - stop_command = ufw delete allow ssh + stop_command = ufw delete allow ssh diff --git a/bin/fail2ban.sh b/bin/fail2ban.sh index 681fd55..cbc658e 100755 --- a/bin/fail2ban.sh +++ b/bin/fail2ban.sh @@ -20,6 +20,7 @@ sleep 2 apt-get --yes --force-yes install fail2ban cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local # ToDo ask for email and configure jail.local with it +touch /var/log/auth.log systemctl enable fail2ban systemctl restart fail2ban echo -e "\033[92;1mfail2ban installed and configured\033[Om"