we pass only field level encrypted traffic from API gateway to NLB and using protocol as TCP. Can we send the traffic from NLB to EC2 with protocol TCP?

0

I have used Amazon Q assistant for a query and this is the result - Question:- what is the recommended protocol between NLB & EC2?

Answer:- The recommended protocol between a Network Load Balancer (NLB) and EC2 instances is TCP. Some best practices include:

  1. Install a web server like Apache or Nginx on the EC2 instances registered with the NLB.
  2. Enable TCP keep-alive on the EC2 instances to allow the NLB to reuse connections for multiple client requests, improving throughput.
  3. Allow ICMP fragmentation messages in the EC2 security groups to enable Path MTU Discovery for the NLB.
  4. To pass encrypted traffic directly to EC2 instances without decrypting at the NLB, create a TCP listener on port 443 instead of a TLS listener. The NLB will pass requests as-is to the targets.
  5. Configure the target group protocol as TLS only if terminating SSL at the NLB. Otherwise, TCP is sufficient. You can test NLB connectivity from EC2 using tools like curl, wget or netcat on the listener port rather than attempting to ping the NLB directly. Refer to the AWS documentation for more details on networking best practices.

I have doubts around 4th and 5th points in above answer.

What exactly does encrypted data mean? we pass only field level encrypted traffic from API gateway to NLB and using protocol as TCP. Can we send the traffic from NLB to EC2 with protocol TCP?

1개 답변
0

Yes, you can send TCP traffic from NLB to EC2. By encrypted they mean TLS traffic or HTTPS traffic that needs SSL termination. The 4th point says that if you don't want TLS termination at the NLB, use a TCP listener at the NLB.

There are two listeners - one at NLB and one at EC2 (backend target).

AWS
전문가
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠