Monday 11 April 2011

CSF commands

Hi all,
Basic commands of csf Firewall at command line.

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

2. Remove an IP address from the temporary IP ban list
csf -tr IP address

3. Add an IP address to /etc/csf.deny
csf -d IP address

4. Disable csf and lfd
csf -x

5. Enable csf and lfd
csf -e

6. Restart firewall rules
csf -r