checking network connections

Posted: 3p in Linux

netstat -anp | grep 80 | awk ‘{print $5}’ | cut -f1 -d: | sort | uniq -c | sort -n
—————————————————–
To detect syn flood attack

netstat -plan | grep :80 | grep SYN_RECV | wc -l
—————————————————–
Max child process size can be determined using the command :

ps -ylC httpd –sort:rss
—————————————————–
The total memory usage for the webserver can be determined using the command :

ps -ylC httpd –sort:rss | awk ‘{a+=$8}END{print a}’
—————————————————–

Advertisements
Comments
  1. HCG diet says:

    This is so great. I always find such interesting stuff when I stumble onto this site again and again!
    I’m going to be sharing this. Facebook here we come!

  2. I do not usually find this type of data interesting, but you have proven that a talented writer can take information that is often considered dull and make it pop.

  3. Freida Minon says:

    seriously enjoyed this post, keep them coming

  4. Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how can we communicate?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s