Skip to content

Can NAT Gateways Receive Outbound-Initiated Communication From A Non-Internet Source?

0

In the NAT Gateway documentation here it is made clear that connections to the internet must be outbound-initiated (ie communication initiated from within the VPC containing the NAT Gateway rather than being initiated from the internet).

NAT Gateways can also be used to communicate with other VPCs or an on-premises network. In these cases, the docs are not clear whether connections must still be outbound-initiated. Must they still be outbound-initiated, or could the connection be initiated by a resource in another VPC/the on-premises network?

Thanks in advance

asked 2 years ago223 views

2 Answers
1
Accepted Answer

NAT Gateways use NAT to make all the traffic coming through them look like it is coming from 1 IP address, which is the NAT Gateways IP. Traffic coming back from the internet (or other VPC) will have to match an open connection to be received and processed by the NAT Gateway and returned to the original requesting client. If traffic comes to a NAT Gateway that does not match an open connection the NAT Gateway will not know what to do with it and it will be dropped.

Hope this helps.

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • Got it, so basically NAT Gateway always requires an open connection for inbound traffic (from outside of the VPC), regardless of whether the traffic came from the internet gateway or another VPC/on-prem network. Thanks for the help!

0
EXPERT

answered 2 years ago

  • Thanks for posting that whitepaper. For clarity, public NAT gateways also support connections to other VPCs/on-prem networks, unless I am mistaken.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.