I am currently attempting to set the in-interface (and out-interface) of a Firewall NAT rule to blank. In WinBox, all you have to do is set the combobox to the blank option to achieve this. My solution requires using the api/terminal so I don't have the luxury of WinBox.
For example's sake, to set a port to blank, you send the value "0," and the router stores "" as the port. In addition, to set an ip-address to blank, you would pass "0.0.0.0," and the router often stores that as blank. Any time unit stored as a blank is set by passing a "0."
What is the "blank" keyword for interfaces (or in-interface, out-interface)? I have tried:
0, -1, all, none, null, no, n
All results return the same "input does not match any value of interface" error. If I submit a blank value, I get an "ambiguous" error. All I want to do is intentionally set in-interface/out-interface to blank.
The only way to leave it blank is to never send a value. I want to use an automated process to create firewall rules and I don't want to have to fine tune eight functions (4 for add, 4 for edit) when I can use just one.
Thanks for the help in advance,
Scott