Page 1 of 1

BLOCK REPORT

Posted: 23 Feb 2016, 18:23
by HostBob
Does CSF/LFD only trigger BLOCK REPORT script execution when LFD blocks an IP?

I've set up a script to take an action on receipt of notification of a blocked IP. Run manually from the command line it works fine like this:

sh myscript.sh 1.1.1.1

The script is owned by root and has permissions set to 700.

I set the BLOCK REPORT value by editing the csf.conf file, and then restarted CSF/LFD.

But when I then manually add an IP to the CSF BLOCK list using the WHM interface, my script does not appear to be being run.

What am I doing wrong?

TY!

Re: BLOCK REPORT

Posted: 23 Feb 2016, 21:37
by ForumAdmin
That is purely for blocks made by lfd, not manual blocks via csf.

Re: BLOCK REPORT

Posted: 23 Feb 2016, 22:25
by HostBob
Ah.

Well, I triggered an LFD block. And it didn't work either. I guess I'm still doing something wrong.

in the BLOCK REPORT I have set it up as, literally:

sh /mypath/myscript.sh

Should I just have

/mypath/myscript.sh

?

TY!