Read more

netstat: Sum open connections by IP (and sort it)

Thomas Eisenbarth
February 26, 2016Software engineer at makandra GmbH

The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it:

netstat -n | awk ' $5 ~ /^[0-9]/ {print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

Works on FreeBSD and Linux.

Posted by Thomas Eisenbarth to makandra dev (2016-02-26 11:26)