This was useful when fighting a DDoS attack on one of our web servers.
Credit for it goes to our server provider, Memset, who helped us to stop the attack.
This was useful when fighting a DDoS attack on one of our web servers.
Credit for it goes to our server provider, Memset, who helped us to stop the attack.
#!/bin/bash | |
netstat -an | grep :80 | grep -v FIN_WAIT | awk {'print $5'} | cut -d: -f 1 | sort | uniq -c | sort -nk 1 |