1 .\" $OpenBSD: tcpdrop.8,v 1.5 2004/05/24 13:57:31 jmc Exp $
3 .\" Copyright (c) 2009 Juli Mallett <jmallett@FreeBSD.org>
4 .\" Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 .Nd drop TCP connections
38 command may be used to drop TCP connections from the command line.
44 will attempt to drop all active connections.
47 flag may be given to list the tcpdrop invocation to drop all active
48 connections one at a time.
52 is not specified then only the connection between the given local
57 and the foreign address
63 Addresses and ports may be specified by name or numeric value.
64 Both IPv4 and IPv6 address formats are supported.
70 is causing congestion on a network link, one can drop the TCP session
72 .Bd -literal -offset indent
73 # sockstat -c | grep httpd
74 www httpd 16525 3 tcp4 \e
75 192.168.5.41:80 192.168.5.1:26747
78 The following command will drop the connection:
79 .Bd -literal -offset indent
80 # tcpdrop 192.168.5.41 80 192.168.5.1 26747
83 The following command will drop all connections but those to or from
84 port 22, the port used by
86 .Bd -literal -offset indent
87 # tcpdrop -l -a | grep -vw 22 | sh
93 .An Markus Friedl Aq markus@openbsd.org
94 .An Juli Mallett Aq jmallett@FreeBSD.org