How to install and work with CSF plugin?

How to install and work with CSF plugin?

How to install and work with CSF plugin?

WHM has few rules and regulations. To edit the rules in WHM, Config server is used to alter the iptables. It has few features such as login, Linux server use security mechanism, intrusion detection mechanism, SPI (stateful packet inspection).

You might have heard about brute force, for this kind of hacking methodologies plugin installation is must to protect your information’s.
  • Installation
  • Rules for firewall management
  • Manual IP address block
  • Ip address whitelisting Manual process
  • Email notification disable method
  • Port opening
  • Ip status cross-checking in firewall

  • Installation:
You have only one choice to install CSF in terms of command line interface.
Code:
cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
Execute this command line and get confirmation message.

Enabling CSF:

Step 1: In WHM, choose plugin and then config server security & Firewall.
firewall.png


Step 2: Test mode will be notified after installation process completed. Here, you need to configure the firewall configurations.
firewall2.png

Set the testing field value as 0.
firwall3.png


Step 3: Click change and then restart csf+lfd.
firewall4.png


Firewall will be enabled automatically and you will get confirmation message one by one.
  • Rules in firewall management: Most common used rules are identified separately.
  • Manual IP block: To block the IP address manually click on quick deny option.
firewall5.png

  • IP address whitelisting manually: To avoid the process of blocking in IP address click on quick allow option.
firewall6.png

  • IP status cross-checking in firewall: If you have any confusion like your IP address is blocked or not, search it in the search for IP field. Enter the IP address and so, you will get details regarding the IP address blockage.
firewall7.png

  • Port opening: In firewall configuration, turn out TPC_IN/OUT and UDP_IN/OUT. Add your port in TCP_IN and check whether port is opened or not. Finally, click on change button for CSF restart method.
firewall8.png

  • Email notification disable: Once if you turn off the following ports, you will get an notification saying email notification is disabled.
firewall9.png

  • LF_CPANEL_ALERT, LF_CONSOLE_EMAIL_ALERT, LF_WEBMIN_EMAIL_ALERT, LF_SU_EMAIL_ALERT, LF_SSH_EMAIL_ALERT.
Once if you turned off all, kindly tap on the change button only so CSF will restart. If the CSF restarts and so, all your changes will be enabled.

Code:
LF_SSH_EMAIL_ALERT="0"
LF_SU_EMAIL_ALERT="0"
LF_WEBMIN_EMAIL_ALERT="0"
LF_CONSOLE_EMAIL_ALERT="0"
LF_CPANEL_ALERT="0"
Add all the above command lines in file and then restart CSF.
Author
bhawanisingh
Views
2,522
First release
Last update
Rating
0.00 star(s) 0 ratings
Top