From: Patrick McHardy <kaber@trash.net>
To: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nftables PATCH] proto: add icmp and icmpv6 in inet protocols
Date: Mon, 23 Jun 2014 12:55:22 +0100 [thread overview]
Message-ID: <20140623115522.GA32759@macbook.localnet> (raw)
In-Reply-To: <1403522297-16661-1-git-send-email-alvaroneay@gmail.com>
On Mon, Jun 23, 2014 at 01:18:17PM +0200, Alvaro Neira Ayuso wrote:
> If we try to add a rule with icmp or icmpv6 in a inet table like this:
>
> nft add rule inet filter input icmp type echo-request counter
> or
> nft add rule inet filter input icmpv6 type echo-request counter
>
> we have this error:
>
> <cmdline>:1:28-38: Error: conflicting protocols specified: inet-service vs. icmpv6
> add rule inet filter input icmpv6 type echo-request counter accept
> ^^^^^^^^^^^
>
> This patch solve it adding icmp and icmpv6 in the inet protocols that we can use.
> Also, I have added a statement meta for restricting that the rules for icmp is only
> for ipv4 traffic and the rules for icmpv6 is for ipv6 traffic.
These a rather complex changes and I'd like to see the protocol context
parts split and explained in more detail.
I'm also not convinced by the special handling for this case. The same
problem affects f.i. the bridge family. Stated generically, the problem
is finding dependency expressions when one or more element in the chain
is missing. My feeling is that we should walk all possible paths to
the base protocol and, if only a single path exists (for now), use that
for dependencies.
prev parent reply other threads:[~2014-06-23 11:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-23 11:18 [nftables PATCH] proto: add icmp and icmpv6 in inet protocols Alvaro Neira Ayuso
2014-06-23 11:55 ` Patrick McHardy [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=20140623115522.GA32759@macbook.localnet \
--to=kaber@trash.net \
--cc=alvaroneay@gmail.com \
--cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).