Wednesday, December 20, 2017

Download and Install CSF and LDF with WHM Interface Step by Step

SHARE

Download and Install CSF and LDF with WHM Interface Step by Step

Download and Install CSF and LDF

Many linux administrator need to secure his server special Cpanel servers throw Download and Install CSF and LDF with WHM Interface, on below steps you will know how to download and install CSF and LDF with the WHM interface.

Steps to Download and Install CSF and LDF:-

The Installation is quite straightforward you can see below steps:-

1- Open teh directory that you want to download CSF and LDF inside it:-
cd /usr/src

2- Remove any previose version"-
rm -fv csf.tgz

3- download CSF and LDF using wget command for centos and redhat:-
wget https://download.configserver.com/csf.tgz

4- Extract CSF and LDF using tar command:-
tar -xzf csf.tgz

5- Open file that you extracted it:-
cd csf

6- finally install CSF and LDF using below command:-
sh install.sh

Steps to Uninstall  CSF and LDF:-

With WHM Interface you can use below command to uninstall and remove csf and lfd:-
cd /etc/csf
sh uninstall.sh

 CSF SSH Command Line Commands:-

Command Description Example
csf -s Start the firewall rules root@server[~]#csf -s
csf -f Flush/Stop firewall rules (note: lfd may restart csf)
root@server[~]#csf -f
csf -r Restart the firewall rules root@server[~]#csf -r
csf -a [IP.add.re.ss] [comment] Allow an IP and add to /etc/csf/csf.allow
root@server[~]#csf -a 187.33.3.3 Home IP Address
csf -tr [IP.add.re.ss] Remove an IP from the temporary IP ban or allow list.
root@server[~]#csf -tr 66.192.23.1
csf -tf Flush all IPs from the temporary IP entries
root@server[~]#csf -tf
csf -d [IP.add.re.ss] [comment] Deny an IP and add to /etc/csf/csf.deny root@server[~]#csf -d 66.192.23.1 Blocked This Guy
csf -dr [IP.add.re.ss] Unblock an IP and remove from /etc/csf/csf.deny root@server[~]#csf -dr 66.192.23.1
csf -df Remove and unblock all entries in /etc/csf/csf.deny root@server[~]#csf -df
csf -g [IP.add.re.ss] Search the iptables and ip6tables rules for a match (e.g. IP, CIDR, Port Number) root@server[~]#csf -g 66.192.23.1
csf -t  Displays the current list of temporary allow and deny IP entries with their TTL and comment  root@server[~]#csf -t


I hope you are get good info from this article and if you have any problem about Download and Install CSF and LDF with WHM Interface Step by Step you can make comment and i will help you.
SHARE

Author: verified_user

1 comments:

Aswad Blogs said...

This is an incredibly rousing article.I am essentially satisfied with your great work.You put truly exceptionally accommodating data. Keep it up. Continue blogging. Hoping to peruse your next post.
Quotes About Helping Others
Whatsapp Status About Life