create_nat_port_forward
Creates a NAT port forwarding rule to forward incoming traffic from a pfSense interface to a specified internal host and local port.
Instructions
Create a NAT port forwarding rule
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": {
"interface": "<interface>",
"protocol": "<protocol>",
"destination": "<destination>",
"destination_port": "<destination_port>",
"target": "<target>",
"local_port": "<local_port>"
},
"name": "create_nat_port_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Source address filter (default: "any") | any |
| target | Yes | Internal host IP address or alias to forward to | |
| disabled | No | Whether the rule starts disabled | |
| protocol | Yes | Protocol (tcp, udp, tcp/udp) | |
| interface | Yes | Interface for the rule (typically "wan") | |
| local_port | Yes | Single port (80), range (8080-8090), or alias name | |
| description | No | Optional rule description | |
| destination | Yes | External address (e.g., "wanip", "any", or specific IP/alias) | |
| nat_reflection | No | NAT reflection mode (enable, disable, purenat) | |
| destination_port | Yes | Single port (80), range (8080-8090), or alias name. Do NOT pass multiple space/comma-separated ports — create a port alias first instead. | |
| apply_immediately | No | Whether to apply changes immediately | |
| create_associated_rule | No | Whether to create an associated firewall pass rule |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||