1. 程式人生 > >tcpkill結束、斷開tcp連線

tcpkill結束、斷開tcp連線


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

有時候碰到某些情景需要把一些tcp連線結束掉而不想重啟伺服器,可以通過安裝dsniff實現。

命令例項如下:

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