You can use the following commands to
check various connections to the server.
Connections to port 80:
Code:
netstat -alntp | grep :80
Number of connections to port 80:
Code:
netstat -alntp | grep :80 | wc -l
List the remote IPs connecting to your server:
Code:
netstat -alntp | awk ‘{print $5}’ | cut -d: -f1 | sort
List the uniq remote IPs and the number of connections from each IP:
Code:
netstat -alntp | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n