Fail2ban is a tool that helps protect your Linux machine from brute-force and other automated attacks by monitoring the services logs for malicious activity. It uses regular expressions to scan log files.
Source: LXer – How to Install and Configure Fail2ban on Ubuntu 20.04