[OpenBSD]

Manual Page Search Parameters

TCPDROP(8) System Manager's Manual TCPDROP(8)

tcpdrop
drop a TCP connection

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

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

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.

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

fstat(1), netstat(1)

The tcpdrop program first appeared in OpenBSD 3.6.

The tcpdrop program was written by Markus Friedl <markus@openbsd.org>.
August 28, 2014 OpenBSD-6.0