Linux - how to monitor live connections
Monitor open connections, example shows port 80 (httpd) including listen, count and sorts it per IP:
$ sudo watch "netstat -plan|grep :80|awk {'print \$5'} | cut -d: -f 1 | sort | uniq -c | sort -nk 1"
Monitor open connections, example shows port 80 (httpd) including listen, count and sorts it per IP:
$ sudo watch "netstat -plan|grep :80|awk {'print \$5'} | cut -d: -f 1 | sort | uniq -c | sort -nk 1"