{{tag>csf lfd guide install}} {{howhard>2}}
====== csf ======

==== Steps ====
=== Library Prerequisites ===
<sxh>yum install perl-libwww-perl.noarch perl-Time-HiRes</sxh>

=== Fetch csf ===
<sxh>wget https://download.configserver.com/csf.tgz
tar zxfv csf.tgz</sxh>

=== Install csf ===
<sxh>cd csf
sh install.sh</sxh>

=== Test csf ===
<sxh>cd /usr/local/csf/bin/
perl csftest.pl</sxh>

You should get the following:

RESULT: csf should function on this server

=== Disable firewalld ===
<sxh>systemctl stop firewalld
systemctl disable firewalld</sxh>

=== Enable csf ===
<sxh>cd /etc/csf/
vim csf.conf</sxh>
Change TESTING = "1" to TESTING = "0"

=== Start & Enable csf ===
<sxh>systemctl start csf
systemctl start lfd
systemctl enable csf
systemctl enable lfd</sxh>

== Statistics ==
If you enable statistics you will need the following libraries for the option to appear and function.
<sxh>yum install perl-GDGraph3d</sxh>

== Common Issues ==
  * Unable to connect to https://download.configserver.com, retry in 247 seconds. An Upgrade button will appear here if new version is detected
<sxh>yum install perl-Crypt-SSLeay perl-LWP-Protocol-https</sxh>
  * Cant connect to Web UI
Make sure to restart lfd after enabling the UI, csf will not reload the lfd service.