Created
December 2, 2016 10:37
-
-
Save SammyVimes/ea2786f10db137e3301dd845702c65c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for randomly dropping 10% of incoming packets: | |
iptables -A INPUT -m statistic --mode random --probability 0.1 -j DROP | |
# and for dropping 10% of outgoing packets: | |
iptables -A OUTPUT -m statistic --mode random --probability 0.1 -j DROP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for the incoming packets: | |
iptables -D INPUT -m statistic --mode random --probability 0.1 -j DROP | |
# and for the outgoing packets | |
iptables -D OUTPUT -m statistic --mode random --probability 0.1 -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment