Quick memento on how to configure fail2ban on CentOS 7
1 2 3 4 5 6 7 8 9 10 |
yum install fail2ban-all.noarch -y cat > /etc/fail2ban/jail.local <<EOF [DEFAULT] bantime = 86400 [sshd] enabled = true EOF systemctl enable fail2ban.service systemctl start fail2ban.service |
That’s all folks