Drop random 20% of packets on port?
I have several network protocol handlers that I would like to test. Can someone recommend a method to deliberatedly drop a certain percentage of packets destined for a particular port and in a random way using netfilter or something else?
Mike
Quoted 5 lines · Michael B Allen
I have several network protocol handlers that I would like to test. Can someone recommend a method to deliberatedly drop a certain percentage of packets destined for a particular port and in a random way using netfilter or something else?
-m statistic --mode random --probability 0.5 -j DROP
Jan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Michael B Allen
I have several network protocol handlers that I would like to test. Can someone recommend a method to deliberatedly drop a certain percentage of packets destined for a particular port and in a random way using netfilter or something else?
Mike
Have a look at this :
http://www.netfilter.org/documentation/HOWTO/netfilter-extensions-HOWTO-3.html#ss3.14
I have never used it before, so I cannot help you more.
- --
Franck Joncourt
http://www.debian.org
http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFy7TrxJBTTnXAif4RAsLtAKDG/XfSypU/Fp5O2/m/bBV3/xnWvgCfUc8R yzpvpPWZOrB0DPcxZsocDfQ=
=bEUR
-----END PGP SIGNATURE-----
___________________________________________________________
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html
Hello Michael,
Maybe this could be helpful: http://linux-net.osdl.org/index.php/Netem
Best Regards,
Silvio Fonseca
Quoted 6 lines
I have several network protocol handlers that I would like to test. Can someone recommend a method to deliberatedly drop a certain percentage of packets destined for a particular port and in a random way using netfilter or something else?
Mike