Add Port Mapping
add_port_mappingCreate a port forwarding rule on an iKuai router to expose a LAN service through a specified external port and protocol.
Instructions
添加端口映射
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>",
"internal_ip": "<internal_ip>",
"internal_port": "<internal_port>",
"external_port": "<external_port>"
},
"name": "add_port_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| comment | No | ||
| enabled | No | ||
| protocol | No | tcp | |
| interface | No | ||
| internal_ip | Yes | ||
| external_port | Yes | ||
| internal_port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||