Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
kill TCP connection

Kill an active TCP connection

Some notes on killing a TCP connection...

Info gathering

(remember to be root!)

  • lsof | awk '{ print $2; }' | sort -rn | uniq -c | sort -rn | head
    • lsof | grep <PID>
  • netstat -tonp
  • Killcx deps: libnet-rawip-perl libnet-pcap-perl libnetpacket-perl
  • tcpkill deps: dsniff


CLOSE_WAIT related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment