Creating a NAT Gateway
Create a NAT gateway in your a virtual cloud network(VCN) in Networking.
The NAT gateway is then created and displayed on the NAT Gateways page in the compartment that you chose. 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 your 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 your VCN.