Netstat - To find number of connections from each IP

Below is command to find out number of connections from each ip to server using netstat , sort, uniq, awk.

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

  • 110 Users Found This Useful
Was this answer helpful?

Related Articles

FFMPEG

*MPlayer (MPlayer-1.0rc1.tar.bz2) *Codecs (essential-20061022.tar.bz2) *Flvtool...

How do I change my Webmin password if I can't login?

Included with the Webmin distribution is a program called changepass.pl to solve erecisely this...

How to Install Wget

Ever logged into your server via ssh and needed to download a file, then wget is what you...

How to install Zend for Linux

1. Download Zend in the server you want to install. Linux 32b -...

Debian Lenny Apt-get List

In order to use the officials debian sources paste this into your sources.list #nano...