manage_port_forwarding
Add, update, or delete NAT port forwarding rules on VMware host networks, mapping host TCP/UDP ports to guest IP addresses and ports.
Instructions
Add/update or delete a NAT port forwarding rule on a VMware host network (e.g. vmnet8).
Args: network: Host network name (e.g. 'vmnet8'). action: 'set' to add/update, 'delete' to remove. protocol: 'tcp' or 'udp'. host_port: Host TCP/UDP port number (1-65535). guest_ip: Guest IP address (required when action='set'). guest_port: Guest port number 1-65535 (required when action='set'). description: Optional rule description (only for action='set').
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": {
"network": "<network>",
"action": "<action>",
"protocol": "<protocol>",
"host_port": "<host_port>"
},
"name": "manage_port_forwarding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| network | Yes | ||
| guest_ip | No | ||
| protocol | Yes | ||
| host_port | Yes | ||
| guest_port | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||