diff options
Diffstat (limited to 'bin/ncp/SECURITY/fail2ban.sh')
-rw-r--r-- | bin/ncp/SECURITY/fail2ban.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ncp/SECURITY/fail2ban.sh b/bin/ncp/SECURITY/fail2ban.sh index 2e47031a..fbe4fec7 100644 --- a/bin/ncp/SECURITY/fail2ban.sh +++ b/bin/ncp/SECURITY/fail2ban.sh @@ -52,9 +52,13 @@ EOF [INCLUDES] before = common.conf [Definition] -failregex = UFW BLOCK.* SRC= +failregex = UFW BLOCK.* SRC=<HOST> ignoreregex = EOF + cat > /etc/systemd/system/fail2ban.service.d/touch-ufw-log.conf <<EOF +[Service] +ExecStartPre=/bin/touch /var/log/ufw.log +EOF chmod +x /etc/services-available.d/100fail2ban } |