Skip to main content

Prevent DDOS attack by CSF firewall

Comments

4 comments

  • cPanelMichael
    Hello :) Please keep in mind that CSF is a third-party application that is not developed by cPanel. You can find their support forums at: CSF - Support Forums That being said, you may still receive some helpful user-feedback here as well. Thank you.
    0
  • HH-Abdullah
    I am not sure if CSF can block any type of complex DDoS in today's age, except maybe some small attacks. You need to talk to your provider for some sort of protection on the network level if DDoS is becoming a problem for you. About the DNS recursion, the link you posted explains it perfectly. You do not really need it, so you can just disable it.
    0
  • caisc
    1 - If attacks origin from specific country only you can block that country in CSF 2 - Enable dshield and spamhaus in CSF, it prevent many spammers and other bad stuff from connecting to your server. Also after every restriction keep an eye on stats that are also collected by CSF
    0
  • Prakash K. Lakhara
    After applying this setting the IP is getting banned on all ports I also mentioned ports in CT_PORTS = 80,23,443 : Enable connection tracking CT_LIMIT =1 Set connection tracking interval. CT_INTERVAL =30 If you want to get possible ddos attack email then enable it. CT_EMAIL_ALERT =1 If you want to make IP blocks permanent then set this to 1, otherwise blocks will be temporary and will be cleared after CT_BLOCK_TIME seconds CT_PERMANENT = 1 If you opt for temporary IP blocks for CT, then the following is the interval in seconds that the IP will remained blocked for (e.g. 1800 = 30 mins) CT_BLOCK_TIME = 1800 If you only want to count specific ports (e.g. 80,443) then add the ports to the following as a comma separated list. E.g. "80,443" CT_PORTS = 80,23,443
    0

Please sign in to leave a comment.