Categories: TutorialsWeb Hosting

DDOS Prevention Settings in CSF firewall {cPanel Server}

CSF Firewall is a great tool available for free to protect your server and is compatible with the majority of popular control panels like cPanel, Direct Admin, Plesk etc. Denial of Service (DoS) and Distributed Denial of Service (DDoS) attacks are very common issues we face with our publicly available servers.

In this case, the CSF Firewall will help to prevent two types of attacks without any hardware installation


If you are using Default CSF settings then SYNFLOOD is set to disabled, you will need to enable it with correct settings follow these simple steps

SYNFLOOD Configuration in CSF

You can find these settings on your WHM Panel, you need to login as root to modify the settings

  • Sidebar > Scroll Down to Plugins Section in your WHM
  • Click “ConfigServer Security & Firewall
  • Choose “Firewall configuration” from the options

Now you can find “SYNFLOOD” Settings section with shortcut CRT + F {To Find} and Type SYNFLOOD it will highlight the section. I am adding recommended settings to prevent such DDos attacks on your server on the best level.




SYNFLOOD_RATE: Number of SYN packets to accept per IP, per second.

SYNFLOOD_BURST: Number of times the IP can hit the rate limit before being blocked in the firewall.

Setting up PORTFLOOD in Firewall Configuration

On the same page, you can find these settings as well, by default PORTFLOOD is disabled you will need to enable it and make these recommended changes or you may ask your system admin for the best practices depending upon your server configuration

UDPFLOOD_LIMIT = 50/sec {100 Seconds Recommended}
UDPFLOOD_BURST = 250 {500 is Recommended}

Now on the bottom of the page click on “CHANGE” and Restart the “CSF” to apply new settings on the server. Now your server is ready to handle such soft attacks

Rajesh Chauhan

GoogieHost is one of the leading free web hosting provider on the internet over 300000 satisfied clients across the globe. We also offer Affordable SEO Web Hosting and Digital Marketing service to give give wings to your online business. Unlimited FREE HOSTING.

Recent Posts

A2 Hosting Review 2020| Eye-Opening Points That You Can’t-Miss

A2 Hosting Review | A2 Hosting is an independently owned, top hosting company that has…

7 days ago

7 Mistakes To Avoid While Making Your Next Promotional Video

The trends in digital marketing are prone to various global influences. In the current digital…

1 week ago

Hostinger Review: A slice of its History, Business Model and Overview

Hostinger is presumably one of the most price-effective web hosting companies out there. With Hostinger…

3 weeks ago Review 2020 | Is it a Professional Website Builder for Business? Review 2020: Nowadays a professional website can be built with ease and it does…

1 month ago

5 Ways You Can Automate Your Ecommerce Store Tasks In 2020

I know why you’re here. for best ways you can automate your eCommerce Store Tasks.…

1 month ago

Free Web Hosting for Students Projects & Education

Free Web Hosting for Students 2020: For the students to learn about the Internet, they…

1 month ago