Skip to content

Negation on operators not working #18

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

Closed
masterdead opened this issue Sep 26, 2016 · 1 comment
Closed

Negation on operators not working #18

masterdead opened this issue Sep 26, 2016 · 1 comment
Assignees

Comments

@masterdead
Copy link

masterdead commented Sep 26, 2016

Hi,

iam tried to use negation on operator eg. !@ipmatch, but not work.
If i use this rule
SecRule REMOTE_ADDR "!@ipmatch 172.16.71.132" \ "msg:'DENY TEST',\ id:1,\ t:none,\ deny"
but in debug log operator starting without !
[4] (Rule: 1) Executing operator "@ipmatch" with param "172.16.71.132" against REMOTE_ADDR.

And question is, negation is not implemented?

@zimmerle zimmerle self-assigned this Oct 18, 2016
@zimmerle
Copy link
Contributor

Hi @masterdead,

Sorry for the delay. In fact, the `negation' variation was not enabled to the ipmatch operator. Recent change s on the libModSecurity code (owasp-modsecurity/ModSecurity@8757840) enables the negation variation to all the operators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants