Thursday, September 19, 2013

Important Fire Wall Commands

CSF RULES ARE IN :
/etc/csf/csf.conf
IPTABLES RULES ARE IN :
/etc/sysconfig/iptables
To add IP address in to deny list
csf -d xxx.xxx.xxx.xxx //xxx indicates IP address
To add IP address in to allow list
csf -a xxx.xxx.xxx.xxx //xxx indicates IP address
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 file
/etc/csf/csf.ignore
How to find IP address blocked in temporary ban.

grep xxx.xxx.xxx.xxx /etc/csf/csf.tempban //xxx indicates IP address

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)