Knowledgebase

How to Install the CSF / LFD Firewall on your VPS / Dedicated Server Print

  • 860

Throughout this guide, you'll learn how to install your own Firewall on your linux VPS / Dedicated server.
CSF / LFD is an excellent firewall which is based on IPtables rules which would protect your server from many threats including and not limited to : brute forces attacks, port scanning, HTTP / UDP / SYN flooding, Email relays...

CSF / LFD can be set up on any kind of server with or without cPanel. With cPanel you would have a graphic interface to manage it with great ease which would be included in your WHM Panel.


You can find the step below to set up your first firewall :

1) You would need to connect to your server in SSH with any SSH client (including Putty)

2) We are going to remove any previous download of CSF you may already have by typing this SSH command :

rm -fv csf.tgz

3) We are going to download the CSF package to your server :

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

4) We are going to go inside its directory :

cs csf

5) Finally we will initiate the installation :

sh install.sh

That's it! Your CSF firewall is now installed. It is in test mode by default, you would need to edit the file csf.conf in /etc/csf in order to enable and configure the firewall as you please. If you are running cPanel / WHM, you can presently see a new menu in the plugins category named : ConfigServer Security & Firewall.

Was this answer helpful?

« Back

Start typing and press Enter to search