Installing CSF to prevent DDos Attacks

In this post i will describe how to install CSF (Config Server Security and FireWall) on the linux based Operating system.

A short description of CSF :

CSF provides security improvements and protects your server from various attacks including DDOS. It provides better security as compared to others and the mostly hosting providers are using it to secure their server from hackers. I recommend you to install it on your server whether it is VPS of Dedicated box.

Installation:

  • Login to you server through terminal with root privileges.
  • Type following commands:

# cd
# rm -fv csf.tgz
# wget http://www.configserver.com/free/csf.tgz
# tar -xzf csf.tgz
# cd csf
# sh install.sh

  • it will take less than 5 minutes to be installed completely, afterward you must run the following command to ensure the required iptables modules are installed to function properly:

# perl /etc/csf/csftest.pl

  • And the report will be shown with the suggestions.
  • Now just navigate to the directory where you have installed CSF by executing following command:

# cd /etc/csf Read More