User:Daveh/countips
The UESPWiki – Your source for The Elder Scrolls since 1995
A simple script that counts the number of established connections by IP address. Typically used to see if one particular IP is using more connections than they should.
#!/bin/sh
netstat -an | grep ESTABLISHED | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

![[Content is available under Attribution-ShareAlike]](http://www.uesp.net/w/images/Somerights.png)