AWS ALB different ingress rules for different url paths

231 views Asked by At

I have internet-facing AWS ALB. I must accept all HTTP traffic only from whitelist set of ip addresses. At the same time there's one exclusion for mydomain.com/some_path - it should accept HTTP traffic from all IPs (0.0.0.0/0).

Am I on the right way trying to configure this logic with ALB? Should I use path condtions for this purpose?

1

There are 1 answers

3
Mark B On BEST ANSWER

You can't do that via ELB settings and you can't do that via security groups. One option would be to attach a Web Application Firewall (WAF) to the ELB and then create the appropriate IP matching rules there.