From owner-freebsd-net@FreeBSD.ORG Wed Jun 22 00:06:51 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 14CD216A41C for ; Wed, 22 Jun 2005 00:06:51 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0AF443D53 for ; Wed, 22 Jun 2005 00:06:50 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.11) with ESMTP id j5M06oUo083061; Tue, 21 Jun 2005 17:06:50 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id j5M06nH4083060; Tue, 21 Jun 2005 17:06:49 -0700 (PDT) (envelope-from rizzo) Date: Tue, 21 Jun 2005 17:06:49 -0700 From: Luigi Rizzo To: Ari Suutari Message-ID: <20050621170649.B82876@xorpc.icir.org> References: <42B7B352.8040806@suutari.iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <42B7B352.8040806@suutari.iki.fi>; from ari@suutari.iki.fi on Tue, Jun 21, 2005 at 09:27:30AM +0300 Cc: freebsd-net@freebsd.org Subject: Re: Policy routing idea (Was: ipfw: Would it be possible to continue processing rest of rules after match ?) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 00:06:51 -0000 On Tue, Jun 21, 2005 at 09:27:30AM +0300, Ari Suutari wrote: > Hi, > > I sent this to ipfw mailing list some time ago, but > got no response. I would like to adjust ipfw behaviour > with fwd rules to make policy routing easier (ie. make > it separete from filtering rules). I would just like > some input if this makes any sense (or is possible at > all with current design). i suggest to implement a new action 'setnexthop' which stores the next hop as an MTAG with the packet (so it is preserved if the packet gets passed to dummynet). But perhaps, rather than a specific next hop, maybe you want to pass a reference to a different routing table instead ? cheers luigi > >Currently the ipfw fwd rules work so that the packet > >is accepted when fwd rule matches. > > > >Would it be possible just tag the packet with > >information about next_hop and just continue processing the > >rules ? This would make complex rulesets with policy-based > >routing much simpler, since one could just have relevat > >fwd statments at beginning of rule sets and then > >filter the packets in usual way. > > Ari S. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"