Is the bad rule message only on boot? I am guessing that during a boot there is a firewall.local stop and then start (or a firewall.local reload)
If it does the stop first then there is noting to delete since the rule doesn’t exist (yet).
as a possibility you could check to see if the rule exists first with iptables -C
. If it does exist first, then delete it (iptables -D
)