---
title: Update
url: https://docs.vultr.com/reference/vultr-cli/vpc/nat-gateway/port-forwarding-rule/update
description: Update a port forwarding rule on a NAT gateway in a Vultr VPC with the Vultr CLI, such as its ports or destination address. Includes usage syntax and flags.
publish_date: 2026-09-30T20:26:12.788506Z
last_updated: 2026-09-30T20:38:25.756386Z
---

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

Updates an existing port forwarding rule on a NAT gateway within a specified VPC, allowing you to modify parameters such as ports, protocol, or destination IP address.

## Usage

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

## Examples

```console
# Full example
$ vultr-cli vpc nat-gateway port-forwarding-rule update e3512e83-64e9-4d3e-a401-9b86f2e09b1d \
efc811e7-d07d-45b1-b50e-19a0c2936ce0 bf66d7cf-7587-4acd-a053-a2ea34e33f1d --name="example-rule-updated"

# Shortned example with aliases
$ vultr-cli vpc ng pfr u e3512e83-64e9-4d3e-a401-9b86f2e09b1d efc811e7-d07d-45b1-b50e-19a0c2936ce0 \
bf66d7cf-7587-4acd-a053-a2ea34e33f1d -n="example-rule-updated"
```

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