firewall: restart failtoban if it exists

This commit is contained in:
Peter 2026-05-30 19:29:58 +02:00
parent 0cdef8be5b
commit dccb45168c

View file

@ -75,4 +75,11 @@ ip6tables -A INPUT -j REJECT
iptables -A FORWARD -j REJECT iptables -A FORWARD -j REJECT
ip6tables -A FORWARD -j REJECT ip6tables -A FORWARD -j REJECT
# Now *if* fail2ban has been installed, we would have destroyed it's setup.
# Restart it
if [ -e /etc/fail2ban/fail2ban.conf ]
then
systemctl restart fail2ban || true
fi
# This file is managed by ansible, do not modify! # This file is managed by ansible, do not modify!