tcpdrop(8)

tcpdrop8

Drop a tcp connection

Usage

tcpdrop local-addr local-port remote-addr remote-port

Overview

The tcpdrop command drops the TCP connection specified by the local address local-addr, port local-port and the foreign address remote-addr, port remote-port. Addresses and ports can be specified by name or numeric value.

To simplify dropping TCP connections using the output of fstat(1) and netstat(1), tcpdrop also supports a two-argument form where the address and port are separated by a colon (‘:’) or dot (‘.’) character.

Examples

If a connection to httpd(8) is causing congestion on a network link, one can drop the TCP session in charge:

$ fstat | grep 'httpd.*internet.*<--'
www      httpd      21307    3* internet stream tcp \
	0xd1007ca8 192.168.5.41:80 <-- 192.168.5.1:26747

Either of the following commands will drop the connection:

# tcpdrop 192.168.5.41 80 192.168.5.1 26747
# tcpdrop 192.168.5.41:80 192.168.5.1:26747
# tcpdrop 192.168.5.41.80 192.168.5.1.26747

Releases

46 releases since OpenBSD 3.6; the text changed 6 times.

  1. 3.6–3.8
  2. 3.9–4.1
  3. 4.2–5.3
  4. 5.4–5.5
  5. 5.6
  6. 5.7–7.2
  7. 7.3–8.0

History

The tcpdrop program first appeared in OpenBSD 3.6.

Authors

The tcpdrop program was written by Markus Friedl ⟨[email protected]⟩.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.