I created a network load balancer in two different AZs and started my web server in the private subnet. I followed the AWS instruction document to create a network load balancer.
I tried to launch the network load balancer but it did not work. I checked my routing and security group. I have made it allow all protocols for all ports for both incoming and outgoing, but still, it is not working. I also suffixed the index.html to the DNS URL but it still failed. I checked the health of the target group and it is healthy and I am able to ssh into all the EC2 instance and the web servers are up and running. Strangely nslookup for the DNS name of Load balancer resolves the IP addresses linked in the Loadbalancer.
What is the reason for the failure of the network load-balancer in AWS?