port_forward
Establishes a local port forward from the teamserver to a target host via an agent, enabling traffic routing through the agent. Returns a tunnel ID for management.
Instructions
Start a local port forward through an agent: lhost:lport (local on teamserver) → thost:tport (target via agent). Returns the tunnel ID.
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": {
"agent_id": "<agent_id>",
"lhost": "<lhost>",
"lport": "<lport>",
"target_host": "<target_host>",
"target_port": "<target_port>"
},
"name": "port_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| lhost | Yes | ||
| lport | Yes | ||
| target_host | Yes | ||
| target_port | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |