From owner-freebsd-pf@FreeBSD.ORG Sun Jun 19 11:01:44 2005 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 4681B16A41C for ; Sun, 19 Jun 2005 11:01:44 +0000 (GMT) (envelope-from robertusn@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0951443D4C for ; Sun, 19 Jun 2005 11:01:43 +0000 (GMT) (envelope-from robertusn@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so285272wri for ; Sun, 19 Jun 2005 04:01:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qzNxubjiOehXdYhbs7PBcwvqus6gftMEd5ZJyZu6B8TsJk+z1L2FJk40z208mjFHktaDIUADteB6iavD7rHVBYmelnQ+zsRTBf8tNoj4UZpvomuWdCWJ/3Wb9nixYyNxbJ8iPnOfIeTpsjjvCWkGLA+YAApTNhpvT96k5OfxBQc= Received: by 10.54.51.26 with SMTP id y26mr2158498wry; Sun, 19 Jun 2005 04:01:43 -0700 (PDT) Received: by 10.54.51.48 with HTTP; Sun, 19 Jun 2005 04:01:43 -0700 (PDT) Message-ID: <3713853f05061904017a4a7e3f@mail.gmail.com> Date: Sun, 19 Jun 2005 13:01:43 +0200 From: Robert Usle To: freebsd-pf@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: ipfw -pf processing order X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Robert Usle 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: Sun, 19 Jun 2005 11:01:44 -0000 Hi, I'm using FreeBSD 5.4 with ipfw (module) & pf (kernel compiled) firewall. pf is used for nat, pass/block, rdr, and dummynet/ipfw is used only for packet queueing. ext_if =3D vr0 int_if =3D rl1 ipfw rules: /sbin/ipfw pipe 10 config bw 256Kbit/s queue 20 mask dst-ip 0x000000ff /sbin/ipfw pipe 11 config bw 256Kbit/s queue 20 mask src-ip 0x000000ff /sbin/ipfw add 100 pipe 10 log ip from any to 10.0.9.0/24=20 /sbin/ipfw add 101 pipe 11 log ip from 10.0.9.0/24 to any=20 sysctl: net.inet.ip.fw.one_pass: 1 (I've also tried with 'via','xmit','recv' tags) I see packets coming to my dummynet pipes/rules, but then=20 pf rdr rule: rdr on $int_if proto tcp from $internal_net to any port 80 -> 127.0.0.1 port 3128 does not work. When i disable ipfw firewall, it's just ok again. pf options are as follows: set optimization normal set block-policy drop set require-order yes scrub in all Is this related to firewall processing order ? Thanks, --=20 Robert