Fail2ban

Fail2ban scans log files and blocked IP addresses that show malicious signs by normally updating firewall rules.  Fail2ban includes filters for various services such as Apache and SSH.

http://www.fail2ban.org/