How to use update CSF
Attention: The developers of CSF have discontinued the project, but it remains open-source.
IT IS VERY IMPORTANT TO UPDATE TO VERSION 15, THE LATEST FROM THE ORIGINAL DEVELOPERS because earlier versions attempt to update by downloading from the original developers’ domain. In the future, someone could potentially register that domain and use it to inject malicious code into your server.
Version 15 can be downloaded from the project centminmod
Several projects have continued development, the most notable is Aetherinox : csf-firewall
Here is the code I recommend for the update:
echo "La versión actual de csf es "$(csf -v);
echo -n "Pulsa intro para continuar [ENTER]: "; read var_name
cp /etc/csf/csf.conf /etc/csf/csf.conf.backup
wget https://github.com/centminmod/configserver-scripts/raw/refs/heads/main/csf.tgz -O /tmp/csf.tgz
tar -xzf /tmp/csf.tgz -C /tmp/
cd /tmp/csf; sh install.sh
sed -i 's|AUTO_UPDATES = "1"|AUTO_UPDATES = "0"|g' /etc/csf/csf.conf
csf -v