WHM – CentOS Firewall Installation
Installation of CSF ( Config Server Firewall ) is quite simple…
Tested : CentOS 5.4 – WHM 11.25
rm -fv csf.tgz wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh |
And than test whether you have the required iptables modules:
perl /etc/csf/csftest.pl |
No problem if you can not run all the features, so long as the script doesn’t report any FATAL errors
You should not run any other iptables firewall configuration script. For example, if you previously used APF+BFD you can remove the combination ( which you will need to do if you have them installed otherwise they will conflict badly )
sh /etc/csf/remove_apf_bfd.sh |
That’s ok. You can configure csf and lfd by edit the files directly in /etc/csf/*, or on cPanel servers use the WHM.
csf installation for cPanel is preconfigured to work on a cPanel server with all the standard cPanel ports open.
csf auto-configures your SSH port on installation where it’s running on a non-standard port.
Removing csf and lfd is even more simple:
cd /etc/csf sh uninstall.sh |
Sample Pages:
- http://www.configserver.com/cp/csfdemo/main.html
- http://www.configserver.com/cp/csfdemo/config.html
- http://www.configserver.com/cp/csfdemo/report.html
- http://www.configserver.com/cp/csfdemo/status.html
Source: www.configserver.com