RE: Install CSF Firewall
12-18-2014, 02:38 PM
(This post was last modified: 12-18-2014, 02:39 PM by Cantalupo.)
Use commands
Separated list of commands so you can better control the CSF features (replace (IP)):
CSF -g (IP)> Checks whether the searched IP is blocked
csf -a (IP) "Reason - Your Name"> Adds an IP in the server whitelist. Use with caution and release only fixed IP
csf -d (IP) "Reason - Your Name"> Blocks IP in firewall and add the comment in /etc/csf/csf.deny file
CSF -Tr (IP)> Remove the temporary blocking of an IP
CSF -Dr (IP)> Remove the definitive blocking an IP
grep IP /var/log/lfd.log > Check the reason for a temporary lock
more....
Separated list of commands so you can better control the CSF features (replace (IP)):
CSF -g (IP)> Checks whether the searched IP is blocked
csf -a (IP) "Reason - Your Name"> Adds an IP in the server whitelist. Use with caution and release only fixed IP
csf -d (IP) "Reason - Your Name"> Blocks IP in firewall and add the comment in /etc/csf/csf.deny file
CSF -Tr (IP)> Remove the temporary blocking of an IP
CSF -Dr (IP)> Remove the definitive blocking an IP
grep IP /var/log/lfd.log > Check the reason for a temporary lock
more....