Thursday 22 August 2013

View connections to Linux server by IP


This command will output the list of unique IP's currently connected to your Linux server. This is really helpful in identifying someone who is trying to DDoS your server.
 
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

No comments:

Post a Comment