Ban a brute force attacking IP using iptables

This is a quick way to ban a brute force attacking IP using iptables. For a better long term solution, use iptables wrapper or a Firewall package such as Shorewall, gShield, etc..

On Host

REF: