NAT Instances & NAT Gateways
NAT Instances & NAT Gateway
NAT Instances & NAT Gateways are used to provide internet to Private Subnet instances.
NAT Instances are similar to the EC2 Instances except that they are used for NAT predominantly. These are Amazon provided Amazon Linux AMIs configured to be used as NAT Instances. These are created in the Public Subnet to provide internet connectivity for instances in Private Subnet thus it is important to have the right route tables associated with the Private Subnets updated to point the internet routes towards these.
Since these are internet instances so they are to be linked with the Security Groups just like any other EC2 instances to allow traffic towards these instances.
Each EC2 instances perform Source/Destination checks by default i.e. the EC2 instance must be either the source or destination of the traffic flows it sends or receive. For NAT instance this needs to be disabled as NAT instance will not be source or destination but will only be performing NATting.
NAT instances if down can black hole the traffic.
NAT Gateways on the hand are gateways created under Public subnet to allow internet to Private Subnets. They are more robust and available in comparison to NAT instances. NAT gateways do not span Availability Zone thus it is recommended to have NAT gateway in each Availability Zone in case we have more than 1 Availability Zone.
NAT Instances & NAT Gateways are used to provide internet to Private Subnet instances.
NAT Instances are similar to the EC2 Instances except that they are used for NAT predominantly. These are Amazon provided Amazon Linux AMIs configured to be used as NAT Instances. These are created in the Public Subnet to provide internet connectivity for instances in Private Subnet thus it is important to have the right route tables associated with the Private Subnets updated to point the internet routes towards these.
Since these are internet instances so they are to be linked with the Security Groups just like any other EC2 instances to allow traffic towards these instances.
Each EC2 instances perform Source/Destination checks by default i.e. the EC2 instance must be either the source or destination of the traffic flows it sends or receive. For NAT instance this needs to be disabled as NAT instance will not be source or destination but will only be performing NATting.
NAT instances if down can black hole the traffic.
NAT Gateways on the hand are gateways created under Public subnet to allow internet to Private Subnets. They are more robust and available in comparison to NAT instances. NAT gateways do not span Availability Zone thus it is recommended to have NAT gateway in each Availability Zone in case we have more than 1 Availability Zone.
Comments
Post a Comment