By default OSSEC has a static timeout on our active response scripts. You specify the action and how long to block the IP Address:
Which works well for most of the time. However, if you need to increase the timeout for repeated offenders (say the same IP trying to brute force your server all the time), you would have to do this manually.
To solve this problem, we added a new option to the active response config (repeated_offenders):
It allows you to specify a comma separated list of timeouts per re-incidence (in minutes). So the first time an IP is blocked it would use the default timeframe (600 seconds).
If it gets blocked again, it would use the first entry in the