Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: match many protocol in a rule
Date: Thu, 17 Jun 2010 21:00:18 -0500	[thread overview]
Message-ID: <4C1AD332.90603@riverviewtech.net> (raw)
In-Reply-To: <AANLkTilErsiq8IUBxUUUq-EhS6KUQUEs6KNHKVD4UPCH@mail.gmail.com>

Curby wrote:
> I was looking for a similar feature (as it exists in ipfw) but I don't
> think that's possible in iptables.  If you want to specify multiple
> protocols for the purpose of ending with a consistent action or set of
> actions, you could make the multiple rules jump to a custom chain
> which then performs the actions.  However if you want to specify
> multiple protocols to reduce the number of rules, I don't think that
> will work.

I also thought about matching the protocols and jumping to a sub-chain. 
  However that won't work the way you want it to b/c (last I checked) 
you have to specify a protocol to be able to specify a port.  So, you 
might as well match both the protocol and the port on the same rule.



Grant. . . .

  reply	other threads:[~2010-06-18  2:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-17 23:07 match many protocol in a rule Mamadou Touré
2010-06-17 23:23 ` Curby
2010-06-18  2:00   ` Grant Taylor [this message]
2010-06-18  2:06     ` Curby
2010-06-18  6:27       ` Steve Fink

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=4C1AD332.90603@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox