---
title: Create
url: https://docs.vultr.com/reference/vultr-cli/vpc/nat-gateway/port-forwarding-rule/create
description: Create a port forwarding rule on a NAT gateway in a Vultr VPC with the Vultr CLI, mapping an external port to an internal address. Includes usage and flags.
publish_date: 2026-09-30T20:26:10.296354Z
last_updated: 2026-09-30T20:38:16.889474Z
---

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

Creates a new port forwarding rule on a NAT gateway within a specified VPC, mapping incoming traffic from a defined external port to an internal destination port and address.

## Usage

```console
$ vultr-cli vpc nat-gateway port-forwarding-rule create <VPC ID> <NAT Gateway ID> [flags]
```

## Examples

```console
# Full example
$ vultr-cli vpc nat-gateway port-forwarding-rule create e3512e83-64e9-4d3e-a401-9b86f2e09b1d \
efc811e7-d07d-45b1-b50e-19a0c2936ce0 --name="example-rule" --description="example desc" --internal-ip="10.1.2.3" \
--protocol="tcp" --external-port="123" --internal-port="555" --enabled="true"

--description is optional. Everything else is required

# Shortened example with aliases
$ vultr-cli vpc ng pfr c e3512e83-64e9-4d3e-a401-9b86f2e09b1d efc811e7-d07d-45b1-b50e-19a0c2936ce0 -n="example-rule" \
-d="example desc" --internal-ip="10.1.2.3" -p="tcp" --external-port="123" --internal-port="555" -e="true"
```

## Flags
| Shorthand | Long Version | Description |
|-----------|--------------|-------------|
| -d | --description | description for the new NAT Gateway port forwarding rule |
| -e | --enabled | name for the new NAT Gateway port forwarding rule |
| - | --external-port | external port for the new NAT Gateway port forwarding rule |
| - | --internal-ip | internal IP for the new NAT Gateway port forwarding rule |
| - | --internal-port | internal port for the new NAT Gateway port forwarding rule |
| -n | --name | name for the new NAT Gateway port forwarding rule |
| -p | --protocol | protocol for the new NAT Gateway port forwarding rule |