---
id: "oci-nat-gateway"
type: "component"
kind: "nat-gateway"
provider: "oci"
category: "edge"
docs: "https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/NATgateway.htm"
url: "https://localhost:3000/catalogue/components/oci-nat-gateway"
---

# NAT Gateway

Egress-only address translation letting private subnets reach the internet.

| | |
|---|---|
| Provider | [oci](https://localhost:3000/catalogue?provider=oci) |
| Kind | [NAT gateway](https://localhost:3000/catalogue/kinds/nat-gateway) |
| Category | Edge |
| Official docs | [https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/NATgateway.htm](https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/NATgateway.htm) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `blockTraffic` | boolean | — | no | false | inherited |
| `idleTimeoutMinutes` | integer | — | no | — | inherited |
| `logging` | boolean | — | no | false | **false** |
| `managed` | boolean | — | no | false | **true** |
| `maxConnectionsPerDestination` | integer | — | no | 20000 | inherited |
| `publicIpType` | enum | `ephemeral`, `reserved` | no | "ephemeral" | inherited |
| `staticIpCount` | integer | — | no | — | **1** |
| `zoneRedundant` | boolean | — | no | — | **true** |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 8

- [NAT Gateway](https://localhost:3000/catalogue/components/alibaba-nat-gateway.md) `alibaba-nat-gateway` — alibabacloud
- [NAT gateway](https://localhost:3000/catalogue/components/aws-nat-gateway.md) `aws-nat-gateway` — aws
- [Azure NAT Gateway](https://localhost:3000/catalogue/components/azure-nat-gateway.md) `azure-nat-gateway` — azure
- [Generic NAT gateway](https://localhost:3000/catalogue/components/nat-gateway.md) `nat-gateway` — default
- [DigitalOcean VPC NAT Gateway](https://localhost:3000/catalogue/components/digitalocean-vpc-nat-gateway.md) `digitalocean-vpc-nat-gateway` — digitalocean
- [Cloud NAT](https://localhost:3000/catalogue/components/google-cloud-nat.md) `google-cloud-nat` — gcp
- [Public Gateway for VPC](https://localhost:3000/catalogue/components/ibm-public-gateway.md) `ibm-public-gateway` — ibm
- [NAT Service](https://localhost:3000/catalogue/components/outscale-nat-service.md) `outscale-nat-service` — outscale

## Use it in a design

```yaml
nodes:
  - { id: "oci-nat-gateway", component: "oci-nat-gateway" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Oracle Cloud NAT gateway: highly available egress-only translation for private subnets, one per
# VCN, allocated a single ephemeral public IP unless a reserved one is supplied ("NAT Gateway").
# Inbound connections from the internet are never accepted; 20,000 concurrent connections are
# supported to a single destination address and port.
schemaVersion: "1"
type: "component"
id: "oci-nat-gateway"
kind: "nat-gateway"
provider: "oci"
docs: "https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/NATgateway.htm"
defaults:
  managed: true
  staticIpCount: 1
  zoneRedundant: true
  logging: false
properties:
  publicIpType:
    type: "enum"
    values: ["ephemeral", "reserved"]
    default: "ephemeral"
  blockTraffic:
    type: "boolean"
    default: false
  maxConnectionsPerDestination:
    type: "integer"
    default: 20000
```

Human page: https://localhost:3000/catalogue/components/oci-nat-gateway
