Date: Tue, 13 Jul 2004 10:00:19 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Matin Tamizi <matin@umd.edu> Cc: freebsd-questions@freebsd.org Subject: Re: How to drop a packet Message-ID: <20040713150019.GC42183@dan.emsphone.com> In-Reply-To: <1089730314.92bcbe00matin@umd.edu> References: <1089730314.92bcbe00matin@umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 13), Matin Tamizi said: > I'm using a FreeBSD box as a router in a test network. For the tests > that I am running, I need to be able to drop random packets and > observe the effects (responsiveness). > > What utilities in FreeBSD or C will allow me to perform the function > of dropping a random packet? You can use dummynet to create a pipe with arbitrary packet loss and delay, then run particular interfaces (or anything that can be matched via an ipfw rule) through that pipe. See the dummynet and ipfw manpages. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040713150019.GC42183>