CSF Firewall Whitelist an IP Address IN CLI
In order to perform this task, you need to have root access to the server. You will need a terminal text editor like vi, vim, nano and so on.
Login to the server terminal.
Using your favorite text editor open the following file using this command
Add your IP address to the list, save the file and exit the text editor.
For the changes to take effect, you need to reload the firewall using this command.
If your IP address was previously blocked permanently it should be in "csf.deny", so make sure you remove it in order to avoid conflict.
If you find your IP there you need to remove the entire line, save and exit the text editor.
Reload the csf firewall
You have successfully whitelisted your IP address in CSF firewall using CLI in terminal.