Firewall rules only allow specific IP

Hi ,

I only want IP’s x.x.x.x and y.y.y.y to access /aaa and /bbb

I have created the following expression:
(ip.src ne x.x.x.x and http.request.uri.path in {"/aaa" “/bbb”}) or (ip.src ne y.y.y.y and http.request.uri.path in {"/aaa" “/bbb”})
with action Block.

The problem is all requests to /aaa and /bbb are blocked, even if I’m visiting from x.x.x.x or y.y.y.y. How to solve this?

Thanks in advance.

Should X only be able to access /aaa and Y only /bbb or should both addresses be able to access both paths?

Both should be able to access both paths.

Then this should work, though from a first glance it seems “similar” to your rule

(http.request.uri.path in {"/aaa" "/bbb"} and not ip.src in {x.x.x.x y.y.y.y})
1 Like

Thank you! This solved my issue.

This topic was automatically closed after 30 days. New replies are no longer allowed.