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 184.108.40.206
tcpkill host 220.127.116.11 or 18.104.22.168
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.