RE: Can I shut down individual TCP connections?

From: McCammon, Keith (Keith.McCammon@eadvancemed.com)
Date: 07/02/02


Date: Tue, 2 Jul 2002 14:04:35 -0400
From: "McCammon, Keith" <Keith.McCammon@eadvancemed.com>
To: "Scott Weeks" <surfer@mauislanwanman.com>, <focus-ms@securityfocus.com>

Not with the click of a button, but it should be possible. Netstat on XP now has the -o switch, which will show the PID associated with the connection. You can try issuing "netstat -o -p tcp" and then killing that process.

Cheers

Keith

-----Original Message-----
From: Scott Weeks [mailto:surfer@mauislanwanman.com]
Sent: Tuesday, July 02, 2002 1:33 PM
To: focus-ms@securityfocus.com
Subject: Can I shut down individual TCP connections?

Hello Everyone,

Please let me know where to go if this isn't the correct place to ask
this type of question.

I'd like to be able to terminate particular TCP sessions and not affect
any others. For example, I saw the following tonight:

    TCP Lono:3280 andybent.com:http SYN_SENT
    TCP Lono:3281 sanaga.itu.ch:http ESTABLISHED

and I wanted to kill the andybent.com session. (Who the hell is this
anyway?) All I could really do is kill my connection to my ISP and
terminate every TCP connection. Anyway to do kill just one or a couple
of the existing TCP sessions without affecting the others?

Thanks,
scott

ps. I was asked to provide info like the OS, etc. I'm rumming XP home
edition 2002 (unfortunately) on a gateway (major cheapie) with an intel
celeron 1.2Ghz. I'd assume, though, that there'd be a dos command that'd
run across most all flavors and not just across a stripped down and
tweaked nt which is what xp home edition is...



Relevant Pages

  • RE: Can I shut down individual TCP connections?
    ... Can I shut down individual TCP connections? ... and I wanted to kill the andybent.com session. ... of the existing TCP sessions without affecting the others? ... tweaked nt which is what xp home edition is... ...
    (Focus-Microsoft)
  • RE: Can I shut down individual TCP connections?
    ... However it seems the PID is the same for many TCP connections: ... and I wanted to kill the andybent.com session. ... of the existing TCP sessions without affecting the others? ... tweaked nt which is what xp home edition is... ...
    (Focus-Microsoft)
  • Re: Killing a network connection
    ... to kill some of the TCP connections visible ... network interfaces up&down with different IP addresses (typically the wlan0 ... I'd like a way to just close TCP connections which are misbehaving in some way, not necessarily due to bad intent. ...
    (Linux-Kernel)
  • Auto-killing connections when changing IP?
    ... I almost always have SSH sessions open when I'm using my laptop, ... The fact that the TCP connections are preserved is good occasionally ... Is there some way to kill all TCP connections that go over the network ... interface `foo' whenever this interface is brought up with an IP address ...
    (comp.os.linux.networking)
  • Can I shut down individual TCP connections?
    ... I'd like to be able to terminate particular TCP sessions and not affect ... and I wanted to kill the andybent.com session. ... tweaked nt which is what xp home edition is... ...
    (Focus-Microsoft)