1.First of all, install the firewall. Here are the steps for you -
Install CSF Firewall
cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
Edit /etc/csf/csf.conf and make the following changes (both settings are near the top of the file):
TESTING = "0"
RESTRICT_SYSLOG = "2"
Save
Now go to WHM > Security Center > SMTP Restrictions > Disable and then run: csf -r
ModSecurity Vendors
2. Install OWASP ModSecurity Core Rule Set (the default one available on that page)
Once installed, press edit on it.
Turn off:
rules/REQUEST-12-DOS-PROTECTION.conf
rules/REQUEST-13-SCANNER-DETECTION.conf
rules/REQUEST-20-PROTOCOL-ENFORCEMENT.conf
rules/REQUEST-30-APPLICATION-ATTACK-LFI.conf
rules/REQUEST-42-APPLICATION-ATTACK-SQLI.conf
rules/REQUEST-43-APPLICATION-ATTACK-SESSION-FIXATION.conf
========================================================================
3. Password Strength Configuration
Set Default to 70
Save
4. Shell Fork Bomb Protection
Enable Protection