Creating a NAT Gateway
Create a NAT gateway in a virtual cloud network (VCN) in Networking.
Prerequisites:
- Decide which private subnets in the VCN need access to the internet, and create those private subnets.Only one NAT gateway is needed for each VCN. All private subnets within a VCN have access to the NAT gateway if the security rules and route table rules allow that access. 
- You can configure the types of ingress and egress internet traffic route rules that you want to enable for the resources in each public subnet (examples: ingress HTTPS connections, ingress ICMP ping connections).
- The required IAM policy is in place to allow you to work with Networking service resources. For administrators, see IAM Policies for Networking.
- The NAT gateway is created and displayed on the NAT Gateways list. The gateway allows traffic by default. At any time, you can block or allow traffic through it. 
- Use the network nat-gateway create command and required parameters to create a NAT gateway in a VCN: - oci network nat-gateway create --compartment-id compartment-ocid --vcn-id vcn-ocid ... [OPTIONS]- For a complete list of parameters and values for CLI commands, see the CLI Command Reference. 
- Run the CreateNatGateway operation to create a NAT gateway in a VCN.