From: Brad Fisher <brad@info-link.net>
To: david@edeca.net
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Unique IDs for rules?
Date: Mon, 19 Jan 2004 12:04:35 -0600 [thread overview]
Message-ID: <400C1C33.4A6A7DBC@info-link.net> (raw)
In-Reply-To: 200401191738.26995.lists@edeca.net
David Cannings wrote:
> On Monday 19 January 2004 4:03 pm, Henrik Nordstrom wrote:
> > On Mon, 19 Jan 2004, David Cannings wrote:
> > > I want to do similar with other rules elsewhere in the chain but I
> > > can't be sure that they'll always be number 12, for example. This
> > > makes grepping for them a little harder. Would it be possible to
> > > have some sort of "comment" field for each rule so that some sort of
> > > token or unique ID for the rule could be inserted. That way, it
> > > would simply be a case of "iptables -L -v | grep 'token'".
> >
> > There was a dummy match posted some time ago intended for this purpose,
> > or at least it was discussed. This adds very little extra overhead
> > provided the match is the last match used in the rule.
> >
FWIW: I did post a patch for a "comment" match a while back. Splitting your
rules into separate chains is probably the way to go for your situation, but
I thought I'd mention it. If you're still interested, I'd be glad to send
you a copy of the patch.
-Brad
prev parent reply other threads:[~2004-01-19 18:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-19 13:31 Unique IDs for rules? David Cannings
2004-01-19 16:03 ` Henrik Nordstrom
2004-01-19 17:38 ` David Cannings
2004-01-19 17:52 ` Henrik Nordstrom
2004-01-19 18:04 ` Brad Fisher [this message]
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=400C1C33.4A6A7DBC@info-link.net \
--to=brad@info-link.net \
--cc=david@edeca.net \
--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.