| Command |
Description |
Example |
| csf -e |
Enable CSF |
csf -e |
| csf -x |
Disable CSF |
csf -x |
| csf -s |
Start the firewall rules |
csf -s |
| csf -f |
Flush/Stop firewall rules (note: lfd may restart csf)
|
csf -f |
| csf -r |
Restart the firewall rules
|
csf -r |
| csf -a [IP.add.re.ss] [Optional comment] |
Allow an IP and add to /etc/csf/csf.allow
|
csf -a 55.55.55.55 Home IP Address |
| csf -td [IP.add.re.ss] [Optional comment] |
Place an IP on the temporary deny list in /var/lib/csf/csf.tempban |
csf -td 55.55.55.55 Odd traffic patterns |
| csf -tr [IP.add.re.ss] |
Remove an IP from the temporary IP ban or allow list.
|
csf -tr 55.55.55.55 |
| csf -tf |
Flush all IPs from the temporary IP entries
|
csf -tf |
| csf -d [IP.add.re.ss] [Optional comment] |
Deny an IP and add to /etc/csf/csf.deny
|
csf -d 55.55.55.55 Blocked This Guy |
| csf -dr [IP.add.re.ss] |
Unblock an IP and remove from /etc/csf/csf.deny
|
csf -dr 55.55.55.55 |
| csf -df |
Remove and unblock all entries in /etc/csf/csf.deny
|
csf -df |
| csf -g [IP.add.re.ss] |
Search the iptables and ip6tables rules for a match (e.g. IP, CIDR, Port Number)
|
csf -g 55.55.55.55 |
| csf -t |
Displays the current list of temporary allow and deny IP entries with their TTL and comments |
csf -t |