Categories
Server

Does CSF Firewall Make Your WHM / Server Slow ?

There are various reasons why CSF firewall may make your WHM / server slow.
Here are some personal tips from me.

  1. Change your default SSH Port from 22 to something else. It will prevent (although temporarily) malicious bots from scanning your server, and adding extra load to your firewall.
  2. Edit your CSF firewall configuration, and change these configuration :
    1. CC_LOOKUPS : 0
      This will disable IP country lookup. Imagine your firewall blocking hundreds of IP each second, and doing additional country lookup for each IP.
    2. LF_EMAIL_ALERT : OFF
    3. LT_EMAIL_ALERT : OFF
    4. CT_EMAIL_ALERT : OFF
    5. PS_EMAIL_ALERT : OFF

    *_EMAIL_ALERT things will disable sending email from your server to your e-mail address which will add extra work for your server if your server is scanned by hundreds of IP each second.

If you have other tips for improving CSF speed, please comment below 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *