Gateways
NAT gateway
A NAT gateway allows you to grant internet access permissions to cloud resources without assigning public IP addresses to them. Instead, they will access the internet via the NAT gateway that will be assigned an IP address from a separate range of public IPs. A gateway is a regional resource one can find in all availability zones. You can manage gateways using the management console, CLI, Terraform, or API.
To route traffic through a gateway, specify it as the next hop in a route table. Currently, you can only use a NAT gateway for a route with the 0.0.0.0/0
destination prefix; any traffic to route outside the network will pass through this gateway.
If a VM network interface has a public IP address assigned, and the subnet this interface is connected to has a route table with a configured gateway, the VM will access the internet through the public IP address rather than the gateway. Currently, you cannot use reserved public IP addresses for gateways.