tcpdrop man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

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

     tcpdrop — drop TCP connections

     tcpdrop local-address local-port foreign-address foreign-port
     tcpdrop [-l] -a

     The tcpdrop command may be used to drop TCP connections from the command

     If -a is specified then tcpdrop will attempt to drop all active connec‐
     tions.  The -l flag may be given to list the tcpdrop invocation to drop
     all active connections one at a time.

     If -a is not specified then only the connection between the given local
     address local-address, port local-port, and the foreign address
     foreign-address, port foreign-port, will be dropped.

     Addresses and ports may be specified by name or numeric value.  Both IPv4
     and IPv6 address formats are supported.  tcpdrop in case of success or

     The tcpdrop utility exits 0 on success, and >0 if an error occurs.

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

	   # sockstat -c | grep httpd
	   www	    httpd      16525 3	tcp4 \

     The following command will drop the connection:

	   # tcpdrop 80 26747

     The following command will drop all connections but those to or from port
     22, the port used by sshd(8):

	   # tcpdrop -l -a | grep -vw 22 | sh

     netstat(1), sockstat(1)

     Markus Friedl ⟨⟩
     Juli Mallett ⟨⟩

BSD				March 24, 2009				   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net