How to install CSF Firewall on cPanel Server

banner dedicated

In this tutorial, we will explain how to install CSF Firewall on your cPanel Server.


  • cPanel Dedicated Server
  • root access

First log your cPanel Server by SSH

ssh root@your_cpanel_server_ip

Download and extract CSF on your server

cd /usr/local/src/
tar -xzf csf.tgz

Start the installation of CSF

cd csf

When done, log your WHM interface


Navigate to ConfigServer Security Firewall in the plugins section.
From there, you will be able to configure the Firewall as you want.

At the installation, all default ports are allowed in the config and the IP of the person who performed the installation whitelisted.

banner dedicated

Colo-Serv Communications has written 32 articles

Premium Dedicated Hosting Services