Per Fail2ban main page, Fail2ban is the de facto tool to have to monitor malicious access attempts on your server and ban source IPs if need be.

The 2 presentations presents Fail2Ban’s history and features in a very-well manner :

Fail2Ban – Keep your boxes skiddie-free

Fail2ban : from personal to community-driven

Github’s project page