Installing, configuring and allow ports in WHM firewall with ConfigServer Security & Firewall (CSF)
Config Server Firewall (CSF) is a Stateful Packet Inspection (SPI) firewall and Security application for Linux servers. CSF will protect your server against attacks, such as brute force, and improve server security and many more.
CSF will work as a WHM plugin and is free. Follow these instructions to complete a basic CSF installation:
STEP 1: INSTALL CSF
Login with your ssh access then run the following commands.
cd /usr/local/src/ wget https://download.configserver.com/csf.tgz tar -xzf csf.tgz cd csf sh install.sh
After installation complete You will see “Installation Completed” as status.
cd .. rm -Rfv csf/ csf.tgz
STEP 2: OPEN PORT IN CSF FIREWALL THROUGH WHM
- Login to WHM.
- Type firewall in Find bar and click on ConfigServer Security&Firewall link.
- At this page, click on the Firewall Configuration button.
- Scroll down and find out Allow incoming TCP ports section. Enter the port you wish to open and click on the Change button at the bottom to save your changes. Then after, you will need to restart csf by clicking on Restart csf+lfd button.