Search This Blog

Tuesday, May 15, 2012

Installation of ConfigServer Security (csf) - cPanel

Installation and configuration of ConfigServer Security(csf & lfd) - for cPanel

csf installation:

1) Login to WHM and navigate to EasyApache.
2) For perfect installation and working of CSF and your websites, you will need to enable next modules and extensions before starting install it.

Must be enabled:

Ident
Imagemap
Mime Magic
Bz2
Curl
Curlwrappers
Exif
GD
Magic Quotes
Mbregex
Mbstring
Mcrypt
Mysql
PDO
TTF
Tidy
XSL
Zip

For finish installation choose "Save and build" and wait few minutes until you get complete message.
Next steps:
Connect to your server via ssh and run next commands to install csf:

cd ~
tar -xzf csf.tgz
cd csf
sh install.sh

That's all, csf is installed successfully . To configure csf and lfd go to /etc/csf/ directory and open with your favorite editor next files:
cd /etc/csf
vi csf.conf
White list: csf.allow
Black list:  csf.deny
To add a specific IP to black list edit csf.deny and add IP Address.
For example:
vi csf.deny
167.XXX.XX.XXX # (too many wrong authentication)
All logs of csf located in /var/logs/lfd.log
To start/stop/restart csf, run from command line /etc/init.d/csf start
Also you can configure it through WHM -> Plugins -> ConfigServer Security & Firewall.
eNj0y!




No comments:

Post a Comment