Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2006 11:41:04 +0200
From:      Jeremie Le Hen <>
To:        "Andrey V. Elsukov" <>
Cc:, Julian Elischer <>,
Subject:   Re: [fbsd] [patch] ipfw packet tagging
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Hi Andrey,

On Wed, May 10, 2006 at 10:41:14AM +0400, Andrey V. Elsukov wrote:
> Hi, All!
> I have written a small patch for a packets
> tagging with ipfw.
> The description of OpenBSD packet tagging is here:
> An IPFW tags is not compatible with PF tags.
> This feature can be usable with some netgraph modules.
> We can create a netgraph node that marks packets with some tags
> and use this node with other nodes. IPFW can detect and filter
> packets with tags.
> Also we can mark packets before NAT and detect tagged packets
> after translation.
> NAT based on divert sockets do not allow this, but i think
> ng_nat can..
> Patches can be found here:

Looking at the patch lets me see that you are using the generic mbuf
tags.  This means the tag should be available along the packet's
trip through the kernel.  Would it be possible to slightly modify
the routing code in order to make those tags a routing criteria ?

Julian Elischer also has a neat patch that modifies the ipfw table
but he hasn't provided it so far [1].


Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

Want to link to this message? Use this URL: <>