Working with the CSF command line

Posted on Dec 3, 2013 by Vasily Bezruchkin Vasily Bezruchkin

As a system administrator you might often use CSF to block / unblock your server visitors. There are a lot of tutorials how to do that via GUI. Anyhow in this article I will share an easy way to administrate your firewall using command line.

Here are the most useful command flags I use all the time:

Restart CSF:

csf -r

Deny an ip address:

csf -d 

Quick allow / whitelist an ip address:

csf -a

Unblock an ip address and remove from the deny list:

csf -dr

I hope you will find this information useful.

← Back to Blog


Contact Us

Our clients get the best results when they have our team dedicated to their business for extended periods of time.
This is why we are looking for ongoing collaboration where our professionals are like your team members who just happen to be remote.
Ready to move forward?