CSF is great firewall for all linux based servers.
For non-cpanel servers you'll need to install per-libwww module otherwise skip the first step:
#yum install perl-libwww-perl
#cd ~
#wget http://configserver.net/free/csf.tgz
#tar -xvzf csf.tgz
#cd csf
#sh install.sh