Blocking ports for all devices in the wifi network

Hello guys, i am newbie here. I have a one important question for me. How can i block ports for example “1234” for all devices in the wif fi network ? Firewall blocking all rules only for 1 device, but rules dont work for another device. ( 2 devices = i mean game consoles )

thank you for answering

/ip firewall filter rules chain=forward action=drop protocol=tcp dst-port=1234

You can use UDP and TCP depending on what protocol you want to use.