nowadays some retards are attacking to whole cod2 servers
they are sending 11 byte - 13 byte - 16 byte ( probably they are about connection to cod2 server) so when i block packets with this way also other people can't join

28 packet header + packet size

iptables -t raw -A PREROUTING -p udp --dport 28960:28990 -m length --length 39 -j DROP
iptables -t raw -A PREROUTING -p udp --dport 28960:28990 -m length --length 41 -j DROP
iptables -t raw -A PREROUTING -p udp --dport 28960:28990 -m length --length 44 -j DROP


so i need a counter for each ip if an ip send me these packets lets say 5 times in 5 seconds i want to block them , how can i do that?

thanks for answers