pachanga
pachanga

Reputation: 3073

Killing linux socket from shell (gentoo amd64)

Folks, what is the best way to kill an established connection from the shell in linux?

Looks like there are 'tcpkill' and 'cutter' tools available, however, on my gentoo amd64 tcpkill is disabled by the 'amd64' keyword and cutter, when used, prints an error "openning /proc/net/ip_conntrack: No such file or directory".

Is there any other way to kill the connection?

Thanks.

Upvotes: 6

Views: 4167

Answers (2)

poundifdef
poundifdef

Reputation: 19353

Any particular reason you can't use kill or pkill (along with netstat) to find the process which has the connection, and then kill it?

Upvotes: -1

VolkerK
VolkerK

Reputation: 96159

The 2.4_beta1-r4 of dsniff (containing tcpkill) is "only" marked as ~amd64, so you might want to give it a shot anyway.
(not exactly a programming question though...)

Upvotes: 5

Related Questions