From owner-freebsd-net@FreeBSD.ORG Mon Sep 22 14:28:50 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6501D16A4B3 for ; Mon, 22 Sep 2003 14:28:50 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 508F243FFD for ; Mon, 22 Sep 2003 14:28:49 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.3) with ESMTP id h8MLSjsd057948; Mon, 22 Sep 2003 14:28:45 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id h8MLSf0c057945; Mon, 22 Sep 2003 14:28:41 -0700 (PDT) (envelope-from rizzo) Date: Mon, 22 Sep 2003 14:28:41 -0700 From: Luigi Rizzo To: "Michael W. Oliver" Message-ID: <20030922142840.A56211@xorpc.icir.org> References: <200309212010.36939.michael@gargantuan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200309212010.36939.michael@gargantuan.com>; from michael@gargantuan.com on Sun, Sep 21, 2003 at 08:10:29PM -0400 cc: freebsd-net@freebsd.org Subject: Re: Fwd: ipfw, pipes, queues, and IPv6 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2003 21:28:50 -0000 ipfw/ipfw2 will only see non-ipv4 packets at the layer2 level, i.e. if you have net.link.ether.bridge.ipfw=1 or net.link.ether.ipfw=1 So you cannot do much classification except for the protocol type. Re. ipv6 and pipes, i do not see any dummynet hooks in netinet6/ so almost surely it won't work. The long term plan is to add ipv6-specific instructions to ipfw2 so you can replace ip6_fw with ipfw2, and then you "only" need to add the post-ipfw processing from netinet/ip_{input,output}.c in the corresponding netinet6/ files. cheers luigi On Sun, Sep 21, 2003 at 08:10:29PM -0400, Michael W. Oliver wrote: Content-Description: signed data > [Folks, I posted this to ipfw@ last week, but had no takers over there. > Anyone here want to take a stab at it? Thanks in advance!] > > I am looking for a little sanity check here. I have a gif tunnel set up for > IPv6, and I am passing protocol 41 through the ipfw pipe/queue mechanism > to/from my tunnel provider (part of a grander pipe/queue scheme due to my > new Vonage service :). A couple of questions: > > 1) Am I correct in assuming that all IPv6 traffic that I am permitting via > ip6fw is governed by the pipe/queue rules that I have configured for > protocol 41 in ipfw? > > 2) If #1 is true, is there a way for me to use pipes/queues within ip6fw > itself to discriminate by type of IPv6 traffic? > > Thanks for the info! > > -- > Mike > perl -e 'print unpack("u","88V]N=&%C=\"!I;F9O(&EN(&AE861E >