1. How many connections per IP? netstat -nat | grep ‘^tcp’ | sed -e ‘s/::ffff://gi’ | sed -e ‘s/:::*/0.0.0.0:/gi’ | tr ‘:’ ‘ ‘ | awk ‘{ print $6 }’ | sort | uniq -c | sort -n -r -k 1
1. How many connections per IP? netstat -nat | grep ‘^tcp’ | sed -e ‘s/::ffff://gi’ | sed -e ‘s/:::*/0.0.0.0:/gi’ | tr ‘:’ ‘ ‘ | awk ‘{ print $6 }’ | sort | uniq -c | sort -n -r -k 1