Sunday, 21 April 2013

CSF Commands



To add IP address in to deny list

csf -d xxx.xxx.xxx.xxx

To add IP address in to allow list

csf -a xxx.xxx.xxx.xxx

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

login to shell then add IP address in to /etc/csf/csf.ignore

How to find IP address blocked in temporary ban.

grep xxx.xxx.xxx.xxx /etc/csf/csf.tempban

Remove and unblock an IP address in /etc/csf.deny

csf -dr IP address

Remove an IP address from the temporary IP ban list

csf -tr IP address

No comments:

Post a Comment