![]() |
|
Install CSF Firewall - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: Community Guides & How-To's v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=33) +---- Thread: Install CSF Firewall (/showthread.php?tid=436) |
Install CSF Firewall - Me.B - 10-12-2014 This was posted previously on our old community panel: CSF Firewall is an extended firewall setup including audit/aide setup with web interface to manage firewall. Code: rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.shWebsite: http://www.configserver.com/cp/csf.html Some of features included: Quote:This suite of scripts provides:Notice that this script is not suited for small VPS instances as it will add more services/packages running in the background. RE: Install CSF Firewall - Cantalupo - 12-18-2014 Use commands Separated list of commands so you can better control the CSF features (replace (IP)): CSF -g (IP)> Checks whether the searched IP is blocked csf -a (IP) "Reason - Your Name"> Adds an IP in the server whitelist. Use with caution and release only fixed IP csf -d (IP) "Reason - Your Name"> Blocks IP in firewall and add the comment in /etc/csf/csf.deny file CSF -Tr (IP)> Remove the temporary blocking of an IP CSF -Dr (IP)> Remove the definitive blocking an IP grep IP /var/log/lfd.log > Check the reason for a temporary lock more.... RE: Install CSF Firewall - DimitarBG - 12-18-2014 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::GraphRE: Install CSF Firewall - DimitarBG - 12-18-2014 My server is VPS - Intel® Xeon® CPU E3-1270 v3 @ 3.50GHz - 60GB SSD - 2GB RAM and this CSF eat my cpu sometimes ... RE: Install CSF Firewall - onlineth - 04-09-2015 I know this is a stupid question but does CSF have a front end like CPanel? RE: Install CSF Firewall - Active8 - 04-10-2015 Code: wget --no-check-certificate https://raw.github.com/stokes84/ConfigServer-Firewall-Installer/master/install.sh; bash install.sh; rm -f install.shOne single line of code , you have than CSF & GUI Panel for CSF
RE: Install CSF Firewall - onlineth - 04-10-2015 (04-10-2015, 06:34 AM)Active8 Wrote: THANK YOU
RE: Install CSF Firewall - apinto - 04-10-2015 What would you suggest as minimal Requirments for a VPS to be able to use CSF? RE: Install CSF Firewall - Me.B - 04-10-2015 1GB as loads more services and better 2GB. Same if you plan to use clamAV/spamassassin you should think about min 2G. M B RE: Install CSF Firewall - Active8 - 04-11-2015 on my 512 mb VPS it runs without problems |