From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 18 18:12:27 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8FF9106567B for ; Wed, 18 Feb 2009 18:12:27 +0000 (UTC) (envelope-from prvs=julian=2936e3358@elischer.org) Received: from smtp-outbound.ironport.com (smtp-outbound.ironport.com [63.251.108.112]) by mx1.freebsd.org (Postfix) with ESMTP id D0E828FC1E for ; Wed, 18 Feb 2009 18:12:27 +0000 (UTC) (envelope-from prvs=julian=2936e3358@elischer.org) Received: from unknown (HELO julian-mac.elischer.org) ([10.251.60.56]) by smtp-outbound.ironport.com with ESMTP; 18 Feb 2009 09:44:07 -0800 Message-ID: <499C48F8.1080604@elischer.org> Date: Wed, 18 Feb 2009 09:44:24 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Bruce Cran References: <20090218083424.GA62198@logik.internal.network> <20090218114128.B73352@mp2.macomnet.net> <20090218085715.GA9821@logik.internal.network> <20090218103903.5aee2d7d@tau.draftnet> In-Reply-To: <20090218103903.5aee2d7d@tau.draftnet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, xorquewasp@googlemail.com Subject: Re: Simulating bad network conditions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 18:12:29 -0000 Bruce Cran wrote: > On Wed, 18 Feb 2009 08:57:15 +0000 > xorquewasp@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. > vimage it the tool for you it can REALLY simulate a lot of network setups.