Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2007 16:23:46 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-pf@freebsd.org
Subject:   Re: Using PF + ALTQ in FreeBSD 6.2
Message-ID:  <200708131623.51962.max@love2party.net>
In-Reply-To: <46C0651B.5030800@rxsec.com>
References:  <46BFD392.2020804@spin.net.id> <46C063DD.50008@spin.net.id> <46C0651B.5030800@rxsec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2414247.F6UCYkNeeQ
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=20
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.



=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--nextPart2414247.F6UCYkNeeQ
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBGwGl3XyyEoT62BG0RAs0EAJwNIrgKXLXel7eIuQCvQHVmBF5aPgCfTdmk
00NxLGWhp35bU8IAXr5BWCA=
=NKzA
-----END PGP SIGNATURE-----

--nextPart2414247.F6UCYkNeeQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708131623.51962.max>