Learn the CSF command line options

July 23, 2013 — 2 Comments

You have CSF installed and use the GUI to do most things.  (If you don’t have it installed yet, you can read our article on how to install csf).  BUT – knowing the csf (ConfigServer Firewall) flags will help you to quickly get things done via command line – instead of loading up the GUI every single time.

Here are some of the ones I use all the time.

csf -r (Restart CSF)
csf -d (quick deny an ip: csf -d xxx.xxx.xxx.xxx)
csf -a (quick allow / whitelist an ip: csf -a xxx.xxx.xxx.xxx)
csf -dr (unblock an ip and remove from the deny list: csf -dr xxx.xxx.xxx.xxx)

Here are all of them:

2 responses to Learn the CSF command line options

  1. Thank you for the very informative article. I’m a bit of a newbie with Linux and your articles provide valuable help and information. Just like mentioned in the article I used to load up the GUI every time but now I can do things much simpler and faster. Keep the good articles coming.

Trackbacks and Pingbacks:

  1. Learn the CSF command line options | Webmaster Brigade - July 23, 2013

    [...] Knowing the csf (ConfigServer Firewall) flags will help you to quickly get things done via command line – instead of loading up the GUI every single time. You can read the full article on our Linux blog: CSF Command Line [...]

Leave a Reply