I am trying to add and remove NAT entry using a single line php api code but unable to do it.
Terminal code Mikrotik:
/ip firewall nat remove [find comment=id9]
//Its working fine on terminal
I am trying writing bellow php api:
to Add:
$API->comm("/ip/firewall/nat/add\n=chain=dstnat\n=src-address=103.19.131.3\n=protocol=tcp\n=action=dst-nat\n=comment=id9\n=to-addresses=103.19.130.215\n=to-ports=80");
//Working fine
to remove:
$API->comm("/ip/firewall/nat/remove/[find\n=comment=id9]");
//Not working
Can anyone help me to solve it? Thanks in advance.