24Nov/160
Simulating a bad connection / packet loss with iptables
This will randomly drop 60% of outgoing packages with a local process as source.
Use it for testing purposes or if you need a good laugh.
#!/bin/bash iptables -A OUTPUT -m statistic --mode random --probability 0.6 -j DROP
Leave a comment