Hi,
I am running a web server, and have OSSEC running on it. I am trying to create a active response rule/action to run the host-deny script if OSSEC receives any alerts from rule 2502 (User missed the password more than one time). I put the following in my ossec.conf
<command>
<name>host-deny</name>
<executable>host-deny.sh</executable>
<expect>srcip</expect>
<timeout_allowed>yes</timeout_allowed>
</command>
<active-response>
<disabled>no</disabled>
<command>host-deny</command>
<location>local</location>
<rules_id>2502</rules_id>
<timeout>60</timeout>
</active-response>
I restart OSSEC, and watch the active response log, and I run a simulated attack against the server. It shows up in my alerts.log as a 2502 rule, but doesn’t show up in the active response log, or end up denying the host like I was looking for. Is there something wrong with my syntax? I would appreciate any help you can give me. I saw your post, and thought hopefully you could help me.
Thank You
Steve