User Name
Password
AppleNova Forums » Genius Bar »

Socket connection question


Register Members List Calendar Search FAQ Posting Guidelines
Socket connection question
Thread Tools
alcimedes
I shot the sherrif.
Administrator
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
Old 2009-08-03, 21:31

A friend stumped me with this, hoping someone here will know.

We were talking about UDP and wireless (random, unrelated story about whether wireless connections drop too many UDP packets) and noticed something weird in his Netstat info.

There are entries for a porn site in there, which I'm assuming shouldn't exist.

Code:
tcp4 0 0 motherless.com.postgre *.* LISTEN tcp6 0 0 localhost.postgres *.* LISTEN tcp6 0 0 localhost.postgres *.* LISTEN tcp4 0 0 motherless.com.ipp *.* LISTEN tcp6 0 0 localhost.ipp *.* LISTEN udp4 0 0 motherless.com.ipsec-m *.* udp4 0 0 motherless.com.isakmp *.* udp4 0 0 motherless.com.ntp *.*
The local host ones of course look normal, but there are these random ones scattered in there. A reboot did nothing, and Little Snitch didn't pick up any traffic regarding the site. (although I might need to just nuke the rules he's using, but there was nothing that looked like it would allow traffic in/out there)

So my question is, is there a specific location where files would exist to create an open port, or could they be anywhere? I told him to just nuke the box and start over, but now I'm wondering if there would have been any way to find out what was establishing the socket connection.

Google is your friend.
Caveat Emptor - Latin for tough titty
I tend to interpret things in the way that's most hilarious to me
alcimedes is offline   quote
ShadowOfGed
Travels via TARDIS
 
Join Date: Aug 2005
Location: Earthsea
 
Old 2009-08-05, 00:13

A program called "lsof" will list all open files / file descriptors on the system. Sockets are file descripors, so you'd have been able to identify the offending process(es) by running that. To view such data for all users, you'd obviously need to run it as root.

Apparently I call the cops when I see people litter.
ShadowOfGed is offline   quote
alcimedes
I shot the sherrif.
Administrator
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
Old 2009-08-05, 09:21

Turns out he had a bad hosts file of all things. Someone had tried to help him block out domains, but had instead listed multiple domains as his home. (127.0.0.1)

Problem solved!

Google is your friend.
Caveat Emptor - Latin for tough titty
I tend to interpret things in the way that's most hilarious to me
alcimedes is offline   quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Connection SidecarRon Apple Products 8 2006-12-20 22:04
SSH connection to Mac naashraf Genius Bar 4 2006-03-28 07:10
MySQL 5.0 Install on OS X v.10.4.1- need help with socket error DogMom Genius Bar 1 2005-07-11 17:00
mac connection confusion. RC23 Genius Bar 3 2005-04-08 02:13
apple developer connection question RC23 Apple Products 7 2005-03-03 14:34


« Previous Thread | Next Thread »

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


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2012, AppleNova
AppleNova Slim