Skip to content

Cheatsheet: Troubleshooting

The information below is a list of errors you may receive within CSF, and steps on how to correct each issue.


Can't locate object method "new" via package "Crypt::CBC" at /usr/sbin/csf line ***

This error occurs when Crypt::CBC cannot be found. It is sometimes seen when executing commands such as sudo csf -cp.


To correct the issue, open the file /usr/sbin/csf in a text editor.

Locate the lines:

use ConfigServer::Sendmail;
use ConfigServer::LookUpIP qw(iplookup);

Add a new line with use Crypt::CBC as shown below:

use ConfigServer::Sendmail;
use ConfigServer::LookUpIP qw(iplookup);
use Crypt::CBC


Save the file, and re-execute your previous command which caused the error.




csf[46313]: open3: exec of /sbin/ipset flush failed: No such file or directory at /usr/sbin/csf line ****.

This error occurs when you are missing the package ipset. Install it with the following commands:


Debian based systems:

sudo apt update
sudo apt-get install ipset

Redhat based systems:

sudo yum check-update
sudo yum install ipset