AWS Network Load Balancer in front of ECS service running vsftpd not working

0

The deployment of vsftpd as a service to ECS appears to work as expected...an FTP client can connect to the container using the Public IP listed in ECS > Clusters > Services > Tasks > Networking.

Instead of using the Public IP, the goal is to use a load balancer to map a subdomain to the ECS instance.

Currently trying to use a Network Load Balancer so that we can map TCP ports (ALB only offers HTTP ports, as I understand it).

Target groups are configured with 5 TCP ports (IP target type & IPv4 address type)

The Network Load Balancer is configured with 5 listeners that map 5 TLS ports (using an ACM certificate) to forward to the above target groups.

The internet-facing IPv4 NLB times out when I try to connect using an FTP client.

I've checked/confirmed the Security Groups and Subnet (repeatedly) and can't find the issue.

What am I missing?

已提問 8 個月前檢視次數 326 次
1 個回答
0
已接受的答案

FTP is not supported by NLB. The way I usually talk about this is that FTP is a "complex" protocol - there are multiple ports being opened; sometimes in different directions; and the load balancer needs to read the application layer data to determine what ports to allow and allocate to a target for each file transfer session.

NLB operates at layer 3 and layer 4 of the protocol stack. It doesn't look at the protocol to determine additional context - and that's what FTP requires.

profile pictureAWS
專家
已回答 8 個月前
profile picture
專家
已審閱 8 個月前
profile pictureAWS
專家
已審閱 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南