This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Install CSF Firewall
#3
RE: Install CSF Firewall
Code:
###############################################################################
# Copyright 2006-2013, Way to the Web Limited
# URL: http://www.configserver.com
# Email: sales@waytotheweb.com
###############################################################################


Installation
============
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

Next, test whether you have the required iptables modules:

perl /usr/local/csf/bin/csftest.pl

Don't worry if you cannot run all the features, so long as the script doesn't
report any FATAL errors

You should not run any other iptables firewall configuration script. For
example, if you previously used APF+BFD you can remove the combination (which
you will need to do if you have them installed otherwise they will conflict):

sh /usr/local/csf/bin/remove_apf_bfd.sh

That's it. You can then configure csf and lfd by reading the documentation and
configuration files in /etc/csf/csf.conf and /etc/csf/readme.txt directly or
through the csf User Interface.

csf installation for cPanel and DirectAdmin is preconfigured to work on those
servers with all the standard ports open.

csf auto-configures your SSH port on installation where it's running on a non-
standard port.

csf auto-whitelists your connected IP address where possible on installation.

You should ensure that kernel logging daemon (klogd) is enabled. Typically, VPS
servers running RedHat/CentOS v5 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 csf.conf and readme.txt files for more information.


Webmin Module Installation/Upgrade
==================================

To install or upgrade the csf webmin module:

Install csf as above
Install the csf webmin module in:
  Webmin > Webmin Configuration > Webmin Modules >
  From local file > /usr/local/csf/csfwebmin.tgz > Install Module


Uninstallation
==============
Removing csf and lfd is even more simple:

cd /etc/csf
sh uninstall.sh


GD::Graph
=========
This perl module is required for Statistical Graphs available from the csf UI.
It is dependent on garphical libraries being installed for your OS (e.g.
libgd, libpng, etc. which is beyond the scope of this document)

The perl module itself can be installed in a variety of ways, e.g.:

RedHat/CentOS/CloudLinux:
# yum install perl-GDGraph

Debian v6:
# apt-get install libgd-graph-perl

Direct from cpan.org:
# perl -MCPAN -e shell
cpan> install GD::Graph
Angel
Reply
Thanks given by:


Messages In This Thread
Install CSF Firewall - by Me.B - 10-12-2014, 06:41 PM
RE: Install CSF Firewall - by Cantalupo - 12-18-2014, 02:38 PM
RE: Install CSF Firewall - by DimitarBG - 12-18-2014, 03:00 PM
RE: Install CSF Firewall - by DimitarBG - 12-18-2014, 03:24 PM
RE: Install CSF Firewall - by onlineth - 04-09-2015, 08:41 AM
RE: Install CSF Firewall - by Active8 - 04-10-2015, 06:34 AM
RE: Install CSF Firewall - by onlineth - 04-10-2015, 07:17 AM
RE: Install CSF Firewall - by shanjie - 02-04-2016, 03:21 AM
RE: Install CSF Firewall - by Qtech - 04-05-2017, 02:20 PM
RE: Install CSF Firewall - by apinto - 04-10-2015, 08:23 AM
RE: Install CSF Firewall - by Me.B - 04-10-2015, 04:40 PM
RE: Install CSF Firewall - by Active8 - 04-11-2015, 02:21 AM
RE: Install CSF Firewall - by apinto - 04-11-2015, 06:33 AM
RE: Install CSF Firewall - by Me.B - 04-12-2015, 12:43 AM
RE: Install CSF Firewall - by JVaranda - 02-04-2016, 05:06 AM
RE: Install CSF Firewall - by khongtuong - 05-09-2016, 01:26 PM
RE: Install CSF Firewall - by TGates - 04-06-2017, 03:34 AM
RE: Install CSF Firewall - by Qtech - 04-06-2017, 07:33 AM
RE: Install CSF Firewall - by TGates - 04-06-2017, 02:29 PM
RE: Install CSF Firewall - by CMs222 - 01-30-2018, 01:30 PM
RE: Install CSF Firewall - by CMs222 - 01-31-2018, 04:10 PM
RE: Install CSF Firewall - by CMs222 - 01-31-2018, 05:37 PM
RE: Install CSF Firewall - by CMs222 - 02-04-2018, 05:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
[HOW-TO]How Install Ioncube Sentora Cantalupo 11 46 ,827 09-17-2018, 06:10 PM
Last Post: itzdaniel483
[How-To] Install Redmine/Passenger/GIT/Subversion james30263 7 29 ,077 09-13-2018, 02:16 PM
Last Post: james30263
How to install mod_pagespeed on Sentora testing 0 3 ,701 11-26-2017, 06:23 AM
Last Post: testing

Forum Jump:


Users browsing this thread: 14 Guest(s)