All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nicholas E. Walker" <new@vernix.org>
To: netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: Re: MAC/IP pair match submission
Date: Thu, 8 Apr 2004 11:51:39 -0400	[thread overview]
Message-ID: <20040408155139.GA22642@vernix.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0404081333110.29813-100000@chris.camcom.co.uk>

Chris,

Your patch would be even more useful if it were to allow one to specify
a target for every entry in the table.  I currently use MAC:IP matching
to jump to tables that implement ACLs and marking policies for QoS.

It would also be interesting/useful to have similar functionality for
marking packets.  In the case that one wishes to allocate a certain
amount of bandwidth to each customer when each customer has multiple
links, one could generate a table that specifies a mark based on the
MAC:IP combination, and then one could later take some action on
unmarked packets.

Thanks for this.  Work in this direction is going to allow me to
implement filtering at more points in my network because of the
possibility of using slower hardware, etc.

Nicholas

On Thu, Apr 08, 2004 at 02:51:50PM +0100, Chris Wilson wrote:
> Hi all,
> 
> I would like to submit a new IPtables match, developed by Netservers, for 
> inclusion into the main IPtables tree.
> 
> The new match is called "macmatch" because it matches against a
> (potentially very large) list of MAC/IP/Device triples, using a hash
> table. This is much more efficient (faster to match) than having thousands
> of rules like:
> 
> 	"--mac-source MAC -s IP -i DEV"
> 
> It also leads to shorter ruleset loading times, and allows triples to be
> added or removed from the list without modifying any iptables rules.
> 
> I have tried to get the patch into a format suitable for POM, using
> Rusty's NEWPATCHES guide, but I couldn't figure out what to do with the
> user-space part, so I've just included libipt_macmatch.c and
> .macmatch-test as simple files in my distribution tarball.
> 
> You can find the code at
> [http://www.netservers.co.uk/gpl/macmatch.tar.gz]. Comments are very
> welcome. Please let me know if anything stands in the way of its
> integration into IPtables and POM.
> 
> It does have some known bugs, but the most serious (system instability)
> has only been observed when debugging is explicitly turned on. Please read
> the BUGS section of macmatch.patch.help for details.
> 
> Cheers, Chris.
> -- 
> _  __ __     _
>  / __/ / ,__(_)_  | Chris Wilson -- UNIX Firewall Lead Developer |
> / (_  ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
> \__/_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |
> 
> 
> 

  reply	other threads:[~2004-04-08 15:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-08 13:51 MAC/IP pair match submission Chris Wilson
2004-04-08 15:51 ` Nicholas E. Walker [this message]
2004-04-21 16:42 ` Chris Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040408155139.GA22642@vernix.org \
    --to=new@vernix.org \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.