LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2009, 02:39 PM   #1
roarrr
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Strange HTTPS connections to localhost6.localdomain in netstat


Hi,

This may be a newbie question, i'm concerned about security on my box:

I started to see a lot of HTTPS connections from/to localhost6.localdomain6

I'm trying to find out where these could come from and why they are being established. How can I find out which processes, users, scripts or whatever are initiating these connections?

To my knowledge there are no users/websites on this server using https. Why would the box make so many HTTPS connection to itself?

I'm running 2.6.18-53.1.21.el5 (mockbuild@builder6.centos.org) with Direct Admin.

Code:
# netstat -T |grep https
tcp        0      0 localhost6.localdomain6:https localhost6.localdomain6:59683 TIME_WAIT
tcp        0      0 localhost6.localdomain6:https localhost6.localdomain6:59682 TIME_WAIT
tcp        0      0 localhost6.localdomain6:https localhost6.localdomain6:59684 TIME_WAIT
tcp        0      0 localhost6.localdomain6:https localhost6.localdomain6:59686 TIME_WAIT
tcp        0      0 localhost6.localdomain6:https localhost6.localdomain6:59689 TIME_WAIT
tcp        0      0 localhost6.localdomain6:https localhost6.localdomain6:59688 TIME_WAIT
tcp        0      0 localhost6.localdomain6:https localhost6.localdomain6:59690 TIME_WAIT
tcp        0      0 localhost6.localdomain6:https localhost6.localdomain6:59692 TIME_WAIT
tcp        0      0 localhost6.localdomain6:59667 localhost6.localdomain6:https TIME_WAIT
tcp        0      0 localhost6.localdomain6:59666 localhost6.localdomain6:https TIME_WAIT
tcp        0      0 localhost6.localdomain6:59664 localhost6.localdomain6:https TIME_WAIT
tcp        0      0 localhost6.localdomain6:59670 localhost6.localdomain6:https TIME_WAIT
tcp        0      0 localhost6.localdomain6:59675 localhost6.localdomain6:https TIME_WAIT
tcp        0      0 localhost6.localdomain6:59679 localhost6.localdomain6:https TIME_WAIT
tcp        0      0 localhost6.localdomain6:59678 localhost6.localdomain6:https TIME_WAIT
tcp        0      0 localhost6.localdomain6:59677 localhost6.localdomain6:https TIME_WAIT
(this is only a part of the connections, there's about 3 times as much of these)

Thanks in advance!
 
Old 11-05-2009, 02:52 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Use:
Code:
# netstat -tnp | egrep 'PID|:443\>'
Make a note of the PID(s). Then use:
Code:
# lsof -p pid_here
You can see what the processes are up to.
 
Old 11-05-2009, 03:14 PM   #3
roarrr
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
Use:
Code:
# netstat -tnp | egrep 'PID|:443\>'
Make a note of the PID(s). Then use:
Code:
# lsof -p pid_here
You can see what the processes are up to.
Thanks, that was what I was looking for.

Unfortunately, netstat -tnp doesn't show any pid's. It just shows a - where the pid should be.

Code:
tcp        0      0 ::1:57956                   ::1:443                     TIME_WAIT   -
tcp        0      0 ::1:57957                   ::1:443                     TIME_WAIT   -
tcp        0      0 ::1:57958                   ::1:443                     TIME_WAIT   -
tcp        0      0 ::1:57959                   ::1:443                     TIME_WAIT   -
tcp        0      0 ::1:443                     ::1:57947                   TIME_WAIT   -
tcp        0      0 ::1:443                     ::1:57946                   TIME_WAIT   -
tcp        0      0 ::1:443                     ::1:57949                   TIME_WAIT   -
tcp        0      0 ::1:443                     ::1:57953                   TIME_WAIT   -
(again: there's about 40 of these in total)
 
Old 11-05-2009, 03:44 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I see. Just speculating, but maybe the TIME_WAIT status is a clue (the process itself could be long gone by now).

Do you have any service on the system (e.g. some web application served up by Apache) that you might expect to be connecting on loopback? If so, bounce that service and/or httpd and see if they go away.

Last edited by anomie; 11-05-2009 at 03:46 PM.
 
Old 11-05-2009, 04:40 PM   #5
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
be root when you netstat. The - where the pid should be normally only shows when you are not root...
 
Old 11-06-2009, 08:26 AM   #6
roarrr
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
be root when you netstat. The - where the pid should be normally only shows when you are not root...
Thank for your comment, but I was root.
 
Old 11-09-2009, 05:03 AM   #7
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Does direct admin has any monitoring included? Like check if a website is there or a certain program is running?
It could just be that it connects to HTTPS to check if the servers alive...
Just even more importent does server run anything on port 443?
 
  


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
How do I allow mysql connections over network (netstat -an | grep 3306 produces nil)? jdruin Linux - Software 6 04-03-2013 10:35 AM
netstat - killing connections? Sir P Linux - Server 4 08-07-2009 04:01 PM
Active connections conundrum involving lsof / netstat output uncle-c Linux - Newbie 8 12-09-2007 10:56 AM
Some https connections time out. Likosin Linux - Networking 0 04-26-2005 07:48 PM
Squid problem with https connections thermoponch Linux - Networking 0 11-03-2004 04:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:27 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