简体   繁体   English

aws 网络负载均衡器有时会通过 aws transfer 系列返回“服务不可用”

[英]aws network load balancer sometimes returns “service not available” through aws transfer family

I want to make sure that the network load balancer works stably.我想确保网络负载均衡器稳定工作。

Detail follows;详情如下;

I am trying to use the FTP protocol with the aws transfer family.我正在尝试将 FTP 协议与 aws transfer 系列一起使用。

https://aws.amazon.com/jp/aws-transfer-family/ https://aws.amazon.com/jp/aws-transfer-family/

However, due to the specification of aws, the only way to use FTP is to host it in a private VPC and publish it to the Internet using a load balancer.但是,由于 aws 的规范,使用FTP的唯一方法是将其托管在私有 VPC 中并使用负载均衡器将其发布到 Internet。

Therefore, I have decided to use a network load balancer to publish.因此,我决定使用网络负载均衡器来发布。

Reference: https://aws.amazon.com/premiumsupport/knowledge-center/sftp-enable-elastic-ip-custom-port/?nc1=h_ls参考: https://aws.amazon.com/premiumsupport/knowledge-center/sftp-enable-elastic-ip-custom-port/?nc1=h_ls

However, when I run the following command, it comes back with "421 Service not available"但是,当我运行以下命令时,它返回“421 服务不可用”

ftp A_RECORD.elb.REGION_NAME.amazonaws.com

However, sometimes I can log in without problems , which annoys me even more!但是,有时我可以毫无问题地登录,这更让我烦恼!

What I tried to do to solve the problem:我试图做些什么来解决这个问题:

To isolate the problem, I have done the following.为了隔离问题,我做了以下事情。

I set up an EC2 in a private VPC and ran the following commands from there.我在私有 VPC 中设置了 EC2 并从那里运行以下命令。

ftp 172.16.0.107 // This is the private IP of the ftp server.

Then I can login every time without any problem.然后我每次都可以登录没有任何问题。 Therefore, I know that the network load balancer is the problem, but I cannot find the cause.因此,我知道网络负载均衡器是问题所在,但我找不到原因。

I have already confirmed that the necessary security groups and ports that should be open are fine.我已经确认应该打开的必要安全组和端口都可以。

Reference: https://artem.services/?p=2086&lang=en参考: https://artem.services/?p=2086&lang=en

I would appreciate it if you could tell me what you think might be the cause.如果您能告诉我您认为可能是什么原因,我将不胜感激。

Thank you very much for your help.非常感谢您的帮助。

I think you need need to configure your FTP passive mode ports, and open these ports in the NLB security group, because the data will be transferred through one of these ports, please see the following example it can help: here我认为您需要配置您的 FTP 被动模式端口,并在 NLB 安全组中打开这些端口,因为数据将通过这些端口之一传输,请参阅以下示例它可以帮助: here

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM