Update CSF Firewall to Version 15

This article provides a guide for how to update CSF firewall to version 15.

Launch 100% SSD VPS from $2.49/mo!

How to Update CSF Firewall to Version 15

To update CSF firewall to version 15, follow the steps below:

  1. SSH the server as root.
  2. Run the following command to copy the current CSF configuration:
    cp /etc/csf/csf.conf /etc/csf/csf.conf.bak
  3. Find other configuration files to save by running the following commands:
    cd /etc/csf
    find . -maxdepth 1 -type f -name "*.*ignore" -printf "%f\n"
    You should receive a response similar to:
    csf.uidignore
    cpanel.comodo.ignore
    csf.mignore
    csf.logignore
    cpanel.ignore
    csf.fignore
    csf.pignore
    csf.signore
    csf.rignore
    csf.ignore
    csf.suignore
  4. Backup these files. Ex:
    cp csf.uidignore csf.uidignore.bak && cp cpanel.comodo.ignore cpanel.comodo.ignore.bak && cp csf.mignore csf.mignore.bak && cp csf.logignore csf.logignore.bak && cp cpanel.ignore cpanel.ignore.bak && cp csf.fignore csf.fignore.bak && cp csf.pignore csf.pignore.bak && cp csf.signore csf.signore.bak && cp csf.rignore csf.rignore.bak && cp csf.ignore csf.ignore.bak && cp csf.suignore csf.suignore.bak
  5. Download the version 15 package from Github:
    cd /usr/src
    bash <(wget -qO - https://get.configserver.dev)
  6. Install new CSF firewall version:
    tar -xzf csf.tgz
    cd csf
    sh install.sh
  7. Copy the CSF configuration backup to the current configuration:
    cp /etc/csf/csf.conf.bak /etc/csf/csf.conf
  8. Restore backed up files:
    cd /etc/csf
    cp csf.uidignore.bak csf.uidignore && cp cpanel.comodo.ignore.bak cpanel.comodo.ignore && cp csf.mignore.bak csf.mignore && cp csf.logignore.bak csf.logignore && cp cpanel.ignore.bak cpanel.ignore && cp csf.fignore.bak csf.fignore && cp csf.pignore.bak csf.pignore && cp csf.signore.bak csf.signore && cp csf.rignore.bak csf.rignore && cp csf.ignore.bak csf.ignore && cp csf.suignore.bak csf.suignore

Launch 100% SSD VPS from $2.49/mo!

Conclusion

You now know how to update CSF firewall to version 15.

  • csf
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to Block Specific Countries Using CSF Firewall

This article provides a guide for how to block countries using CSF Firewall. How to Block...

How to Disable All LFD Emails

This article provides a guide demonstrating how to disable all LFD emails. How to Disable All...

Resolved: lfd on <hostname>: SYSLOG Check Failed

This article provides a guide to solve error warnings: "lfd on <hostname>: SYSLOG Check...

Install ConfigServer Firewall (CSF) in cPanel Server

This article provides a guide to install ConfigServer Firewall (CSF) in cPanel Server. This guide...

CSF Firewall CLI Guides

This article provides useful information for managing CSF firewall CLI. ConfigServer Security...