Im currently under attack by spoofed udp packets. Every spoofed ip trying to send just 1 udp packet in 30sec. But there is tons of ip.
I need to drop first packet. But if same srcip in 30sec sends another packet i want to accept it.
-A INPUT -d <myip> -p udp --dport <myport> -m hashlimit --hashlimit-upto 1/min --hashlimit-mode srcip --hashlimit-name mmmm -j DROP
Tried this but didnt helped..