Page 1 of 1

CSF freezing after update

Posted: 11 Apr 2015, 14:07
by talen-j
Hi,

Running Centos 7.1 on my VPS with firewalld disabled and iptables installed. CSF has been working without incident for 5 months until today when an update was available today which I installed.

When trying to restart csf/lfd it freezes at the line below. Although CSF states it is running it is not effective after several tests I did.

Flushing chain `INPUT'
Flushing chain `FORWARD'
Flushing chain `OUTPUT'
Flushing chain `PREROUTING'
Flushing chain `INPUT'
Flushing chain `OUTPUT'
Flushing chain `POSTROUTING'
Flushing chain `INPUT'
Flushing chain `FORWARD'
Flushing chain `OUTPUT'
open3: exec of is-active firewalld failed at /usr/sbin/csf line 625.

I restored my server snapshot, deleted firewalld and completed the update again which made no difference.

On checking line 625 in /usr/sbin/csf (see below) it mentions firewalld.

Code: Select all

my $cmdpid = open3($childin, $childout, $childout, $config{SYSTEMCTL},"is-active","firewalld");
I am a bit confused as CSF does not officially support Centos 7 and as far as I am aware does not work with firewalld (only iptables).

Why is firewalld mentioned in this line if it not supported? Is it safe to delete this line or do I need to avoid the update at the present time.

Thanks for any advice.

Regards,

Talen

Re: CSF freezing after update

Posted: 11 Apr 2015, 15:25
by ForumAdmin
Check your /etc/csf/csf.conf (near the bottom) and ensure that it has an option set to the correct location of systemctl on your server:

Code: Select all

SYSTEMCTL = "/usr/bin/systemctl"

Re: CSF freezing after update

Posted: 12 Apr 2015, 13:31
by talen-j
Thank you for the quick response and advice. This resolved the problem.

Talen