-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of temporary variables in v3 #2556
Comments
Fyi: |
Excusme, for lack attention. Very thanks Is an equivalent directive foreseen? |
no prob :)
you may have to check this solution. |
The workaround with TIME_EPOCH works, but it seems not 100%. Using TIME_EPOCH sometimes receives a different value in the middle of the execution. See below: Rules:
audit.log:
Note that in first request IP.TIME '1619443653' was assigned with the current timestamp: 1619443636, 1 second later another request is made and the variable IP.TIME is set to '1619443526' (2 minutes less than the correct time) and enters the rule id:19. I also noticed that making multiple requests followed in a short period of time sometimes IP.TIME alternates, with about 5 seconds of difference from the true value. |
@zimmerle are you sure you wanted to assign this for me? |
Since you have commented on the issue, I assumed that you are interested in providing a solution. |
This appears to be a duplicate of #1803 . Closing ... |
In tests to make temporary blocks with setvar and expirevar I noticed that the time and the increment of the variable seem to be failing. Rules used in the test below:
When reaching the limit configured of 404 response (3 times == rule id:21) the variable resumes counting, the behavior does not always occur in the same way, sometimes the variable is reset to 3 times until the block is made (return 408 configured), sometimes works correctly.
The time configured in expirevar don't is respectly, this common comportment the all tests
The same rules were used successfully in version 2.
The text was updated successfully, but these errors were encountered: