Important CSF firewall commands via SSH

In Linux servers, it is necessary to install a firewall that blocks suspicious processes on the server.
From blocking any IP addresses we would like to block easily and one of the best free programs that work as a firewall that
It can be installed is the ConfigServer Security & Firewall program, known as csf, and it is always preferred to use it on servers.
Which works in the control panel whm/cpanel, as it is designed in such a way that it works automatically by blocking IP addresses that try to
Log in with wrong information a lot and you can see all csf details through the following link
In this lesson, we will review important CSF firewall commands via SSH
csf --help
man csf
Firewall installation path : /etc/csf
main settings file : /etc/csf/csf.conf
csf -r
csf -s
csf -e
csf -x
csf -df
csf -d 000.000.000.000
000.000.000.000 =IP to be blocked
csf -a 000.000.000.000
000.000.000.000 = IP to activate (remove from ban)
csf -tf
Now if you want to manually search for a specific IP to unblock it, unblock it, or even attend and stop it
You find all the IP that is blocked on the server you find it in this file
nano /etc/csf/csf.deny
All IPs where the white is located are not or the trusted IP
nano /etc/csf/csf.allow
Note: The IP addresses listed in this file will not be ignored by lfd, so it can still be blocked. If you don't want to lfd block an IP address, you should add it to csf.ignore
Related service: server management from Hyyat Host, with technical support that replies within 24 hours.