From owner-freebsd-pf@FreeBSD.ORG Mon Aug 13 14:24:04 2007 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3786516A418 for ; Mon, 13 Aug 2007 14:24:04 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.freebsd.org (Postfix) with ESMTP id C1FCD13C4A6 for ; Mon, 13 Aug 2007 14:24:03 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.66.55.99] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1IKapl2CVg-0000R5; Mon, 13 Aug 2007 16:24:00 +0200 From: Max Laier Organization: FreeBSD To: freebsd-pf@freebsd.org Date: Mon, 13 Aug 2007 16:23:46 +0200 User-Agent: KMail/1.9.7 References: <46BFD392.2020804@spin.net.id> <46C063DD.50008@spin.net.id> <46C0651B.5030800@rxsec.com> In-Reply-To: <46C0651B.5030800@rxsec.com> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2414247.F6UCYkNeeQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200708131623.51962.max@love2party.net> X-Provags-ID: V01U2FsdGVkX19cygdTigwaO6HfkGTisStFqDNhlZwEQhAXqRb hzsTnis/G8RUgfeSwXMdowgNpnbn/m8mKWLBpIDBhsQp9omhsV JGP38IZ0PtcfNTMUMbktv6cVhqkKi1yDVtfN8wGHaY= Cc: Subject: Re: Using PF + ALTQ in FreeBSD 6.2 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2007 14:24:04 -0000 --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--