node.js - How to set mikrotik firewall setting through the API with NodeRed? - Stack Overflow

I would like to set firewall setting into Mikrotik with NodeRed. I installed Mikrotik extension, commun

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;

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744712844a4589440.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信