从 shell 终止 linux 套接字 (gentoo amd64)

发布于 2024-07-26 05:29:12 字数 223 浏览 4 评论 0原文

各位,在 Linux 中从 shell 终止已建立连接的最佳方法是什么?

看起来有“tcpkill”和“cutter”工具可用,但是,在我的gentoo amd64上,tcpkill被“amd64”关键字禁用,并且cutter在使用时打印错误“openning /proc/net/ip_conntrack:没有这样的文件”或目录”。

还有其他方法可以终止连接吗?

谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凉城 2024-08-02 05:29:12

dsniff的2.4_beta1-r4(包含tcpkill)“仅”标记为~amd64,所以你可能想尝试一下。
(虽然不完全是一个编程问题......)

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

叹沉浮 2024-08-02 05:29:12

由于任何特殊原因,您无法使用 killpkill(以及 netstat)来查找具有连接的进程,然后将其终止?

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文