firewall: restart failtoban if it exists
This commit is contained in:
parent
0cdef8be5b
commit
dccb45168c
1 changed files with 7 additions and 0 deletions
|
|
@ -75,4 +75,11 @@ ip6tables -A INPUT -j REJECT
|
|||
iptables -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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue