ensure_port_forward_rule
Set up or modify a port forwarding rule to route external traffic to an internal IP, controlling protocol, ports, and source.
Instructions
Create or update a port forwarding rule
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>",
"enabled": "<enabled>",
"proto": "<proto>",
"fwd": "<fwd>",
"fwd_port": "<fwd_port>",
"dst_port": "<dst_port>",
"src": "<src>"
},
"name": "ensure_port_forward_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fwd | Yes | Internal IP address | |
| src | Yes | Source IP (usually "any") | |
| name | Yes | ||
| proto | Yes | ||
| enabled | Yes | ||
| dst_port | Yes | External port | |
| fwd_port | Yes | Internal port |