On Tue, Oct 16, 2012 at 10:49 AM, Zoe <
raea...@gmail.com> wrote:
> Thanks for explication.
> IP is not set anywhere else.
>
> Sorry for the lack of information :
>
> Ossec 2.6 is installed on server and agents with Suse Linux.
>
> # ossec.conf on Ossec Server
> <ossec_config>
> ...
> <command>
> <name>host-deny</name>
> <executable>host-deny.sh</executable>
> <expect>srcip</expect>
> <timeout_allowed>yes</timeout_allowed>
> </command>
>
> <command>
> <name>firewall-drop</name>
> <executable>firewall-drop.sh</executable>
> <expect>srcip</expect>
> <timeout_allowed>yes</timeout_allowed>
> </command>
>
> <command>
> <name>disable-account</name>
> <executable>disable-account.sh</executable>
> <expect>user</expect>
> <timeout_allowed>yes</timeout_allowed>
> </command>
>
> <command>
> <name>restart-ossec</name>
> <executable>restart-ossec.sh</executable>
> <expect></expect>
> </command>
>
> <command>
> <name>route-null</name>
> <executable>route-null.sh</executable>
> <expect>srcip</expect>
> <timeout_allowed>yes</timeout_allowed>
> </command>
>
> <active-response>
> <command>host-deny</command>
> <location>all</location>
> <level>10</level>
> <rules_id>11306</rules_id>
> <timeout>900</timeout>
> <repeated_offenders>15,30,60,120</repeated_offenders>
> </active-response>
>
> <active-response>-->
> <command>firewall-drop</command>
> <location>all</location>
> <level>10</level>
> <rules_id>11306</rules_id>
> <timeout>900</timeout>
> <repeated_offenders>15,30,60,120</repeated_offenders>
> </active-response>
> </ossec_config>
> ...
>
> # ossec.conf on Ossec agent
> <ossec_config>
> <client>
> <server-ip>1.1.1.2</server-ip>
> </client>
> <active-response>
> <repeated_offenders>15,30,60,120</repeated_offenders>
> </active-response>
> </ossec_config>
>
> Is there any other information that can help ?
>
Operating system?
> Thanks in advance for your help.
>
> Note : when ossec execute "firewall-drop delete" and "host-deny delete"
> after timeout, it's ok : IP is now allowed.
> But when I execute these commands manually, firewall and hosts.deny are
> modified, but IP remains blocked...
>
That doesn't make any sense. Are you positive you haven't missed
something? All the scripts do is remove the IP from the firewall or
hosts.deny. Perhaps the firewall rules have to be re-applied or
something?
Other than that, I have no clue. I've never seen this problem, and
don't know why your system would be blocking something without any
reason to block it (ossec doesn't directly do any blocking). You'd
think there'd be a log somewhere though...
> Zoe