Breaking Systems For Fun And Profit
Image by TheDigitalArtist @ Pixabay

/Networking/s/e/o/

Is your network acting a bit too reliable?

Is your firewall operating at peak efficiency?

Are your users getting complacent?

If you answered “Yes” to any of the above, run the following two commands to spice things up a bit:

1
2
iptables -I INPUT 1 -m statistic --mode random --probability 0.25 -j DROP
iptables -I OUTPUT 1 -m statistic --mode random --probability 0.25 -j DROP

What it does

This will drop one in four incoming and outgoing network packets. Just the thing for a Monday morning.

Why it works

The iptables statistic module has a random mode, that can take probablities between 0 and 1.

TL;DR