---
id: "ibm-public-gateway"
type: "component"
kind: "nat-gateway"
provider: "ibm"
category: "edge"
docs: "https://cloud.ibm.com/docs/vpc?topic=vpc-about-public-gateways"
url: "https://localhost:3000/catalogue/components/ibm-public-gateway"
---

# Public Gateway for VPC

Outbound-only source NAT for the subnets of one zone, sharing a single floating IP address.

| | |
|---|---|
| Provider | [ibm](https://localhost:3000/catalogue?provider=ibm) |
| Kind | [NAT gateway](https://localhost:3000/catalogue/kinds/nat-gateway) |
| Category | Edge |
| Official docs | [https://cloud.ibm.com/docs/vpc?topic=vpc-about-public-gateways](https://cloud.ibm.com/docs/vpc?topic=vpc-about-public-gateways) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `idleTimeoutMinutes` | integer | — | no | — | inherited |
| `inboundConnections` | boolean | — | no | false | inherited |
| `logging` | boolean | — | no | false | inherited |
| `managed` | boolean | — | no | false | **true** |
| `sharedAcrossSubnets` | boolean | — | no | true | inherited |
| `staticIpCount` | integer | — | no | — | **1** |
| `zoneRedundant` | boolean | — | no | — | **false** |

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
- [NAT Gateway](https://localhost:3000/catalogue/components/oci-nat-gateway.md) `oci-nat-gateway` — oci
- [NAT Service](https://localhost:3000/catalogue/components/outscale-nat-service.md) `outscale-nat-service` — outscale

## Use it in a design

```yaml
nodes:
  - { id: "ibm-public-gateway", component: "ibm-public-gateway" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Public gateway for VPC: source NAT for the subnets of one zone. "All of your public gateway
# traffic flows out of the floating IP address that is associated with your public gateway", one
# address per gateway; "only one public gateway per zone is allowed in a VPC, but that public
# gateway can be attached to multiple subnets in the zone"; and it "provides only outbound
# connectivity to virtual server instances" ("About public gateways").
schemaVersion: "1"
type: "component"
id: "ibm-public-gateway"
kind: "nat-gateway"
provider: "ibm"
docs: "https://cloud.ibm.com/docs/vpc?topic=vpc-about-public-gateways"
defaults:
  managed: true
  staticIpCount: 1
  zoneRedundant: false
properties:
  inboundConnections:
    type: "boolean"
    default: false
  sharedAcrossSubnets:
    type: "boolean"
    default: true
```

Human page: https://localhost:3000/catalogue/components/ibm-public-gateway
