• Skip to primary navigation
  • Skip to main content
  • Skip to footer
ISO 27001 certified | 9.8/10 reviews | Monthly terminable

Utility Bar Right

Contact usSupport
Mail us
Clientarea
en en
  • en EN en

Snel.com

Your Friendly Hosting Provider

  • EN
  • VPS
    • Self-Managed VPS
      • Cloud VPS
      • Pure Performance VPS
      • VPS Windows
    • Full-Managed VPS
      • Managed VPS
      • Managed Pure Performance VPS
      • Managed WooCommerce VPS
    • Upgrades
      • Upgrades & Licenses
  • Dedicated Servers
    • Dedicated Servers
    • Managed Dedicated Servers
    • Upgrades & Licenses
  • Reseller Hosting
  • Domains
    • Domain name
    • Domain extensions
  • Clientarea
  • Order
Snel.com
  • EN
  • VPS
    • Self-Managed VPS
      • Cloud VPS
      • Pure Performance VPS
      • VPS Windows
    • Full-Managed VPS
      • Managed VPS
      • Managed Pure Performance VPS
      • Managed WooCommerce VPS
    • Upgrades
      • Upgrades & Licenses
  • Dedicated Servers
    • Dedicated Servers
    • Managed Dedicated Servers
    • Upgrades & Licenses
  • Reseller Hosting
  • Domains
    • Domain name
    • Domain extensions
  • Clientarea
  • Order
Home > Blog > How Can I Deal With DDoS Without a Hardware Firewall?

How Can I Deal With DDoS Without a Hardware Firewall?

A Distributed Denial of Service (DDoS) attack can bring a server to its knees in minutes. DDoS involves flooding a server with requests, forcing the server to be unusable and unresponsive. While occasional DDoS attacks are inconvenient, repeated and persistent attacks can cripple a website and prevent you from running your business.

Large businesses like PayPal have felt the full force of DDoS in the past, but no website or business is immune. While DDoS attacks are illegal, in many countries but it is incredibly difficult to track down the perpetrators, since they often use botnets to carry out their crimes. Prevention therefore is the best cure.

About Firewalls

Hardware firewalls are often considered the most robust type of protection against all kinds of intruders, and the best defence against DDoS, but they are not always practical. The days of placing mainframes behind firewalls are long gone. If you run virtual machines, a hardware firewall isn’t practical. The solution? You will need to run a software firewall to protect each server you deploy. Config Server Firewall (CSF) is a free software firewall that is designed for Linux servers. It’s valuable because it’s designed to prevent the kinds of brute force attacks that can bring a server down. CSF has flood detection technology that is specifically designed to recognise, and protect against, a DDoS attack. The key feature is connection limit protection, which monitors incoming connections and detects very high quantities of active connections from one IP address. While CSF isn’t totally failsafe, it does a good job of preventing mild or moderate attacks.

csf firewall

How to Set Up CSF

CSF can be used from the command line or from specific hosting control panels, including cPanel on Linux. It’s especially useful for deployment on Dedicated servers and Virtual Private Servers (VPS), many of which have cPanel installed as part of the package. The user interface is also installed on Webmin. To enable DDoS protection without cPanel or Webmin, you’ll need to edit the CSF config file with a text editor. You must define the ports that are to be monitored; remember that not all ports will be open by default anyway. You can also optionally set a threshold for the number of IP addresses that trigger a block, and you’ll choose whether to block them permanently or for a set period of time. The portflood setting allows you limit the number of connections to any port in a specified period. It’s wise to also download IP block lists for CSF. These will effectively pre-program the firewall to block IPs that are known to be the source of problems, ensuring that your server cannot be targeted by these IPs. CSF also has a whitelist; check that your own IP address, and the IPs of any other administrator, is added here.

 

Getting Help

CSF is a very good firewall that is ideal for dedicated hosting and cloud environments. It is quick to deploy and easy to configure, even if you are not well versed with the command line. Below you can find a quick tutorial on how you should start the installation.

The first step is to login as the root user on the terminal. And then use the following command to download CSF:

wget https://www.configserver.com/free/csf.tgz

Use the following command to extract the files

tar xfz csf.tgz

Use 'cd' to open csf folder

cd csf

Now run the CSF install typing

sh install.sh

Edit the config file to turn off the ‘testing mode’ type

 

vi /etc/csf/csf.conf

Press ‘i’ to enable editing mode and change TESTING = “1” to

TESTING = “0”

Press “Esc” key to exit the text editor type

 

:wq

Now save the changes made in the text editor. Enter the following command this will restart the csf:

csf -r

CSF is now installed and running, you can now close the terminal. For more detailed information on CSF check out the CSF user documentation.

Wednesday, October 15th, 2014

Reader Interactions

ISO 27001 Certified
Reviews rating 9.8
Contact us
+31 88 3 088 099

Footer

Our Products

  • VPS
  • Self-managed Servers
    • Cloud VPS
    • Pure Performance VPS
    • Linux VPS
    • VPS Windows
  • Managed Servers
    • Managed VPS
    • Managed Pure Performance VPS
    • Managed WooCommerce VPS
    • Managed Dedicated Servers
  • Dedicated Servers
  • White Label Reseller Hosting
  • Domain name

More…

  • Our Story
  • Contact Us
  • Reviews
  • ISO 27001 Certification
  • Moving service
  • Monthly terminable
  • Data Center
  • Network
  • Snel Status
  • Payment Methods
  • SnelWallet
  • Affiliate Program

Legal

  • Service Level Agreement
  • EU GDPR
  • Disclaimer
  • Privacy Statement
  • Terms and Conditions
  • Data Processing Agreement
  • Acceptable Usage Policy
  • Coordinated Vulnerability Disclosure (CVD) Policy

Blog

  • Why We’re Adjusting Some Prices in 2025 (and Keeping Others the Same)
  • 4 Reasons to Choose Hosting or Servers in the Netherlands
  • Change your password day
  • Use cPanel tools to help optimise your website
  • Acronis Cyber Protect Cloud: More than a Back-up solution

Show us some love

ISO 27001 maandelijks opzeggen embleem klein

Stay Updated

Snel Status

Copyright © 2025 Snel.com B.V. All Rights Reserved.

We use cookies to improve your experience and to display relevant content.

Accept
Cookies Settings
Cookie Box Settings
Cookie Box Settings

Privacy settings

Decide which cookies you want to allow.You can change these settings at any time. However, this can result in some functions no longer being available. For information on deleting the cookies, please consult your browser’s help function.Learn more about the cookies we use.

With the slider, you can enable or disable different types of cookies:

  • Essential
  • Functionality
  • Analytics
  • Advertising

This website will

  • Remember which cookies group you accepted

This website won't

  • Remember your login details
  • Essential: Remember your cookie permission setting
  • Essential: Allow session cookies
  • Essential: Gather information you input into a contact forms newsletter and other forms across all pages
  • Essential: Keep track of what you input in a shopping cart
  • Essential: Authenticate that you are logged into your user account
  • Essential: Remember language version you selected
  • Functionality: Remember social media settings
  • Functionality: Remember selected region and country
  • Analytics: Keep track of your visited pages and interaction taken
  • Analytics: Keep track about your location and region based on your IP number
  • Analytics: Keep track of the time spent on each page
  • Analytics: Increase the data quality of the statistics functions
  • Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
  • Advertising: Gather personally identifiable information such as name and location

This website will

  • Essential: Remember your cookie permission setting
  • Essential: Allow session cookies
  • Essential: Gather information you input into a contact forms newsletter and other forms across all pages
  • Essential: Keep track of what you input in a shopping cart
  • Essential: Authenticate that you are logged into your user account
  • Essential: Remember language version you selected

This website won't

  • Remember your login details
  • Functionality: Remember social media settings
  • Functionality: Remember selected region and country
  • Analytics: Keep track of your visited pages and interaction taken
  • Analytics: Keep track about your location and region based on your IP number
  • Analytics: Keep track of the time spent on each page
  • Analytics: Increase the data quality of the statistics functions
  • Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
  • Advertising: Gather personally identifiable information such as name and location

This website will

  • Essential: Remember your cookie permission setting
  • Essential: Allow session cookies
  • Essential: Gather information you input into a contact forms newsletter and other forms across all pages
  • Essential: Keep track of what you input in a shopping cart
  • Essential: Authenticate that you are logged into your user account
  • Essential: Remember language version you selected
  • Functionality: Remember social media settings
  • Functionality: Remember selected region and country

This website won't

  • Remember your login details
  • Analytics: Keep track of your visited pages and interaction taken
  • Analytics: Keep track about your location and region based on your IP number
  • Analytics: Keep track of the time spent on each page
  • Analytics: Increase the data quality of the statistics functions
  • Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
  • Advertising: Gather personally identifiable information such as name and location

This website will

  • Essential: Remember your cookie permission setting
  • Essential: Allow session cookies
  • Essential: Gather information you input into a contact forms newsletter and other forms across all pages
  • Essential: Keep track of what you input in a shopping cart
  • Essential: Authenticate that you are logged into your user account
  • Essential: Remember language version you selected
  • Functionality: Remember social media settings
  • Functionality: Remember selected region and country
  • Analytics: Keep track of your visited pages and interaction taken
  • Analytics: Keep track about your location and region based on your IP number
  • Analytics: Keep track of the time spent on each page
  • Analytics: Increase the data quality of the statistics functions

This website won't

  • Remember your login details
  • Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
  • Advertising: Gather personally identifiable information such as name and location

This website will

  • Essential: Remember your cookie permission setting
  • Essential: Allow session cookies
  • Essential: Gather information you input into a contact forms newsletter and other forms across all pages
  • Essential: Keep track of what you input in a shopping cart
  • Essential: Authenticate that you are logged into your user account
  • Essential: Remember language version you selected
  • Functionality: Remember social media settings
  • Functionality: Remember selected region and country
  • Analytics: Keep track of your visited pages and interaction taken
  • Analytics: Keep track about your location and region based on your IP number
  • Analytics: Keep track of the time spent on each page
  • Analytics: Increase the data quality of the statistics functions
  • Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
  • Advertising: Gather personally identifiable information such as name and location

This website won't

  • Remember your login details
Save & Close