unifi_create_port_forward
Create port forwarding rules on UniFi network controller to direct external traffic to specific internal IP addresses and ports.
Instructions
Create a port forwarding rule. protocol: 'tcp'|'udp'|'tcp_udp'. src_port / fwd_port: port numbers or ranges (e.g. '80', '8080:8090'). fwd: destination LAN IP address.
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": {
"name": "<name>",
"fwd": "<fwd>",
"fwd_port": "<fwd_port>",
"src_port": "<src_port>"
},
"name": "unifi_create_port_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| fwd | Yes | ||
| fwd_port | Yes | ||
| src_port | Yes | ||
| protocol | No | tcp | |
| site_id | No | default | |
| enabled | No | ||
| dst_port | No |