Here is a quickstart guide in installing and running fail2ban on your rhel/centos server.
Name: failban.sh
Run this by invoking:
command-line] sh ./failban.sh
You can subsequently run:
command-line] iptables -L
This will show you all the rules currently in place.