Using PF + ALTQ in FreeBSD 6.2

Max Laier max at love2party.net
Mon Aug 13 14:24:04 UTC 2007


On Monday 13 August 2007, Chris Marlatt wrote:
> Dian Candra wrote:
> > Yes, it's work with Dummynet well, cause I'm using dummynet for some
> > years. The problem is, with dummynet I could not do "borrow"
> > bandwidth from the parent.
> > So, I should move to ALTQ+PF, but unfortunately I'm facing a problem
> > with it.
> > Please give me some comment, If I use ALTQ+PF in my router, it's
> > really could not limit incoming and outgoing traffic from/to my
> > client ? Does no one have a bettter experience ?
> >
> > regards,
> >
> > Dian
>
> I haven't had time to test this idea yet, maybe someone else can shed
> some light on this, but seeing as ALTQ can only queue outbound traffic,
> have you thought about queuing on both your external and internal
> interfaces? Simply changing perspective of the rules?

Yes, this is a functional approach.  It's silly, but it does what you are 
asking for.  It doesn't matter if you use ALTQ or dummynet for this, btw.

> This is dependent upon pf/ALTQ actually taking two "altq" statements in
> the pf.conf which I'm not certain it can do. It doesn't complain about
> the syntax but like I said before, I haven't tested this yet.
>
> You could also try to use a combination of pf and ipfw. I used such an
> implementation when I needed to do per ip bw limits and needed more
> queues than ALTQ would support. ipfw's "mask src-ip" and "mask dst-ip"
> work nicely for this.
>
> Best of luck in finding a functional solution.



-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20070813/2b704ae6/attachment.pgp


More information about the freebsd-pf mailing list