LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-28-2014, 06:40 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
1780 connections from one IP


Hello, one US IP having 1700+ connections when doing:

Code:
netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head
1780 *
... *
... *

i want to ask how to debug what this IP does?
 
Old 03-28-2014, 08:02 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
It's suspicious, but not necessarily damning. Perhaps this "one IP" is the corporate router of your biggest and most fantastic customer, whose hundreds of internal computers each have two connections to your million-dollar revenue-producing service. You know your app best ... what does this usage pattern "smell like" to you?
 
1 members found this post helpful.
Old 03-28-2014, 10:13 AM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
You might want to use this command instead:
Code:
netstat -an |grep :80 |awk {'print $5'} |awk -F: {'print $1'} |sort -n |uniq -c |sort -n
 
  


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
Too many connections chrille112 Linux - Software 5 06-24-2009 03:28 PM
Using two connections at once... Kittie Rose Linux - Networking 2 01-03-2007 09:52 PM
two connections dylankelly Linux - Networking 4 04-23-2006 07:02 AM
2000 MySQL connections, still "too many connections" newlinuxnewbie Linux - General 0 11-07-2005 01:03 PM
No connections elderain Linux - Newbie 5 07-27-2004 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:51 AM.

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