Useful CSF Commands
CSF is the most popular software firewall in use on Linux 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 the correct 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
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 perminant 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
Disable Cors Protection Allow Website Through Cors Protection (Corss-origin Resource Sharing) Cors is a resource that allows or disallows resource usage …
Update CentOS 7 Kernel in your KVM virtual server or dedicated server runs one of the most important functions of …