add_phj_service
Add a porthijack rule to redirect incoming traffic on a public port to a proxy IP and port.
Instructions
Add a porthijack rule.
ip_src is the inbound bind interface; ip_dst is the new destination.
public_port is what clients connect to; traffic is rewritten to
ip_dst:proxy_port. Use this to plug your own proxy in front of a service.
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>",
"public_port": "<public_port>",
"proxy_port": "<proxy_port>",
"proto": "<proto>",
"ip_src": "<ip_src>",
"ip_dst": "<ip_dst>"
},
"name": "add_phj_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| public_port | Yes | ||
| proxy_port | Yes | ||
| proto | Yes | ||
| ip_src | Yes | ||
| ip_dst | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||