Date: Wed, 20 Sep 2006 14:20:19 +0300 From: Nikos Vassiliadis <nvass@teledomenet.gr> To: freebsd-questions@freebsd.org Cc: Norberto Meijome <freebsd@meijome.net> Subject: Re: Packet loss simulation with ALTQ Message-ID: <200609201420.19407.nvass@teledomenet.gr> In-Reply-To: <20060920012401.3cfbb715@localhost> References: <20060920012401.3cfbb715@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 19 September 2006 18:24, Norberto Meijome wrote:
> hi there :)
> I was planning to migrate a 4.11 firewall using a combo of ipf/ipnat and
> ipfw pipe/dummynets to pf + ALTQ.
pf/ipf/ipfw & dummynet/ALTQ are available since 5.3-R if I recall correctly.
> One thing I haven't figured out how to do with pf is the plr option to the
> dummynet configuration - we use it to simulate modem connections or just
> simply bad links.
pf.conf manual(6.1-STABLE)
probability <number>
A probability attribute can be attached to a rule, with a value set
between 0 and 1, bounds not included. In that case, the rule will
be honoured using the given probability value only. For example,
the following rule will drop 20% of incoming ICMP packets:
block in proto icmp probability 20%
> Also, is it definitely possibly to simulate the 'delay' option of dummynet
> with pf+ALTQ ?
No, ALTQ cannot delay packets, you have to use dummynet for this.
HTH, Nikos
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609201420.19407.nvass>
