Remove port forwarding rule
remove_port_forwardingDeletes a port forwarding rule by index or external port, optionally narrowed by protocol; dry-run defaults to true and ambiguous or protected matches are refused.
Instructions
Delete a port forwarding rule, selected by index (from get_port_forwarding) or by port. Refuses ambiguous matches and protected ports. dry_run is TRUE by default. Re-create with set_port_forwarding.
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": "remove_port_forwarding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | External port, if index is unknown | |
| index | No | Rule index hash | |
| dry_run | No | Default true | |
| protocol | No | Narrow a port match to tcp/udp |