Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 2002 12:24:55 +0200
From:      Ruben de Groot <fbsd-q@bzerk.org>
To:        Nathan Kinkade <nkinkade@dsl-only.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: kill active tcp connection w/no controlling process?
Message-ID:  <20020810102455.GA77683@ei.bzerk.org>
In-Reply-To: <20020809170018.2546181c.nkinkade@dsl-only.net>
References:  <20020809170018.2546181c.nkinkade@dsl-only.net>

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




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