If I run this code in putty it works but not within a rsc script.
The error is: script error: item referred by ‘place-before’ does not exist (11)
/ip firewall filter
remove [find comment="FreeIPs"];
remove [find comment="Block guest to homenet"];
remove [find comment="Customer accept tcp"];
remove [find comment="Customer accept udp"];
add place-before=1 chain=forward comment=FreeIPs src-address-list=FreeIP
add place-before=1 action=drop chain=forward comment="Block guest to homenet" dst-address=192.168.179.0/24 in-interface=bridge
add place-before=1 chain=forward dst-port=$FREEPORTS in-interface=bridge protocol=tcp comment="Customer accept tcp"
add place-before=1 chain=forward dst-port=$FREEPORTS in-interface=bridge protocol=udp comment="Customer accept udp"
What is wrong? Any idea?