Determining what process/uid is attempting a network connection

Jez Hancock jez.hancock at munk.nu
Thu May 22 17:28:28 PDT 2003


On Fri, May 23, 2003 at 09:29:53AM +1000, Colin Campbell wrote:
> > How can I determine what process is spawning this connection attempt and
> > the uid of the process?
> 
> Try "sockstat" or install "lsof".
Cheers, just trawled through the man page for lsof and never realized it
was so useful or had such an extensive array of filtering parameters.

lsof -i at 0.0.13.5 -r10

should hopefully catch the problematic requests.

Thanks also to the others who responded in private.

Jez


More information about the freebsd-isp mailing list