All about CSF (ConfigServer Security & Firewall)

csf

To add IP address in to deny list

csf -d IP

To add IP address in to allow list

csf -a IP

How to restart csf firewall

csf -r

How to stop csf firewall

csf -x

Path of CSF configuration file on cPanel server

/etc/csf/csf.conf

Path of denied IP addresses file in CSF

/etc/csf/csf.deny

Path of allowed IP address file in CSF

/etc/csf/csf.allow

How to add IP address in to ignorelist

(1) login to shell

(2) add IP address in to /etc/csf/csf.ignore

How to find IP address blocked in temporary ban

grep IP /etc/csf/csf.tempban

 

One Reply to “All about CSF (ConfigServer Security & Firewall)”

Leave a Reply

Your email address will not be published. Required fields are marked *