Sat 5 Apr 2008
CSF (configserver) firewall
Posted by Tuks under Blogging , Dedicated Server Hosting , Domain Name Hosting , Email Hosting , Firewall , Linux Web Hosting , SEO Articles , SEO Tutorial , VPS Hosting , WHM Tutorials , Web Hosting , Web Hosting Articles , Web Hosting UK , cPanel Issues , cheap linux web hosting , technical supportNo Comments
How to install and configure the CSF (configserver) firewall.
CSF can be used on a wide range of Linux systems, including those running cPanel. Following are the steps to install and configure the CSF.
Installation is quite straightforward:
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
If you would like to disable APF+BFD (which you will need to do if you have
them installed otherwise they will conflict horribly):
sh disable_apf_bfd.sh
That’s it. You can then configure csf and lfd in WHM, or edit the files
directly in /etc/csf/*
csf is preconfigured to work on a cPanel server with all the standard cPanel
ports open. It also auto-configures your SSH port if it’s non-standard on
installation.
To configure CSF modify the config files in /etc/csf/ - or if you are running WHM you can modify the CSF settings in WHM itself.
You should ensure that kernel logging daemon (klogd) is enabled. Typically, VPS
servers have this disabled and you should check /etc/init.d/syslog and make
sure that any klogd lines are not commented out. If you change the file,
remember to restart syslog.
See the readme.txt file for more information.
Uninstallation
==============
Removing csf and lfd is even more simple:
cd /etc/csf
sh uninstall.sh