From owner-freebsd-pf@FreeBSD.ORG Sat Sep 9 11:00:14 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2004216A407 for ; Sat, 9 Sep 2006 11:00:14 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 529A843D49 for ; Sat, 9 Sep 2006 11:00:11 +0000 (GMT) (envelope-from max@love2party.net) Received: from [88.64.182.60] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1GM0ZE2vJg-0004Na; Sat, 09 Sep 2006 13:00:09 +0200 From: Max Laier Organization: FreeBSD To: freebsd-pf@freebsd.org Date: Sat, 9 Sep 2006 12:59:52 +0200 User-Agent: KMail/1.9.3 References: <62217.213.197.161.67.1157796343.squirrel@mail.topocentras.lt> In-Reply-To: <62217.213.197.161.67.1157796343.squirrel@mail.topocentras.lt> 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="nextPart4276749.krbKPyXChp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200609091300.07082.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: Subject: Re: Bug or other packet processing or misconfiguration error in FreeBSD. 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: Sat, 09 Sep 2006 11:00:14 -0000 --nextPart4276749.krbKPyXChp Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 09 September 2006 12:05, Albertas Guscius wrote: > Bug or other packet processing or misconfiguration error in FreeBSD. > > Hello folks, > > I'm trying the same pf configuration on FreeBSD and OpenBSD, but > results are different. The problem is that all outgoing traffic goes to > default queue ignoring quick pass rules. I can't shape outgoing traffic > on FreeBSD due to unknown problem. It looks like problem is bescause of > after NAT rules are not processed. With OpenBSD everything works fine. > I tested it on FreeBSD_6_1, 5_5 and OpenBSD_3_9. > Does anyone have any advice? > > Sincerely Yours, > Albertas > > > pf.conf: > > ext_if=3D"rl0" > int_if=3D"rl1" > internal_net=3D"10.0.10.0/24" > > external_addr=3D"192.168.0.22" > internal_addr=3D"10.0.10.1" > > altq on $ext_if hfsc bandwidth 10Mb queue { ip_out, local_out } > queue ip_out bandwidth 1Mb hfsc (upperlimit 6Mb) > queue local_out bandwidth 1Mb hfsc (default upperlimit 6Mb) > > altq on $int_if hfsc bandwidth 10Mb queue { ip_in, local_in } > queue ip_in bandwidth 1Mb hfsc (upperlimit 6Mb) > queue local_in bandwidth 1Mb hfsc (default upperlimit 6Mb) > > nat on $ext_if from $internal_net to any -> $external_addr > > pass out quick on $ext_if from any to any queue ip_out > pass out quick on $int_if from any to any queue ip_in > > pass in all > pass out all > > #in FreeBSD6.1 all traffic goes through local_out, in OpenBSD3.9 all > traffic goes through ip_out. Can you provide "pfctl -vvsr" and "pfctl -vsq" after some traffic has been= =20 generated? Can you also share details about your setup? Most=20 interestingly: Does the traffic destined to $ext_if pass through userland=20 ppp, or the like, before hitting rl0? =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 --nextPart4276749.krbKPyXChp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFAp63XyyEoT62BG0RAni8AJ9dorENtilexUI3FoTMxAxoP6qxvgCeNF62 hQgdHMY0vPMSZLQRtPhHx58= =NYgg -----END PGP SIGNATURE----- --nextPart4276749.krbKPyXChp--