|
I shot the sherrif.
|
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 |
|
|
quote |
|
Travels via TARDIS
Join Date: Aug 2005
Location: Earthsea
|
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. |
|
|
quote |
|
I shot the sherrif.
|
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 |
|
|
quote |
| Posting Rules | Navigation |
|
|
| 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 |