From owner-freebsd-questions@FreeBSD.ORG Mon May 23 19:35:26 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E81316A41C for ; Mon, 23 May 2005 19:35:26 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED2B243D48 for ; Mon, 23 May 2005 19:35:25 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j4NJZPCH070343 for freebsd-questions@FreeBSD.org; Mon, 23 May 2005 14:35:25 -0500 (CDT) (envelope-from dan) Date: Mon, 23 May 2005 14:35:25 -0500 From: Dan Nelson To: FreeBSD Questions Message-ID: <20050523193524.GC16069@dan.emsphone.com> References: <20050523185517.GC44534@keyslapper.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050523185517.GC44534@keyslapper.net> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: Subject: Re: tracking down network load? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2005 19:35:26 -0000 In the last episode (May 23), Louis LeBlanc said: > I have a strange question. Well, maybe not so strange. > > I am working on my 5.3 RELEASE system, and I notice my network > monitor on gkrellm is showing unexplained loads (15/23Kbps sustained) > in traffic on the external interface. > > I'm not too concerned that this is a security breach, but I do notice > at least one ESTABLISHED connection that I can't explain (it goes > back to AOL, which naturally sows a little mistrust). > > Anyway, how to I find the actual process (server or otherwise) on my > end that is handling a given connection, and what kind of load it is > handling? sockstat or "lsof -i" will tell you which sockets belong to which processes, and tcpdump or any of a dozen or so programs in ports will give you detailed network usage. Start with trafshow and iftop. -- Dan Nelson dnelson@allantgroup.com