I'm getting attacks on my Debian server (DDos). They send massive amounts of packets to the same port, every packet got the same size. They send millions of packets with different ips to one of my ports with 46 bytes.
Is there a chance to block packets to same port with same size after some packets. So the server rejects every packet with 46 bytes on port 22 for 5 minutes after 100 packets came to port 22 with 46 bytes in less than 1 second.