I would like to set firewall setting into Mikrotik with NodeRed. I installed Mikrotik extension, communication with Mikrotik is working, I'm able to read parameters or logs from Mikrotik, but I'm not able to write settings into the Mikrotik (for example some firewall settings).
Am I setting the parameters in the right way and is my input JSON in the right format?
Example of input JSON, which is comming into "mikrotik" NodeRed element:
const message = {
"username": "*****",
"password": "*****",
"host": "****",
"payload": {
"command": [
"ip/firewall/mangle/add",
"=action=mark-packet",
"=chain=postrouting",
"=dst-address=****",
"=new-packet-mark=dw-112233"
]}};
return message;