From: Patrick McHardy <kaber@trash.net>
To: "Christoph A." <casmls@gmail.com>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: [nft] numeric ip protocol values and omitting filter tablename
Date: Thu, 13 Aug 2009 15:49:23 +0200 [thread overview]
Message-ID: <4A8419E3.7070409@trash.net> (raw)
In-Reply-To: <4A81E801.606@gmail.com>
Christoph A. wrote:
> Hi,
>
> Is the default table (filter) also mandatory?
>
> # nft add rule filter input meta iifname eth0 accept (works)
> # nft add rule input meta iifname eth0 accept
> <cmdline>:1:16-19: Error: syntax error, unexpected meta, expecting string
> add rule input meta iifname eth0 accept
> ^^^^
The table is mandatory, the "add" and "rule" parts are not.
So you can do:
nft filter input meta iifname eth0 accept
> just in case this is not expected:
>
> # nft add rule filter input ip protocol 6 accept
> <cmdline>:1:35-35: Error: Could not resolve protocol name
> add rule filter input ip protocol 6 accept
>
> ip protocol TCP accept (works)
Yes, this is currently a known bug, types do not parse in their
basetypes. I'll fix that before the next release, which is
happening in a few weeks.
prev parent reply other threads:[~2009-08-13 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 21:52 [nft] numeric ip protocol values and omitting filter tablename Christoph A.
2009-08-13 13:49 ` 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=4A8419E3.7070409@trash.net \
--to=kaber@trash.net \
--cc=casmls@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 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.