create_nat_outbound_mapping
Create an outbound NAT mapping to translate source traffic through a pfSense interface, with optional destination, protocol, port, and translation target settings.
Instructions
Create an outbound NAT mapping
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>",
"source": "<source>"
},
"name": "create_nat_outbound_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| descr | No | Optional description | |
| source | Yes | Source network/address (e.g., "192.168.1.0/24", "any") | |
| target | No | Translation target type | |
| dstport | No | Destination port or port range | |
| disabled | No | Whether the mapping starts disabled | |
| poolopts | No | Pool options for multiple addresses (round-robin, etc.) | |
| protocol | No | Protocol (tcp, udp, tcp/udp, etc.) | |
| targetip | No | Translation target IP address | |
| interface | Yes | Interface for the mapping (wan, lan, opt1, etc.) | |
| sourceport | No | Source port or port range | |
| destination | No | Destination network/address | |
| targetip_subnet | No | Translation target subnet mask | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||