1.\" $OpenBSD: tcpdrop.8,v 1.5 2004/05/24 13:57:31 jmc Exp $ 2.\" 3.\" Copyright (c) 2004 Markus Friedl <markus@openbsd.org> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.\" $FreeBSD$ 18.\" 19.Dd March 21, 2004 20.Dt TCPDROP 8 21.Os 22.Sh NAME 23.Nm tcpdrop 24.Nd drop a TCP connection 25.Sh SYNOPSIS 26.Nm tcpdrop 27.Ar laddr 28.Ar lport 29.Ar faddr 30.Ar fport 31.Sh DESCRIPTION 32The 33.Nm 34command drops the TCP connection specified by the local address 35.Ar laddr , 36port 37.Ar lport 38and the foreign address 39.Ar faddr , 40port 41.Ar fport . 42Addresses and ports can be specified by name or numeric value. 43.Sh EXIT STATUS 44.Ex -std 45.Sh EXAMPLES 46If a connection to 47.Xr httpd 8 Pq Pa ports/www/apache2 48is causing congestion on a network link, one can drop the TCP session 49in charge: 50.Bd -literal -offset indent 51# sockstat -c | grep httpd 52www httpd 16525 3 tcp4 \e 53 192.168.5.41:80 192.168.5.1:26747 54.Ed 55.Pp 56The following command will drop the connection: 57.Bd -literal -offset indent 58# tcpdrop 192.168.5.41 80 192.168.5.1 26747 59.Ed 60.Sh SEE ALSO 61.Xr netstat 1 , 62.Xr sockstat 1 63.Sh AUTHORS 64.An Markus Friedl Aq markus@openbsd.org 65