I need help, I need a rule to do this:
If more then X packets received in second with same data length so drop them all.
How can i achieve this using IPTables in Ubuntu?
Looks like you need to follow this guide:
sudo iptables -A OUTPUT -j REJECT
sudo iptables -A OUTPUT -m limit --limit X/s -j ACCEPT