---
title: How to Deploy VPC-only Instances With NAT Gateway on Vultr
url: https://docs.vultr.com/how-to-deploy-vpc-only-instances-with-nat-gateway-on-vultr
description: Deploy VPC-only instances on Vultr with outbound internet access using NAT Gateway.
publish_date: 2026-02-02T16:11:01.663000Z
last_updated: 2026-04-16T00:00:00.077250Z
author: Aashish Chaurasiya
header_image: https://docs.vultr.com/public/doc-assets/2473/44913693-486e-4089-86ce-507b7b788f54.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Applications and workloads that require outbound internet access do not always need to be directly reachable from the public internet. Deploying instances without public IP addresses behind a NAT Gateway blocks inbound internet traffic while still enabling controlled outbound connectivity.

This guide explains how to deploy VPC only instances on Vultr that run entirely inside a private VPC and use a NAT Gateway to handle outbound traffic such as operating system updates, package downloads, container image pulls, and external API access.

## Prerequisites

Before you begin, ensure you:

* Have access to the [Vultr Console](https://console.vultr.com/) with permission to create and manage networking and compute resources.
* Have a [Vultr API key](https://docs.vultr.com/platform/other/api/enable-user-api-access) with sufficient permissions.
* Create a new [VPC network](https://docs.vultr.com/products/network/vpc/provisioning) in the desired region.

## Provision a NAT Gateway Subscription

A NAT Gateway provides outbound internet access for VPC only instances without exposing them to inbound traffic. By routing private subnet traffic through the NAT Gateway, instances can access external services while remaining isolated from direct internet access.

1. Export your Vultr API key as an environment variable.

    ```console
    $ export VULTR_API_KEY=YOUR_VULTR_API_KEY
    ```

    Replace `YOUR_VULTR_API_KEY` with your Vultr API key.

1. List the VPC networks available in your account.

    ```console
    $ curl -sS --location --request GET "https://api.vultr.com/v2/vpcs" \
      --header "Content-Type: application/json" \
      --header "Authorization: Bearer ${VULTR_API_KEY}" \
      | jq .
    ```

    Identify the ID of the VPC network in which you want to provision the NAT Gateway.

1. Export the VPC ID as an environment variable.

    ```console
    $ export VPC_ID=YOUR_VPC_ID
    ```

    Replace `YOUR_VPC_ID` with your VPC ID.

1. Provision the NAT Gateway in the selected VPC.

    ```console
    $ curl -sS --location --request POST "https://api.vultr.com/v2/vpcs/${VPC_ID}/nat-gateway" \
      --header "Authorization: Bearer ${VULTR_API_KEY}" \
      | jq .
    ```

    Your output should be similar to the one below:

    ```
    {
      "nat_gateway": {
        "id": "20c4fd35-66cb-4a97-a212-d495c4b66c63",
        "vpc_id": "16946e4c-6529-4580-b91b-4a6630c64402",
        "date_created": "2026-01-20 09:27:58",
        "status": "pending",
        "label": "nat-gateway-16946e4c-6529-4580-b91b-4a6630c64402",
    ```

    The output shows that the NAT Gateway is being provisioned and is currently in the `pending` state.

1. Verify that the NAT Gateway is **active**.

    ```console
    $ curl -sS --location "https://api.vultr.com/v2/vpcs/${VPC_ID}/nat-gateway" \
      --header "Authorization: Bearer ${VULTR_API_KEY}" \
      | jq .
    ```

    Your output should be similar to the one below:

    ```
    {
    ......
      "nat_gateways": [
        {
          "id": "20c4fd35-66cb-4a97-a212-d495c4b66c63",
          ......
          "date_created": "2026-01-20 09:27:58",
          "status": "active",
          ......
          "public_ips": [
            "192.0.1.9"
          ],
          "public_ips_v6": [
            "2001:db8:dead:beef:cafe::1"
          ],
          "private_ips": [
            "10.1.144.1"
    ......
    }
    ```

    The output confirms that the NAT Gateway is in the `active` state and shows the public IPv4 and IPv6 addresses, along with the private IP assigned to the gateway.

## Deploy VPC Only Instances

A VPC only instance is deployed without a public IP address and is isolated from direct internet access. The instance communicates exclusively over private networking within the VPC and relies on controlled egress paths, such as a NAT Gateway, for outbound connectivity.

1. Log in to the [Vultr Console](https://console.vultr.com/).
1. Navigate to **Products** and click **Compute**.
1. Click **Deploy**.
1. Choose the instance type that best fits your workload:

    * **Shared CPU**: Virtual machines for bursty workloads such as dev/test environments and low-traffic applications.
    * **Dedicated CPU**: Virtual machines for demanding workloads such as production applications and larger databases.
    * **Cloud GPU**: Instances with dedicated GPUs for AI, machine learning, HPC, and visual computing.
    * **Bare Metal**: Single-tenant servers for workloads with the highest performance or security requirements.

1. Select a **Vultr Location** that matches the region of your VPC network.
1. Select an instance **Plan** based on your workload requirements.
1. Click **Configure Software** to continue the instance configuration.
1. Choose an **Operating System** image for the instance.
1. Under **Server Settings**, configure your **SSH Keys** if you prefer key-based authentication.
1. Provide a **Server Hostname** and **Label** to identify the instance.
1. In **Instance Connectivity**, select **Private Instance(s) behind NAT Gateway**.
1. In **VPC Network**, select the VPC associated with the NAT Gateway subscription.
1. Set the **Quantity** of instances in the **Deploy Summary**.
1. Configure any remaining optional settings as required.
1. Click **Deploy** to create the instance.

    > [!NOTE]
    > All VPC only instances deployed in this step are placed behind the NAT Gateway and are accessible only within the VPC. No inbound connections from the public internet are allowed. The **Quantity** value in the Deploy Summary determines how many VPC only instances are created.

## Verify VPC Only Instance Deployment

After deployment, verify that the instances are created correctly and operate as VPC only instances behind the NAT Gateway.

1. Navigate to **Products** and click **Network**.
1. Select **VPC Networks**.
1. Select your **VPC** and confirm that the **Instance Connectivity** section shows **NAT Gateway**, which indicates that the VPC is associated with a **NAT Gateway**.
1. Verify that all VPC only instances appear under **Attached Nodes**.

    ![VPC Networks Dashboard](https://docs.vultr.com/public/doc-assets/2473/bfb40ac0-c484-4e1c-9623-89935a47546a.png)

## Conclusion

You have deployed VPC only instances on Vultr without public IP addresses and configured a NAT Gateway to provide outbound internet connectivity. This setup keeps instances isolated from inbound internet traffic while allowing outbound access to external services such as operating system updates, package repositories, and third-party APIs.
