Drop ip in ddos attack

When you are under DDOS attack, you can run this command to check the number of connections per ips:

netstat -anp |grep ‘tcp|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n

and then drop ip with lets say 300 connection:

iptables -I INPUT -s xxx.xxx.xxx.xxx -j DROP

Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.