简体   繁体   English

如何配置 AWS 应用程序负载均衡器和 NAT 网关以拥有公共 IP

[英]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,因为我们更喜欢维护我们自己的实例

Screen shot截屏

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.

相关问题 您是否需要在 AWS 上使用 Global Accelerator 的 NAT 网关和私有应用程序负载均衡器? - Do you need a NAT Gateway with a Private Application Load Balancer using Global Accelerator on AWS? 我是否必须在 AWS Application Load Balancer 后面的 nginx.conf 文件中配置 SSL 证书文件? - Do I have to configure SSL certificates files in nginx.conf file behind AWS Application Load Balancer? 如何使用 AWS CLI 获取 NAT 网关公共 IP? - How can I get the NAT gateway public IP using the AWS CLI? 如何在us-east-1之外将HTTPS API网关和应用程序负载均衡器结合使用? - How do I combine AWS API Gateway and Application Load Balancer for HTTPS outside of us-east-1? 如何为AWS中的所有IP都具有一个Nat网关,并允许返回流量不通过NAT网关? - How to have a Nat gateway for all ip's in AWS and allow returning traffic to not going through the NAT Gateway? 如何在AWS Elastic Beanstalk环境中配置负载均衡器? - How do I configure a load balancer in an AWS Elastic Beanstalk environment? AWS NAT 网关公共 IP 地址,用于将公共子网列入白名单 - AWS NAT Gateway Public IP Address for Whitelisting with Public Subnet 如何拥有一个具有多个公共 IP 的 NAT 网关? - How can I have a single NAT Gateway with multiple public IPs? 如何在 aws api 网关中使用 AWS 私有应用程序负载均衡器 - How to use AWS private application load balancer in aws api gateway AWS NAT网关与用于传出Internet连接的公共IP - AWS NAT gateway vs public IP for outgoing internet connections
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM