CSF/LFD Firewall is installed by default on all CWP servers.
Here you can find useful commands you can use from your terminal.
To get the list of all options please use this commands
Configuration location is in the folder /etc/csf/
Main configuration file: /etc/csf/csf.confEnable CSF Firewall
Disable CSF Firewall
Restart CSF Firewall (iptables rules)
Restart CSF/LFD Firewall (iptables rules and LFD service)
Restart LFD only
Check blocked IP reason (replace IP with the IP address)
csf -g IP
grep "IP" /var/log/lfd.log
Block IP (permanently)
Block IP (temporarily for 24 hours, define in seconds)
Unblock IP
Whitelist IP (allow access to all ports)
Whitelist IP range /24 (allow access to all ports)
Whitelist (temporarily) IP range /24 for 24 hours (allow access to all ports, define in seconds)
csf -ta 192.168.0.0/24 86400
Remove all temporary IP blocks
Remove all permanent IP blocks
....and many others