create_nat_onetoone_mapping
Creates a 1:1 NAT mapping on pfSense, translating an internal source network or host to an external address or subnet on a chosen interface for bidirectional traffic.
Instructions
Create a 1:1 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>",
"external": "<external>",
"source": "<source>"
},
"name": "create_nat_onetoone_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | NAT type (e.g., "binat") | |
| descr | No | Optional description | |
| source | Yes | Internal source network/address to map | |
| disabled | No | Whether the mapping starts disabled | |
| external | Yes | External subnet (the public/translated address or subnet) | |
| interface | Yes | Interface for the mapping (wan, lan, opt1, etc.) | |
| destination | No | Destination filter for the mapping | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||