RE: Can I shut down individual TCP connections?

From: Scott Weeks (surfer@mauislanwanman.com)
Date: 07/02/02


Date: Tue, 2 Jul 2002 08:45:15 -1000 (HST)
From: Scott Weeks <surfer@mauislanwanman.com>
To: "McCammon, Keith" <Keith.McCammon@eadvancemed.com>


Thanks Keith,

However it seems the PID is the same for many TCP connections:

C:\Documents and Settings\Owner>netstat -o -p tcp

Active Connections

Proto Local Address Foreign Address State PID
TCP Lono:3151 simmerhawaii.com:http ESTABLISHED 1524
TCP Lono:3153 simmerhawaii.com:http ESTABLISHED 1524
TCP Lono:3154 simmerhawaii.com:http ESTABLISHED 1524
TCP Lono:3155 45-14-241-63.swell.com:http ESTABLISHED 1524
TCP Lono:3156 simmerhawaii.com:http ESTABLISHED 1524
TCP Lono:3157 216.205.95.253:http ESTABLISHED 1524
TCP Lono:3158 216.235.33.200:http ESTABLISHED 1524
TCP Lono:3159 unassigned.alabanza.com:http SYN_SENT 1524

I use Pine on UNIX, so to see the table formatted well, you'd need to use
a font like Courier...

scott

: 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...
:
: