csf -ca ip error on centos 6

Post Reply
hellboy
Junior Member
Posts: 2
Joined: 19 Oct 2013, 16:06

csf -ca ip error on centos 6

Post 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.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: csf -ca ip error on centos 6

Post by ForumAdmin »

That suggests that you are using a cluster command (-ca) without having configured a csf cluster.
hellboy
Junior Member
Posts: 2
Joined: 19 Oct 2013, 16:06

Re: csf -ca ip error on centos 6

Post 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);;
Post Reply