Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-13-2018, 05:56 PM   #1
LQ Newbie
Registered: Jul 2018
Posts: 11

Rep: Reputation: Disabled
What does this command mean? netstat -nt | grep :80 | wc -l


What does this command mean?
netstat -nt | grep :80 | wc -l

How much is a good result for it?

I get about 100 sometimes and I am under DDOs attack as it seems.

What should I do if it's not normal.

Old 07-13-2018, 08:58 PM   #2
Senior Member
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.5
Posts: 2,021

Rep: Reputation: 628Reputation: 628Reputation: 628Reputation: 628Reputation: 628Reputation: 628
That command will tell you how many connections are being made to your web server at the time you run it.

Can't tell from the count alone whether or not there are problems. You need to look at the result of
netstat -nt | grep :80
, see what the State column says (see man netstat for the meanings of State values), and evaluate where the connections are coming from...try
netstat -t
to have the foreign IP addresses resolved into thier names.

Please read the How To Ask A Question link in my signature...then reply with
Distribution and version of Linux?
Web server name and version?
How many domains are you hosting?
Describe the type of web content you're presenting.
Old 07-14-2018, 09:15 AM   #3
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,238
Blog Entries: 29

Rep: Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437
Member response


Welcome to LQ!
You have shown us your needs but what are/were your deeds?

Rather lazy on your part! You can 'man command' for the command line to get the options for each command you are querying us to fill the information for you.

Please consider reading;

Hope this helps.
Have fun & enjoy!
Old 07-14-2018, 04:29 PM   #4
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,480

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Did you get the command from somewhere that doesn't say what it does? Like class?
Old 07-14-2018, 05:35 PM   #5
LQ Newbie
Registered: Jul 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Originally Posted by AwesomeMachine View Post
Did you get the command from somewhere that doesn't say what it does? Like class?
I read about it on different sites when I was digging to find a way to approve that I am under the slowris attacks.
Many posts were talking to use this command and if the result is low that shows everything is OK and you are not under attack.

I just wanted to know what just "low" mean.

I am under DDOS for about 6 months and has changed 3 host company till now, one of them suspended me to prevent the attacks , now I am on VPN and using CWP on Centos 7 on OVH but I am under attack and has changed 2 cloud to prevent the attacks.

6 months ago Cloudflare didnot prevent the attacks I left it but from last 20 hours I am on it and everything seems OK but I have to wait to become sure.

Now when I use " netstat -nt | grep :80 | wc -l" command the result is under 30.

Here all the people seems friendly and helpful. Thanks duds.

More details:

Apache version: Apache/2.4.29
PHP version: 7.1.9 [PHP Switcher]
MySQL version: 10.1.34-MariaDB

System Info

CPU Model: Intel(R) Xeon(R) CPU D-1520 @ 2.20GHz
CPU Details: 1 Core (2500 MHz)
Distro Name: CentOS Linux release 7.5.1804 (Core)
Kernel Version: 4.15.17-1-pve
Platform: x86_64 [lxc]

CWP version:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: NETSTAT Command: Learn to use netstat with examples LXer Syndicated Linux News 0 12-06-2017 01:24 PM
How do I allow mysql connections over network (netstat -an | grep 3306 produces nil)? jdruin Linux - Software 6 04-03-2013 11:35 AM
More about netstat command gubak Linux - Networking 1 11-30-2009 08:28 AM
netstat - grep - tail -f output log manwithaplan Linux - Networking 4 08-21-2009 06:36 PM
Netstat command Panagiotis_IOA Linux - Networking 2 03-13-2006 01:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration