Useful CSF Commands
CSF is the most popular software firewall in use on Linux VPS Servers around the world. From monitoring login attempts to locking down unused ports CSF is an essential bit of kit to protect your server. After installing CSF you will need some useful CSF commands to effectively manage CSF. This is especially true if you are using CSF without any sort of GUI like you have inside cPanel.
Basic CSF Commands
CSF Configuration Files
When you add IPs to deny lists you add those IPs to the following files. These files are searched by CSF and the appropiriate action is taken;
When you add an IP to the allow list that IP is placed in the below file and CSF searchs this file for any IPs
How to permanently whitelist an IP in CSF
To make an IP permanent first enable the option IGNORE_ALLOW in the /etc/csf/csf.conf file by changing the value from “0” to “1” then restart CSF. Now add the IP to the file /etc/csf/csf.ignore file and CSF will ignore any events from this IP.
How was this article? Useful CSF Firewall Commands
You might also like
More from All About Linux
Ioncube Loaders are a piece of software that is used to protect the underlying code in PHP applications. Its aim …