--- title: "Deploy a NAT Gateway" description: "Give private servers outbound internet through one shared public IP: how source NAT works, the auto-managed route, plans, billing and limits." category: "Deployment" language: en source: https://cubepath.com/docs/products/deployment/deploy-a-nat-gateway updated: 2026-11-17 --- # Deploy a NAT Gateway Create a NAT Gateway from the **NAT Gateway** page in [my.cubepath.com](https://my.cubepath.com) by clicking **Deploy NAT Gateway**. It attaches to a private network and gives every server on it shared outbound internet through one public IP. It's fully managed, so there's nothing to SSH into. > Note: Your account must be [verified](/docs/products/overview/account-setup) before you can deploy. ## How it works The gateway gets a **public IPv4 and IPv6** plus a **private IP inside your network**, and a default route (`0.0.0.0/0`) pointing at that private IP is added to the network automatically. From then on, servers on the network send outbound packets to the gateway, which rewrites the source address to its own public IP (**source NAT**) and forwards them out. Replies come back the same way. Many private servers share one public address for egress, and nothing from the internet can reach them. ## When to use it - **Private servers need outbound access** (package updates, external APIs, git repositories, webhooks) but shouldn't be reachable from the internet. - **You need one stable egress IP to whitelist** on a third-party API, a partner's firewall or a SaaS provider. Every server behind the gateway appears as the same address, so you register one IP instead of one per server. - **You don't want to pay for, and expose, a public IP on every VPS.** Typical setups are a private database or application tier, locked-down CI machines, or any fleet you want off the public internet without cutting off its outbound access. ## Deploy ```steps ### Select a private network Pick the **private network** the gateway will serve. Each network can have only one NAT Gateway, and the region is set by the network you choose. ### Choose a plan Plans differ by **vCPU, RAM, storage and bandwidth (Mbps)**. Available plans depend on the network's location; pricing is per hour, shown with a monthly estimate. ### Name your gateway Set a **name** (letters, numbers and hyphens) and an optional **label** describing its purpose. ### Deploy Click **Deploy**. The gateway is assigned one public IPv4 and one IPv6, and both are billed. ``` The gateway starts in **deploying** and flips to **active** once provisioning finishes. Servers on the network then reach the internet automatically, with no configuration needed on them. > Note: If deployment is rejected, the message says why: insufficient balance, a suspended organization, or no public IPs available in that location right now. ## What it doesn't do > Important: A NAT Gateway only allows **outbound** traffic. Unsolicited inbound connections from the internet are blocked; only replies to outbound requests come back. To expose a service, use a [Load Balancer](/docs/products/deployment/deploy-a-load-balancer) or attach a [Floating IP](/docs/products/security/floating-ips) directly to the server. - **It isn't a load balancer.** It gives servers a shared way *out*; it doesn't distribute traffic coming *in*. - **It isn't port forwarding.** There's no way to publish a private server's port through it. - **One per network, one location.** Each private network can have only one gateway, which serves that network in that location. Different networks need their own. ## Billing Billing is hourly or monthly, following your project's billing type, and accrues from creation until you delete the gateway. The public IPv4 and IPv6 assigned to it are billed too. A NAT Gateway also counts toward your combined VPS + Load Balancer + NAT Gateway [resource limits](/docs/products/settings/resource-limits). ## The gateway tabs [Network](/docs/products/deployment/nat-network), [Metrics](/docs/products/deployment/nat-metrics), [Activity](/docs/products/deployment/nat-activity) and [Resize](/docs/products/deployment/nat-resize).