why it doesn’t work? iptables should be the same.

You tried to block several IP address right?

I am not good at this but maybe you can just use firewall settings.

https://wiki.openwrt.org/doc/uci/firewall

Block access to a specific host

The following rule blocks all connection attempts to the specified host address.

config rule
        option src              lan
        option dest             wan
        option dest_ip          123.45.67.89
        option target           REJECT