A good tool, easy to understand, quickly installed, simple but efficient: ts_block.

This will block the IP addresses trying to connect with a wrong user name, or a wrong password.