Code: Select all
# Define the global function
:global DNSStatus do={
:local actionValue $1
/ip firewall nat $actionValue [find comment~"hack_dns"];
}
# Set the action value and call the function
:global DNSAction "disable"
$DNSStatus $DNSAction