From owner-freebsd-ipfw@FreeBSD.ORG Mon May 14 19:50:15 2007 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 25D8016A400 for ; Mon, 14 May 2007 19:50:15 +0000 (UTC) (envelope-from chengjin@fastsoft.com) Received: from mail35.opentransfer.com (MAIL35.opentransfer.com [76.162.254.35]) by mx1.freebsd.org (Postfix) with SMTP id 758DD13C46E for ; Mon, 14 May 2007 19:50:14 +0000 (UTC) (envelope-from chengjin@fastsoft.com) Received: (qmail 9333 invoked by uid 399); 14 May 2007 19:23:32 -0000 Received: from unknown (HELO grimbrute.fastsoft.com) (72.87.203.138) by mail35.opentransfer.com with SMTP; 14 May 2007 19:23:32 -0000 Date: Mon, 14 May 2007 12:23:14 -0700 To: freebsd-ipfw@freebsd.org From: "Cheng Jin" Organization: FastSoft, Inc. Content-Type: text/plain; format=flowed; delsp=yes; charset=windows-1250 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/9.20 (Win32) Subject: trouble setting up outgoing pipe on a bridged interface X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 19:50:15 -0000 Hi, I am using FreeBSD 5.4 (sorry that i am stuck using an old version) on a= = machine with bridging enabled on the two nics, vr0 and rl0. i wanted to add two dummynet pipes on the= = rl0 interface, one for incoming bridged pkts received on rl0, and one for outgoing pkts transmitted by r= l0. Setting up the receiving pipe is no problem, but i have had a lot of = trouble getting the outgoing pipe setup correctly. none of the outgoing pipes i configured seem to take = effect. i set the sysctl variable bridge_ipfw=3D1 my first question is: is what i described possible for ipfw/dummynet in = = FreeBSD 5.4? Here is a sample of what i have tried for the ougoing pipe on rl0 ipfw add 65532 pipe 2 all from any to any bridged out recv rl0 (now i s= ee = why this isnt working, this is for outgoing pkts recv on rl0, not an ougoing pipe transmitted by rl0) or ipfw add 65532 pipe 2 all from any to any briged out xmit rl0 (outgoing = = pkt transmitted by rl0, i read the bridge code, and it appears that this wouldnt work for bridged pkts sinc= e = dummynet is called before the outgoing interface is determined) or ipfw add 65532 pipe 2 all from any to any bridged out recv vr0 xmit rl0 = = (i guess this suffers the same problem as the rule above?) or ipfw add 65532 pipe 2 all from any to any bridged via rl0 (last desperat= e = attempt at making something work, and i am not too sure why it do anything) I could set up the pipe by configuring it to do "in recv vr0" and it wou= ld = be fine, but I am quite puzzled why i couldnt set up an ougoing pipe on the bridged interface li= ke = I think I should be able to do. Thanks! Cheng