Fail2ban is a handy little security solution that bans upon multiple failed access attempts. Available on the EPEL (Extra Packages for Enterprise Linux) repository. To install, follow these steps:
- 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
- Added filters for GitLab (13)