List NAT rules
unifi_list_nat_rulesList NAT rules (DNAT, SNAT, masquerade) with type, interfaces, translated IP and port, source and destination. Requires Network 9.0+ with a UniFi gateway and zone-based firewall.
Instructions
List NAT rules (DNAT, SNAT and masquerade, the predefined ones included) with type, interfaces, translated IP and port, source and destination. Needs Network 9.0+ with a UniFi gateway and the zone-based firewall. Simple port forwards are separate: unifi_list_port_forwards.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unifi_list_nat_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return the full controller objects (large) | |
| site | No | Site name/ID as used in the API (e.g. 'default'). Defaults to the configured site. See unifi_list_sites. | |
| fields | No | Only return these fields per item (dot paths, e.g. uplink.name) | |
| search | No | Case-insensitive substring match on names, MACs, IPs and similar |