List Connections by IP Address (Centos)

Via SSH run the following commands:

 

View all port 80 (HTTP)connections by IP:

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

 

View all port 443 (HTTPS/SSL) connections by IP

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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Search for and find large files on your server

Syntax for RedHat / CentOS / Fedora Linux find {/path/to/directory/} -type f -size...

Add SPF and DKIM records for all cPanel accounts

SPF and DKIM records are used to verify the authorised mail server allowed to send emails for...

Retrieving directory listing issue with FTP over TLS cPanel WHM

This relates to cPanel servers running CSF. Since a recent update to the FTP software client...

Extend/increase a mounted volume

Warning :Under Linux, so that the title does not change during this operation (vdb > VDC for...

Create and configure an additional disk on an instance

List the disks admin@serveur-1:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE...