Hello.
I need that external system (PLC) could able (over Modbus, Get/Post, SNMP or others communication) to disable one port forward rule and enable other port forward rule.
Maybe someone found the working way?
Hello.
I need that external system (PLC) could able (over Modbus, Get/Post, SNMP or others communication) to disable one port forward rule and enable other port forward rule.
Maybe someone found the working way?
Hi,
As a one of the options there is publicly available http API:
For enabling/disabling a port forward rule you will need to change “enabled” value between “1” and “0”
Thanks for answer.
But now I faced with other problem.
By using this command:
curl -X GET "http://192.168.2.1/api/firewall/port_forwards/config/1" -H "Content-Type: application/json" -H "Authorization: Bearer a00cc7662b2101f6caf0306937e5f665"
I get this error (at this moment I am able to give error message fragmen):
{"success":false,"errors":[{"source":"UCI","code":113,"error":"Section: 1 for service does not exist","section":"1"}
```.
I want to get info about specific port forward. The request of all port forward works, but for me, due to hardware limitation, I cant process the answer.
Most likely the port forward section ID is not 1.
Try GET http://192.168.2.1/api/firewall/port_forwards/config
request to get all available port forward sections and look at ID field.
This topic was automatically closed after 15 days. New replies are no longer allowed.