Simulating bad network conditions

Bruce Cran bruce at cran.org.uk
Wed Feb 18 02:39:26 PST 2009


On Wed, 18 Feb 2009 08:57:15 +0000
xorquewasp at googlemail.com wrote:

> On 2009-02-18 11:42:00, Maxim Konovalov wrote:
> > 
> > ipfw(8) prob + dummynet(8).
> > 
> 
> Hi. Thanks for the quick response.
> 
> Is there, by any chance, an equivalent for PF? I see there's 'ALTQ'
> but it looks to be poorly supported (unless I misunderstand). I have
> quite a complicated setup here with PF forwarding and jails and I'm
> not sure how well ipfw will play along.

ALTQ can drop 20% of packets using something like:

block in proto icmp probability 20%

It seems ALTQ can't delay packets though, so you'd need to use dummynet
for that.

-- 
Bruce Cran


More information about the freebsd-hackers mailing list