You can install configserver firewall on a linux server with the following steps :
1. Run the following command :
rm -fv csf.tgz
tar -xzf csf.tgz
2.If you would like to disable APF+BFD (If you have them installed then you will require it else they will conflict horribly):
3. Now, you have to configure csf and lfd in WHM, or edit the files
directly in /etc/csf/*
4. 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.