just got this on my own server today. Figured I'd help.
As far as I can tell, the error is generated by the below foreach:
File; /usr/sbin/lfd
%configsetting;
foreach my $line (slurp("/etc/csf/csf.conf")) {
$line =~ s/$cleanreg//g;
if ($line =~ /^(\s|\#|$)/) {next}
my ($name,$value) = split (/=/,$line,2);
$name =~ s/\s//g;
if ($value =~ /\"(.*)\"/) {
$value = $1;
} else {
*Line 64* ---> &cleanup(__LINE__,"*Error* Invalid configuration line");
}
if ($configsetting{$name}) {&cleanup(__LINE__,"*Error* Setting $name is repeated in /etc/csf/csf.conf -$
$config{$name} = $value;
$configsetting{$name} = 1;
}
So, we can see line 64 " &cleanup(LINE,"Error Invalid configuration line"); " is thrown when the foreach/if statement logic is given a false.
For each line in /etc/csf/csf.conf, it will do some check, then report if it fails. What I don't get is why it's not giving us the exact line in the /etc/csf/csf.conf that is problematic. I checked line 54 of the csf.conf, and it's just fine - --
# Allow incoming PING
Line 64 --> ICMP_IN = "1"
I've removed it, and still "line 64" is the issue.
Well, guess what works? Just replacing the csf.conf with a new one from the installation package and redoing any edits you've done manually: http://www.configserver.com/free/csf.tgz
sigh