Routing Of NAT Gateway
Destination |
Target |
---|---|
10.0.0.0/16 |
local |
10.64.78.0/16 |
local |
192.158.0.0/16 |
nat-gateway-id |
The above table represents that the traffic which is coming from the 10.0.0.0/16, 10.64.78.0/16 this two services will be kept with in the same network it will route internally and the traffic if coming from the 192.158.0.0/16 will sent it to directly to the NAT Gateway from there it will be routed to the required actual destination. To know more about subnet routing refer to the Amazon VPC – Working with VPCs and Subnets.
Amazon Web Services – Introduction to NAT GatewaysAWS NAT Gateway Use Cases
To access the Internet, one public IP address is needed, but we can use a private IP address in our private network. The idea of NAT is to allow multiple devices to access the Internet through a single public address. To achieve this, the translation of a private IP address to a public IP address is required. Network Address Translation (NAT) is a process in which one or more local IP address is translated into one or more Global IP address and vice versa in order to provide Internet access to the local hosts. Also, it does the translation of port numbers i.e. masks the port number of the host with another port number, in the packet that will be routed to the destination. It then makes the corresponding entries of IP address and port number in the NAT table. NAT generally operates on a router or firewall.
Contact Us