MirBSD manpage: tcpdrop(8)

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

NAME

     tcpdrop - drop a TCP connection

SYNOPSIS

     tcpdrop laddr lport faddr fport
     tcpdrop laddr.lport faddr.fport
     tcpdrop laddr:lport faddr:fport

DESCRIPTION

     The tcpdrop command drops the TCP connection specified by the local ad-
     dress laddr, port lport and the foreign address faddr, port fport. Ad-
     dresses and ports can be specified by name or numeric value.

EXAMPLES

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

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

     The following command will drop the connection:

           # tcpdrop 192.168.5.41 80 192.168.5.1 26747

     If lynx(1) is hanging on a connection again (also works for IPv6)...

           $ netstat -anv | fgrep .80
           tcp        0      0                                 \
               192.168.0.225.25724    193.99.144.85.80         \
               ESTABLISHED

     ... then this, easily copy/pasted, will drop the connection:

           $ sudo tcpdrop 192.168.0.225.25724    193.99.144.85.80

     Do not forget the -v option to netstat(1) because otherwise, the IP ad-
     dress may be cut off in the middle.

SEE ALSO

     fstat(1), netstat(1)

MirBSD #10-current             December 1, 2017                              1

Generated on 2022-12-24 01:00:14 by $MirOS: src/scripts/roff2htm,v 1.113 2022/12/21 23:14:31 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2022 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.

Kontakt / Impressum & Datenschutzerklärung