Comando para saber en número de conexiones y direcciones IP en un puerto/servicio Linux

netstat -plan|grep :<puerto> | awk {‘print $5’} | cut -d: -f 1 | sort | uniq -c | sort -n Ejemplo: Conexiones a apache: # netstat -plan|grep :80 | awk {‘print $5’} | cut -d: -f 1 | sort | uniq -c | sort -n 1 XX.XX.XXX.XXX 1 XX.XX.XXX.XXX 1 XX.XX.XXX.XXX 51 XX.XX.XXX.XXX 64 XX.XX.XXX.XXX Seguir leyendo