Fail2Ban - CentOS
Well a couple of days ago I had to setup fail2ban on a centos 5.2 server. Here is a quick how to:
First you need to install the program, you can do it with yum:
yum update
yum install fail2ban
Set it to startup automatically with the system:
chkconfig --levels 235 fail2ban on
Ok now just edit /etc/fail2ban/jail.conf
enable the jails, and be sure to set the to and from addresses (as you do want to get the reports).
To start it up without a reboot:
/etc/init.d/fail2ban start
So now you have everything setup.
For more details please see:
http://www.fail2ban.org