DDoS - Blocking all IPs?

Hi everyone,
Recently, I have been getting DDoS attacks. Every time, it's only by around 20-40 IPs. I get to manually block them, but it takes some time.
I was wondering there was an iptables command that would block all the IPs that were currently trying to connect? I think this would be faster, because when I do get a DDoS, mostly all the IPs trying to connect are bots...
Thanks,
Greg

 

 

 

 

Top