-
Notifications
You must be signed in to change notification settings - Fork 606
IgnoreIP and IgnoreCIDR not whitelisting correctly #534
Comments
can you provide a raw http request? even a cURL one generated by the browser is ok. |
Hey, should have included that from the get go, my bad. The curl command:
And, the log generated by NAXSI looks like this:
Note, this vhost does have Libinjection enabled too which was not included in the original configs above. Let me know if you need any more info, thanks! |
I have the same situation, trying different methods. |
probably there is a bug on the IgnoreXXX methods |
let us know when it's ready to do the tests. |
Thanks for reproducing this issue... If there's more system info I can supply I'd be happy to. And, if there's a prerelease version or a testing build loop me in! |
I also tried to use if statements (icky, I know) to accomplish the same thing but wasn't successful:
Seems like the naxsi config pieces aren't allowed in |
i can confirm the bug. i'm trying to patch it and make a new release once confirmed working. |
ok, it should be fixed. please test the master |
Just reinstalled from master branch. Here's what I found:
Thanks for getting it to a workable state! The main issue is solved which is great. |
hmm that's weird, but thank you for letting me know. actually i convert the /32 and /128 to IgnoreIP |
Ok, found the bug and pushed to master. if both of you (@noahbailey and @rickygm) can confirm the fixes, i'll make a new release. |
It's ready, it works perfect, just a suggestion, you could add a flag in the log, that says client_whitelist: 1.1.1.1 |
Yeah, that fixed /32 cidr's. |
You should see that the |
Yes, I see it |
i'll close this issue. thank you for your feeback. |
Version 1.2 released. many thanks again :) |
Just updated to Nginx 1.18.0 & NAXSI 1.1, and am not able to use the IP whitelisting feature.
I compile naxsi/nginx from source on this system. This particular server runs Ubuntu 16.04, but have also tested this on 18.04 with the same install procedure.
Config snippets
/etc/nginx/rules/naxsi.rules
/etc/nginx/sites-enabled/my-site.conf
Nginx versions
Let me know if I made an obvious mistake, or if this is a real bug... Thanks all!
The text was updated successfully, but these errors were encountered: