Problem: I needed to test some code that would auto-reconnect to a remote service, without being able to stop/restart the service.
Solution: tcpkill
For example:
apt-get install dsniff
sudo tcpkill -i eth0 port 27017 # no more outgoing connections to Mongodb