IP conn
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
netstat -tpn | grep -v "127.0.0" | grep "apache\|443\|80"
netstat -nat | awk '{print $6}' | sort | uniq -c | sort -n
########################################
netstat -ntu | awk 'NR > 2 && $5 ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:/ {
split($5, a, ":")
print a[1]
}' | sort | uniq -c | sort -n
########################################
tail -f /usr/local/apache/logs/suphp_log
tail -f /homeN/username/access-logs/domain.com
Comments