opn_update_nat_rule
Update an existing NAT port forwarding rule by UUID, changing target IP, port, or other properties. Changes auto-revert in 60 seconds unless confirmed.
Instructions
Update an existing NAT port forwarding rule by UUID with savepoint protection.
Use this when you need to change the target IP, port, or other properties of a NAT rule. Only the parameters you provide are changed; all other settings are preserved.
Changes auto-revert in 60 seconds unless confirmed with opn_confirm_changes. Use opn_list_nat_rules first to find the UUID.
Parameters:
uuid: NAT rule UUID (from opn_list_nat_rules)
interface: source interface (e.g. 'wan', 'opt1')
protocol: 'TCP', 'UDP', or 'TCP/UDP'
destination_port: external port to forward (e.g. '8080', '3000-3010')
target_ip: internal IP address to forward to
target_port: internal port
description: human-readable description
enabled: enable/disable the rule
Returns: dict with 'revision' (str), 'uuid' (str), and 'result' (str).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | ||
| interface | No | ||
| protocol | No | ||
| destination_port | No | ||
| target_ip | No | ||
| target_port | No | ||
| description | No | ||
| enabled | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||