BLOCK REPORT

Post Reply
HostBob
Junior Member
Posts: 53
Joined: 20 Feb 2013, 18:34

BLOCK REPORT

Post 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!
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: BLOCK REPORT

Post by ForumAdmin »

That is purely for blocks made by lfd, not manual blocks via csf.
HostBob
Junior Member
Posts: 53
Joined: 20 Feb 2013, 18:34

Re: BLOCK REPORT

Post 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!
Post Reply