Linux Server Admin Tools and GNU Benchmark Tools Directory, OpenSource Tools

tcpkill command

Tcpkill is a command line tool which comes with dsnif package to kill/terminate the tcp connections on a LAN/WAN/INTERNET from ports or hosts. To install the dsnif packages read my another post regarding the dsnif installation.

Tcpkill Syntax :


OPTIONS


{expression} Specify a tcpdump(8) filter expression to select the connections to kill.

Kill all outgoing SMTP (port 25) connection:

Tcpkill

To prevent any connections to the host www.gmail.com or an ip 192.168.1.1 use this command:

To kill all IP packets between 192.168.1.1 and any host except 192.168.1.2 :

Killing all packets arriving at or departing from host 192.168.1.1


Useful Links :


Killing FIN connections using tcpkill perl script

Dsniff tutorial