[英]How do I configure AWS Application load balancer and NAT gateway to have the public IP
so currently in our infrastructure we are using ECS with an application load balancer for inbound traffic and a NAT gateway for outbound traffic.所以目前在我们的基础设施中,我们使用 ECS 和应用程序负载均衡器来处理入站流量,以及一个 NAT 网关来处理出站流量。 I am looking to configure both inbound and outbound traffic to have the same public IP address but I am not sure how this is done as I've tried may different ways to achieve this but nothing seemed to have worked.
我希望将入站和出站流量配置为具有相同的公共 IP 地址,但我不确定这是如何完成的,因为我尝试了可能不同的方法来实现这一点,但似乎没有任何效果。 If we take a look at the below image our infrastructure is similar except that we us EC2 and not fargate as we prefer to maintain our own instances
如果我们看一下下图,我们的基础设施是相似的,除了我们使用 EC2 而不是 fargate,因为我们更喜欢维护我们自己的实例
I would be very thankful if anyone could please help me out with this如果有人能帮我解决这个问题,我将不胜感激
I don't think this is possible.我不认为这是可能的。 External traffic is always routed though a NAT gateway, and incoming either though unknown number of ever changing load balancers or directly to IP of the eg EC2 instance.
外部流量始终通过 NAT 网关路由,并通过未知数量的不断变化的负载均衡器或直接传入 EC2 实例的 IP。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.