Fail2ban

http://sysadmindesk.com/how-to-protect-your-server-from-brute-force-attacks-using-fail2ban/