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.
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 | |||