I have a public NLB with some TCP and UDP listeners and a fargate container which listens on UDP port 8001 which is hosted in same VPC as NLB. A target group is attached to NLB listener UDP:8001 using UDP protocol and healthcheck is provided through a TCP port 1024 on fargate container. Security groups for Target group, NLB and Container allow UDP 8001 inbound and outbound traffic. But container is not receiving any packets on UDP port.
This container also has TCP listeners which are working are working fine.
I only want to achieve the UDP port connection from public to ECS container through NLB.
Any help is much appreciated.
Thanks
Yes, I have a security group attached to NLB which allows inbound and outbound traffic to 8001 port.
Can you share the task definition?
Here is my task definition: