Christmas Holiday

We will be closing our Store, Sales and Helpdesk from 17:30 Wednesday, 23rd December 2020 to 09:00 Monday, 4th January 2021. No orders, support requests or sales emails will be processed between those dates.

If you purchase a license or Service Package before the closing date and require installation, please be sure to leave at least 24 hours before then for the work to be done. Otherwise, any work will be scheduled for after this period.

Unable to restart LFD from webmin

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
gmariani405
Junior Member
Posts: 11
Joined: 05 Nov 2014, 14:47

Unable to restart LFD from webmin

Post by gmariani405 »

I'm running CentOS 7 with csf v14.08. If i log into webmin and restart CSF it works fine. If i go to restart LFD, it shows a blank response and says done. But on SSH, it says that the LFD restart is pending, and will stay that way for 90s until it times out and the service is killed. Which after that, the webmin interface dies. Here is the service status log before, during and after I try to restart from webmin.

Code: Select all

[root@filter csf]# systemctl status lfd -l
● lfd.service - ConfigServer Firewall & Security - lfd
   Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2020-11-16 22:19:48 UTC; 8min ago
  Process: 3706 ExecStart=/usr/sbin/lfd (code=exited, status=0/SUCCESS)
 Main PID: 3719 (lfd - sleeping)
   CGroup: /system.slice/lfd.service
           ├─3719 lfd - sleepin
           └─3725 lfd U

Nov 16 22:19:48 filter lfd[3719]: SSH Tracking...
Nov 16 22:19:48 filter lfd[3719]: Webmin Tracking...
Nov 16 22:19:48 filter lfd[3719]: SU Tracking...
Nov 16 22:19:48 filter lfd[3719]: Console Tracking...
Nov 16 22:19:48 filter lfd[3719]: Watching /var/log/maillog...
Nov 16 22:19:48 filter lfd[3719]: Watching /var/log/messages...
Nov 16 22:19:48 filter lfd[3719]: Watching /var/log/secure...
Nov 16 22:19:48 filter lfd[3719]: Watching /var/log/customlog...
Nov 16 22:19:48 filter lfd[3719]: Watching /var/log/httpd/error_log...
Nov 16 22:19:48 filter lfd[3733]: *User Processing* PID:14032 Kill:0 User:centos Time:2713 EXE:/usr/bin/bash CMD:-bash

[root@filter csf]# systemctl status lfd -l
● lfd.service - ConfigServer Firewall & Security - lfd
   Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; vendor preset: disabled)
   Active: deactivating (stop-sigterm) since Mon 2020-11-16 22:28:59 UTC; 1min 6s ago
  Process: 3706 ExecStart=/usr/sbin/lfd (code=exited, status=0/SUCCESS)
 Main PID: 3719 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/lfd.service
           ├─5131 lfd - sleepin
           └─5137 lfd U

Nov 16 22:28:59 filter lfd[5131]: SSH Tracking...
Nov 16 22:28:59 filter lfd[5131]: Webmin Tracking...
Nov 16 22:28:59 filter lfd[5131]: SU Tracking...
Nov 16 22:28:59 filter lfd[5131]: Console Tracking...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/maillog...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/messages...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/secure...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/customlog...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/httpd/error_log...
Nov 16 22:28:59 filter lfd[5145]: *User Processing* PID:14032 Kill:0 User:centos Time:3264 EXE:/usr/bin/bash CMD:-bash

[root@filter csf]# systemctl status lfd -l
● lfd.service - ConfigServer Firewall & Security - lfd
   Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Mon 2020-11-16 22:30:29 UTC; 30s ago
  Process: 3706 ExecStart=/usr/sbin/lfd (code=exited, status=0/SUCCESS)
 Main PID: 3719 (code=exited, status=0/SUCCESS)

Nov 16 22:28:59 filter lfd[5131]: Console Tracking...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/maillog...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/messages...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/secure...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/customlog...
Nov 16 22:28:59 filter lfd[5131]: Watching /var/log/httpd/error_log...
Nov 16 22:28:59 filter lfd[5145]: *User Processing* PID:14032 Kill:0 User:centos Time:3264 EXE:/usr/bin/bash CMD:-bash
Nov 16 22:30:29 filter systemd[1]: lfd.service stop-sigterm timed out. Killing.
Nov 16 22:30:29 filter systemd[1]: Unit lfd.service entered failed state.
Nov 16 22:30:29 filter systemd[1]: lfd.service failed.
For what it's worth, if i run csftest.pl this is what i get:

Code: Select all

[root@filter modules-load.d]# perl /usr/local/csf/bin/csftest.pl
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...OK
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK

RESULT: csf should function on this server
gmariani405
Junior Member
Posts: 11
Joined: 05 Nov 2014, 14:47

Re: Unable to restart LFD from webmin

Post by gmariani405 »

If i could get someone to please look at this I'd appreciate it. Not sure where to go with it.
Post Reply