How to drop a packet
Dan Nelson
dnelson at allantgroup.com
Tue Jul 13 08:00:21 PDT 2004
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 at allantgroup.com
More information about the freebsd-questions
mailing list