tcpkill结束、断开tcp连接

来源:互联网 发布:家庭网络共享 编辑:程序博客网 时间:2024/04/28 13:37

http://www.dearda.com/index.php/archives/1163

有时候碰到某些情景需要把一些tcp连接结束掉而不想重启服务器,可以通过安装dsniff实现。

http://pkgs.repoforge.org/dsniff/   再此找到相应的rpm包,安装好之后会有tcpkill此命令。

命令实例如下:

tcpkill -9 port ftp &>/dev/null 
tcpkill -9 host 10.7.1.11 &>/dev/null 
tcpkill -9 port 25 and port 8080 &>/dev/null 
tcpkill -9 net 10.7.1 &>/dev/null 
tcpkill -9 net 10.7.1 and port 22 &>/dev/null


0 0
原创粉丝点击