|
NAMEtcpdrop —
drop TCP connections
SYNOPSIS
DESCRIPTIONThetcpdrop command may be used to drop TCP connections
from the command line.
If If If If If multiple of The If none of the Addresses and ports may be specified by name or numeric value. Both IPv4 and IPv6 address formats are supported. The addresses and ports may be separated by periods or colons instead of spaces. EXIT STATUSThetcpdrop utility exits 0 on success,
and >0 if an error occurs.
EXAMPLESIf 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 \ 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 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 To drop all TCP connections using the new-reno congestion control algorithm use: # tcpdrop -C new-reno The following command will drop all connections using the TCP stack rack: # tcpdrop -S rack To drop all TCP connections in the LAST_ACK state use: # tcpdrop -s LAST_ACK To drop all TCP connections using the congestion control algorithm new-reno and the TCP stack rack and being in the LAST_ACK state use: # tcpdrop -C new-reno -S rack -s LAST_ACK SEE ALSOnetstat(1), sockstat(1), tcp(4), tcp_functions(9)AUTHORSMarkus Friedl <markus@openbsd.org>Juli Mallett <jmallett@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |