Page 1 of 1

UNBLOCK_REPORT not being triggered.?

Posted: 23 Apr 2017, 15:11
by richard_s
I'm trying to synchronize LFD with Cloudflare using these scripts:

https://github.com/ducohosting/lfd-cloudflare

It's working as far as the BLOCK_REPORT goes but it doesn't appear that UNBLOCK_REPORT is being triggered. Even if the script is failing should it at least be logged that it was triggered? Here is the LFD log:

Code: Select all

Apr 23 09:07:35 cp1 lfd[21223]: (cpanel) Failed cPanel login from xxx.xxx.xxx.xxx (xxxxxxx): 3 in the last 3600 secs - *Blocked in csf* for 250 secs [LF_CPANEL]
Apr 23 09:07:35 cp1 lfd[21226]: debug: BLOCK_REPORT [/etc/csf/scripts/cloudflare/block.sh] triggered
Apr 23 09:11:45 cp1 lfd[21443]: Incoming IP xxx.xxx.xxx.xxx temporary block removed
Apr 23 09:11:45 cp1 lfd[21443]: Outgoing IP xxx.xxx.xxx.xxx temporary block removed
I've double checked the paths and file permissions so I'm not sure what the issue is.

Re: UNBLOCK_REPORT not being triggered.?

Posted: 24 Apr 2017, 00:10
by richard_s
Just did a quick test and edited the script being triggered by UNBLOCK_REPORT so it simply wrote to a log file and it worked. Apparently the original issue is with the script.

That said there there is still no indication in the LFD log file that it was triggered. Bug?