AmlaLinux-9

dLL







[root@mail ~]# dnf update -y &&  dnf upgrade -y             # dnf install epel-release -y
[root@mail ~]#  dnf install iptables perl-libwww-perl.noarch perl-LWP-Protocol-https.noarch perl-GDGraph wget tar perl-Math-BigInt -y# systemctl stop firewalld# systemctl disable firewalld

cd /tmp  wget https://download.configserver.com/csf.tgz   tar -zxvf csf.tgzcd  csf  
# ./install.sh# perl /usr/local/csf/bin/csftest.pl

#  rm -rf /tmp/csf rm /tmp/csf.tgz

#  Install Webmin Module (optional)


 cp /etc/csf/csf.conf /etc/csf/csf.conf.ORG cp /etc/csf/csf.allow /etc/csf/csf.allow.ORG cp /etc/csf/csf.deny /etc/csf/csf.deny.ORG cp /usr/local/csf/bin/regex.custom.pm /usr/local/csf/bin/regex.custom.pm.ORG


[root@mail ~]#  vi /etc/csf/csf.conf
            TESTING = "0"


  systemctl start csf.service && systemctl enable csf.service  systemctl restart csf && systemctl restart lfd  systemctl enable csf && systemctl enable lfd

# systemctl restart {csf,lfd} 

# systemctl enable {csf,lfd} 

# systemctl is-active {csf,lfd} 

# csf -v








LL