Skip to contentSkip to conversation

Drop random 20% of packets on port?

DISCUSSION Michael B Allen 4 participants 4 messages Feb 8, 2007 – Feb 9, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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

#2 lore raw
In reply to Michael B Allen

-----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