their is an ALB associated with WAF. This ALB will be called by both public and other internal IPs.
I have enabled GEO Matching rule to allow only ["US"] calls. but the internal private IP don’t get labelled with any country. and it is getting blocked.
how to exclude internal IPs.
2
Answers
Let me update how I have solved it. please note the AWS Console UI doesn't support nested conditions. So I have created a rule as below.
requirement: Internal IP's wont have geo locations, So allow Internal IP only or allow external IP only from "US" geo location.
Rule:
You could create an IP set for your internal IP addresses and create a rule to allow it:
Create IP set
in the upper right cornerAllowed internal IPs
example 10.0.0.0/16). If you need more ranges or addresses, just
separate them by new line
Web ACL
>Add rule
>Add my own rule
If a request matches a statement
> Inspect ->Originates from an IP address in
-> IP set – select previously created IP setSave