From owner-freebsd-questions Sat Aug 10 3:24:24 2002 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 8DD6B37B400 for ; Sat, 10 Aug 2002 03:24:22 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2B1043E5E for ; Sat, 10 Aug 2002 03:24:20 -0700 (PDT) (envelope-from fbsd-q@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.5/8.12.5) with ESMTP id g7AAOt5M077804; Sat, 10 Aug 2002 12:24:56 +0200 (CEST) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.5/8.12.5/Submit) id g7AAOtuT077803; Sat, 10 Aug 2002 12:24:55 +0200 (CEST) Date: Sat, 10 Aug 2002 12:24:55 +0200 From: Ruben de Groot To: Nathan Kinkade Cc: freebsd-questions@FreeBSD.ORG Subject: Re: kill active tcp connection w/no controlling process? Message-ID: <20020810102455.GA77683@ei.bzerk.org> References: <20020809170018.2546181c.nkinkade@dsl-only.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020809170018.2546181c.nkinkade@dsl-only.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Aug 09, 2002 at 05:00:18PM -0700, Nathan Kinkade typed: > A few minutes ago I noticed the activity lights on my switch were > blinking like mad. I knew that there was nothing I was doing that > should cause the network activity, so I checked my processes to see if > someone had connected to my httpd/ftpd and was downloading something. > Nothing there. So I ran a `netstat -f inet` and saw that there was a > TCP connection to cookies.cmpnet.com in the FIN_WAIT_1 state. I > launched a program from ports called "trafshow" and saw that my machine > was actively transfering data with cookies.cmpnet.com, so I checked > netstat again, but still only one connection to cookies.cmpnet.com in > the FIN_WAIT_1 state. This network activity went on for about 5 minutes > on my DSL connection - many megabytes must have been transfered. I've > since found that it appears to be something related to Opera, but even > killing Opera didn't kill the rogue TCP connection. This brings me to > my question: is there any way, through a shell, to kill a socket that > apparently has no proccess associated with it?...It seems that this > scenario should never happen? I can reproduce this problem simply by > reloading the questionable page in Opera. Any ideas, thoughts? By the > way I'm running 4.6 Stable cvsuped and built about a week ago -also, > Opera for Linux v6.01. Use sockstat(1) to see what process is connected. Kill that process. > > Thanks, > Nathan > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message