fplanzer

apache conn

Mar 16th, 2018 (edited)
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. IP conn
  2. netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
  3.  
  4. netstat -tpn | grep -v "127.0.0" | grep "apache\|443\|80"
  5.  
  6. netstat -nat | awk '{print $6}' | sort | uniq -c | sort -n
  7.  
  8.  
  9.  
  10. ########################################
  11. netstat -ntu | awk 'NR > 2 && $5 ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:/ {
  12.    split($5, a, ":")
  13.    print a[1]
  14. }' | sort | uniq -c | sort -n
  15. ########################################
  16.  
  17. tail -f /usr/local/apache/logs/suphp_log
  18.  
  19. tail -f /homeN/username/access-logs/domain.com
Advertisement
Add Comment
Please, Sign In to add comment