Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  How-Tos  >  How to install software firewall on linux dedicated server?
Top Scroll

How to install software firewall on linux dedicated server?

 2 min

csf (config server firewall) is a software firewall which is widely used on linux servers to protect it from brute force, invalid login attempts, SMTP blocks, DOS attacks, etc. Web hosting provider all over the globe rely on csf firewall. It works with iptables in preventing your server.

csf firewall is compatible with Linux distros & is easy to use and install. You can enable/block ports, allow/block/ignore the IP access & perform many more tweaks with csf firewall.

Installing csf requires root privileges & needs to be installed via SSH or console.

# cd /usr/local/src/
# wget http://www.configserver.com/free/csf.tgz
# tar -zxf csf.tgz
# cd csf*
# ./install.sh

It will install csf firewall. If your server has cPanel OR directadmin as the control panel installed, you can execute install.cpanel.sh OR install.directadmin.sh respectively.

Once installed, it is always under TESTING mode. Open the file /etc/csf/csf.conf & find for “TESTING”. Set it to 0 to enable it.
Restart csf firewall & the server will be behind software firewall.

You can now configure it according to your needs OR contact our support team to tweak it for you.

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.