put_fw_redir_redir_id
Modify an existing port forwarding rule: update enabled state, protocol, ports, LAN target, host, source IP, or comment.
Instructions
Update a PortForwardingConfig properties
Error codes: noent, internal_error, exist
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| redir_id | Yes | ||
| id | No | forwarding id | |
| enabled | No | is forwarding enabled | |
| ip_proto | No | Values: `tcp`: TCP; `udp`: UDP | |
| wan_port_start | No | forwarding range start | |
| wan_port_end | No | forwarding range end | |
| lan_ip | No | forwarding target on LAN | |
| lan_port | No | forwarding target start port on LAN, (last port is lan_port + wan_port_end - wan_port_start) | |
| hostname | No | forwarding target host name | |
| host | No | forwarding target host information (see: LanHost ) | |
| src_ip | No | if src_ip == 0.0.0.0 this rule will apply to any src ip otherwise it will only apply to the specified ip address | |
| comment | No | comment |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||