Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2003 01:28:25 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        freebsd-isp@freebsd.org
Subject:   Re: Determining what process/uid is attempting a network connection
Message-ID:  <20030523002825.GJ28372@users.munk.nu>
In-Reply-To: <20030523092953.363eaab5.sgcccdc@citec.qld.gov.au>
References:  <20030522112239.GB22219@users.munk.nu> <20030523092953.363eaab5.sgcccdc@citec.qld.gov.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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@0.0.13.5 -r10

should hopefully catch the problematic requests.

Thanks also to the others who responded in private.

Jez



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030523002825.GJ28372>