Published May 31st, 2013
Simulate network failures to test your error handling code
On Debian, the tcpdump program can be found in the dsniff package so install it using:
sudo apt-get dsniff
tcpkill port 80
tcpkill host 126.96.36.199
tcpkill host 188.8.131.52 or 184.108.40.206
The tool does not drop the TCP connection open but drops packets to or from the listed hosts. Any disconnects will come from your client code or the OS after the allowed period of inactivity.