I am testing the resilience of one of our streaming applications to handle packet losses. On linux machines I normally use iptables to randomly drop packets like this:
iptables -A INPUT -m statistic --mode random --probability 0.1 -j DROP
I need to test this on a server that is currently running OSX. Any ideas how to randomly drop packets on an OSX Server or Mac computer?
/Andy
Best Answer
The tool you're looking for is
dnctl
. To quote from the manpage:And: