Page 1 of 1

csf -ca ip error on centos 6

Posted: 19 Oct 2013, 16:08
by hellboy
csf -ca 82.83.84.85
Can't locate object method "new" via package "Crypt::CBC" (perhaps you forgot to load "Crypt::CBC"?) at /usr/sbin/csf line 443.

Re: csf -ca ip error on centos 6

Posted: 19 Oct 2013, 21:40
by ForumAdmin
That suggests that you are using a cluster command (-ca) without having configured a csf cluster.

Re: csf -ca ip error on centos 6

Posted: 20 Oct 2013, 05:01
by hellboy
I found out what is the problem, is not loading that perl Crypt::CBC because is not set to be loaded. I just add it and it works. I was using it just as a simple shell command and allways recieved same error on 3 different servers. Please look in too it.

# start clustersend
sub clustersend {

use Crypt::CBC;
use IO::Socket::INET;

my $text = shift;
my $cipher = Crypt::CBC->new( -key => $config{CLUSTER_KEY}, -cipher => 'Blowfish_PP');
my $encrypted = $cipher->encrypt($text);;