Whitelisted generic

Hello friends ,

I want to know that if it is possible to create a white list on router os to block first UDP connection packet to prevent from UDP attacks.
I want to add to a member list for each connection the client and drop the packet. That list will be ok for 10 hours and if the client is in the list his packets will not be dropped any more ?
Is it possible on router os , we do it on centos/freebsd easily

You will need a DDOS prevent firewall

New firewall raw in MikroTIk was though for this.

Check this topic in MUM will hepl you
https://mum.mikrotik.com/presentations/UK16/presentation_3938_1479372820.pdf