Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

Install Firewall on a cPanel Server

First you would need to login as root via ssh, then as root issue the following commands:

tar zxfv csf.tgz
cd csf

At this point the CSF installation is complete and the configuration file should suit your needs, to edit the CSF configuration issue this command:

pico /etc/csf/csf.conf

Set the TESTING variable to 1 instead of and make sure that the MONOLITHIC_KERNEL variable is set to 1 this is important for OpenVZ VPS servers You may open/filter incoming and outgoing ports by editing the TCP_IN and TCP_OUT variables. Save your configuration by pressing CTRL + x, when asked press “y” then press the enter key

Now start CSF by issuing:

/etc/init.d/csf start

Share on Twitter
Share on Facebook