Skip to contentSkip to conversation

forcefully closing TCP connections

DISCUSSION Michael Atighetchi 2 participants 2 messages Sep 16, 2002

lore
Share & tools
lore
#0 lore raw

I'd like to forcefully close TCP connections out of band under Linux 2.4 - does anyone know how to do this ?

Imagine:

Client <ip1, p1> -----> Server <ip2,pX>
Client <ip1, p2> -----> Server <ip2,pX>

     ...

Client <ip1, p100> ---> Server <ip2,pX>

I'm looking for an easy way to close (TCP RST?) all hundred connections without touching client / server code. Assume that I have sudo permissions to any command on Server.

Signature · 1 line
[email protected]   BBN Technologies
#1 lore raw
Quoted 5 lines · Michael Atighetchi

I'd like to forcefully close TCP connections out of band under Linux 2.4 - does anyone know how to do this ?

Imagine:

Quoted 8 lines

Client <ip1, p1> -----> Server <ip2,pX>
Client <ip1, p2> -----> Server <ip2,pX>

     ...

Client <ip1, p100> ---> Server <ip2,pX>

I'm looking for an easy way to close (TCP RST?) all hundred connections without touching client / server code. Assume that I have sudo permissions to any command on Server.

Try tcpkill, part of the dsniff suite of password sniffing / network cracking
- oops, sorry, that should say network administration tools - from Dug Song:

http://monkey.org/~dugsong/dsniff

Antony.

Signature · 7 lines
In science, one tries to tell people
in such a way as to be understood by everyone
something that no-one ever knew before.

In poetry, it is the exact opposite.

 - Paul Dirac