Code: Select all
:for e from 1 to 254 do={
/ip firewall mangle add \
dst-address=(x.x.x. . $e . "/32")\
in-interface=ether1 action=accept\
mark-flow=(x.x.x. . $e . "Down")\
comment="" disabled=no
}
:for e from 1 to 254 do={
/ip firewall mangle add \
dst-address=(x.x.x. . $e . "/32")\
in-interface=ether1 action=accept\
mark-flow=(x.x.x. . $e . "Down")\
comment="" disabled=no
}
Try adding spaces before \Code: Select all:for e from 1 to 254 do={ /ip firewall mangle add \ dst-address=(x.x.x. . $e . "/32")\ in-interface=ether1 action=accept\ mark-flow=(x.x.x. . $e . "Down")\ comment="" disabled=no }
:for e from 1 to 254 do={
/ip firewall mangle add \
dst-address=(x.x.x. . $e . "/32") \
in-interface=ether1 action=accept \
mark-flow=(x.x.x. . $e . "Down") \
comment="" disabled=no
}
:for e from=1 to=254 do={
/ip firewall mangle add dst-address="192.168.1.$e/32" in-interface=ether1 action=mark-packet \
new-packet-mark="192.168.1.$e_down" comment="auto market" chain=forward disabled=no
}