update_nat_port_forward
Update an existing pfSense NAT port forwarding rule by ID to change the target host, ports, protocol, interface, source/destination filters, or disabled status, then apply changes.
Instructions
Update an existing NAT port forwarding rule by ID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"port_forward_id": "<port_forward_id>"
},
"name": "update_nat_port_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Source address filter | |
| target | No | Internal host IP address or alias | |
| disabled | No | Whether the rule is disabled | |
| protocol | No | Protocol (tcp, udp, tcp/udp) | |
| interface | No | Interface for the rule (wan, lan, etc.) | |
| local_port | No | Single port (80), range (8080-8090), or alias name | |
| description | No | Rule description | |
| destination | No | External address (e.g., "wanip", "any", or specific IP/alias) | |
| nat_reflection | No | NAT reflection mode (enable, disable, purenat) | |
| port_forward_id | Yes | Port forward rule ID (array index from search_nat_port_forwards) | |
| destination_port | No | Single port (80), range (8080-8090), or alias name | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||