fplanzer icon

apache conn

fplanzer | PRO | 07/13/26 07:38:51 PM UTC (Edited) | 0 ⭐ | 495 👁️ | Never ⏰ | []
Bash |

520 B

|

None

|

0 👍

/

0 👎

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