See below line for what I am trying to accomplish.
/ip firewall filter add in-interface=$hsinterface dst-port=53 protocol=udp place-before=1 action=drop
Would like to logical NOT this global variable but have had no joy so far. Is it possible to Logical NOT a global variable?
Thanks in advance,
janisk
August 20, 2014, 7:49am
2
just perform the usual string operation when trying to set some value. See scripting section in manual on how to concatenate the value from variable to a string.
skot
August 20, 2014, 9:15pm
3
I think you can do something like this:
/ip firewall filter add in-interface=("!" . $hsinterface) dst-port=53 protocol=udp place-before=1 action=drop