How Can i tell if my server is being DoS/DDoS'd (denial of service ) ?

You can use this command to see the number of connections per IP. It's a bit easier on the eye that the raw output of netstat.

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

 

If you suspect any IPs there with too many connections you can obviously add the IP to the deny list in your firewall

APF: apf -d xx.xx.xx.xx
CSF: csf -d xx.xx.xx.xx

OR if you dont use APF or CSF, just add it straight into iptables

iptables -I INPUT 1 -s -j DROP xx.xx.xx.xx

  • 62 Users Found This Useful
Was this answer helpful?

Related Articles

How can i show my cpu info (linux)?

How can i show my cpu info? Log in to your server via SSH then typ;e the following command...

How can i show my cpu info (linux)?

How can i show my cpu info? Log in to your server via SSH then typ;e the following command...

How do i transfer files from one linux server to another using rsync?

How do i transfer files from one linux server to another using rsync? You can do this by simply...

How do I upgrade / update my Gentoo vps?

How do I upgrade / update my Gentoo vps?   You can do this by simply connecting to your vps via...