LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hello

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.


Thanks
 
Old 07-13-2018, 07:58 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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
Code:
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
Code:
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, 08:15 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

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; https://www.linuxquestions.org/quest...#faq_lqwelcome

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

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

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
Did you get the command from somewhere that doesn't say what it does? Like class?
No
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: 0.9.8.692
 
  


Reply



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 12:24 PM
How do I allow mysql connections over network (netstat -an | grep 3306 produces nil)? jdruin Linux - Software 6 04-03-2013 10:35 AM
More about netstat command gubak Linux - Networking 1 11-30-2009 07:28 AM
netstat - grep - tail -f output log manwithaplan Linux - Networking 4 08-21-2009 05:36 PM
Netstat command Panagiotis_IOA Linux - Networking 2 03-13-2006 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:13 PM.

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