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!
BLOCK REPORT
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: BLOCK REPORT
That is purely for blocks made by lfd, not manual blocks via csf.
Re: BLOCK REPORT
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!
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!