Skip to content

Allow public IPs to reach an internal app that is behind a private ALB

0

We have an internal app that is behind a private ALB, but we need to allow some public IPs of a third party to send POST requests to it. Can you please provide some solutions?

asked 10 months ago142 views
3 Answers
1

If you need to keep your ALB private, you must add another public resource to make it reachable from the internet and forward traffic to your ALB. I suggest using API Gateway.
How do I integrate an API Gateway REST API with an Application Load Balancer?

If you can modify your private ALB to be public, you can restrict access by allowing only your trusted public and private IPs.

answered 10 months ago
EXPERT
reviewed 10 months ago
  • Is this not possible with a public ALB?

  • Yes, it is. If you can switch to a public ALB, you will need to restrict the ALB security group to allow only the needed IPs (for security reasons, if needed). To allow communication between your public ALB and private subnets, you must attach your ALB to a public subnets within the same AZ than your private subnets. Public LB with private subnets

1

Another option is to use Global Accelerator to make your ALB available on internet. Use security groups to limit inbound access to the third party source IP. Refer to the linked blog post for more information

AWS
EXPERT
answered 10 months ago
0

my understanding by given scenario is:- application resides in private subnet in your VPC where ALB is load balancing and it is private and only authorized third party is allowed,** POST request need allow**.

NLB: here need something public facing that allow authorized public IP in your case third party POST request. need to configure the NLB to forward traffic to the private ALB.

NLB Security Group: allow inbound traffic from specific third -party public IP's on port (port should match the application's port) outbound traffic to private ALB

private ALB Security Group: allow inbound traffic from NLB's Security Group. allow outbound traffic to application instances' security group.

application instances security group: allow inbound traffic from ALB Security Group.

if you clarify the architect, are they using WAF? than need to create rule to allow POST request.

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.