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
Open And Close Ports In FirewallD - Manage Zones In FirewallD Like IPtables, FirewallD is a Linux firewall that filters packets …