How to Block an IP address in CSF
1. Block an IP and add to /etc/csf/csf.deny.
Ex. csf -d 111.111.111.111
2. Block the IP for temporary deny list in /var/lib/csf/csf.tempban
Ex. csf -tr 111.111.111.111
How To Unblock an IP Address in CSF
1. Check CSF for Your IP Address Block or not.
Ex. csf -g 111.111.111.111.
2. If the IP address is denied in CSF and you want to remove it, then use this command:
Ex. csf -dr 111.111.111.111
3. CSF then needs to be restarted for the change to take effect:
Ex. csf -r
4. Remove an IP from the temporary IP ban or allow list.
Ex. csf -tr 111.111.111.111.
5. Whitelist IP
Ex. csf -a 111.111.111.111
6. Whitelist temporary IP
Ex. csf -ta 111.111.111.111