Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Aug 272010
 

How to kill a TCP connection using tcpkill?

Answer:

You can use the tcpkill program.

tcpkill came with the dsniff in Debian/Ubuntu, you need to install it manually.

# sudo apt-get install dsniff

Usages:

1. Kill all outgoing web (port 80) connection:

# tcpkill -i eth0 port 80

2. Kill all connection by IP

# tcpkill -i eth0 host www.google.com

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>