How can you kill an established TCP connection on Linux?

link|improve this question
1  
kill the process holding open the connection? – Marc B Nov 2 '11 at 17:58
feedback

migrated from stackoverflow.com Nov 2 '11 at 20:00

This question came from our site for professional and enthusiast programmers.

2 Answers

There's a tool called tcpkill. You can usually get it by installing dsniff.

[root@fresh ~]# tcpkill -i eth0 tcp port 22
tcpkill: listening on eth0 [tcp port 22]
link|improve this answer
Uhm. Who marked this community wiki ? – cnicutar Nov 2 '11 at 18:04
Apparently you did. There is only 1 revision. And says "[made Community Wiki]". stackoverflow.com/posts/7985103/revisions - weird though, maybe an accidental click on the wiki checkbox? – chown Nov 2 '11 at 18:46
@chown Maybe :) – cnicutar Nov 2 '11 at 19:02
feedback

tcpkill is the command to research, let's you kill connections to / from a specified host, network or port.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown