Killing a linux socket from the shell (gentoo amd64)

People, what is the best way to kill an established connection from a shell in Linux?

It seems that there are tcpkill and 'cutter' tools available, however the amd64 keyword is disabled on my gentoo amd64 tcpkill and when it is used, the cutter displays the error message โ€œopenning / proc / net / ip_conntrack: This file or directory is missingโ€ .

Is there any other way to kill the connection?

Thanks.

+4
source share
2 answers

2.4_beta1-r4 dsniff (containing tcpkill) is marked as "only" as "amd64", so you can give it a shot anyway.
(not really a programming issue though ...)

+4
source

Any specific reason you can't use kill or pkill (along with netstat ) to find a process that has a connection and then kill it?

-1
source

Source: https://habr.com/ru/post/1286739/


All Articles