- Install EPEL-RELEASE repository and the fail2ban packages
yum install epel-release
yum install fail2ban fail2ban-systemd
- Copy the contents of the repository to
/etc/fail2ban/
- Enable fail2ban at boot and start
systemctl enable --now fail2ban
yum install epel-release
yum install fail2ban fail2ban-systemd
/etc/fail2ban/
systemctl enable --now fail2ban