You can install config-server firewall on a Linux server with the following steps :
- Run the following command :
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh - If you would like to disable APF+BFD (If you have them installed then you will require it else they will conflict horribly):
sh disable_apf_bfd.sh - Now, you have to configure csf and lfd in WHM, or edit the files
directly in /etc/csf/* - CSF provides a pre-configured setup for the cpanel servers, it automatically configures all the relevent ports in csf which are used for the proper working of cpanel.
- If you want to add some additional ports or want to change the CSf setting, it can be done from file /etc/csf/csf.conf in server or from WHM >> Plugins >> ConfigServer Firewall >> Firewall configuration.
- If you are using CSF in VPS, Please make sure to enable klogd and check /etc/init.d/syslog .
- CSF is previously configured to work on a cPanel server with all the regular cPanel ports open. It also auto-configures your SSH port if it is not good on installation.
- See the readme.txt file for more information.
* If any case you want to Uninstall it then you have to follow the following steps :
Removing csf and lfd is even more simple:
cd /etc/csf
sh uninstall.sh