Page 1 of 1

lfd unable to start

Posted: 07 Jun 2018, 10:23
by bonzo
After a fresh install of csf, I'm getting this error while trying to start

Code: Select all

Jun 07 11:17:27 mail.aria systemd[1]: Starting ConfigServer Firewall & Security - lfd...
Jun 07 11:17:27 mail.aria lfd[6704]: Can't use an undefined value as a symbol reference at /usr/sbin/lfd line 7186.
Jun 07 11:17:27 mail.aria systemd[1]: lfd.service: Control process exited, code=exited status=25
Jun 07 11:17:27 mail.aria systemd[1]: Failed to start ConfigServer Firewall & Security - lfd.
Jun 07 11:17:27 mail.aria systemd[1]: lfd.service: Unit entered failed state.
Jun 07 11:17:27 mail.aria systemd[1]: lfd.service: Failed with result 'exit-code'.
System is the latest Debian 9 with all updates installed

Re: lfd unable to start

Posted: 14 Jun 2018, 17:04
by Sopor
I got the same message in Ubuntu server 18.04. I was able to fix it by changing TESTING = "1" to "0", but this make me not test the CSF before going LIVE so that can be a risky move. Something seems to be wrong if you can't test the firewall.

Re: lfd unable to start

Posted: 24 Jun 2018, 20:42
by tgage
I agree that there is an error in the source code as lfd should fail reporting "Error* lfd will not run with TESTING enabled in /etc/csf/csf.conf" rather than attempting to start and failing when it tries to close and unlink the /var/run/lfd.pid file.

Bug aside, LFD will not run when TESTING mode is enabled.

Re: lfd unable to start

Posted: 24 Jun 2018, 20:48
by tgage
Opened bug report against lfd:
viewtopic.php?f=4&t=10879

Re: lfd unable to start

Posted: 24 Jun 2018, 20:49
by tgage
@Sopor, even without LFD running, you can still test the firewall as csf is enabled along with are the iptables rules.

Re: lfd unable to start

Posted: 24 Jun 2018, 21:07
by tgage
I posted a patch that fixes the error message here:
viewtopic.php?f=4&t=10879

Note: As LFD is not supposed to start in TESTING mode, this patch only fixes the error message to report the correct, more meaningful, error.