All of lore.kernel.org
 help / color / mirror / Atom feed
* [nft] numeric ip protocol values and omitting filter tablename
@ 2009-08-11 21:52 Christoph A.
  2009-08-13 13:49 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph A. @ 2009-08-11 21:52 UTC (permalink / raw)
  To: Netfilter Developer Mailing List; +Cc: Christoph A.

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

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
               ^^^^


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)

kind regards,
Christoph


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [nft] numeric ip protocol values and omitting filter tablename
  2009-08-11 21:52 [nft] numeric ip protocol values and omitting filter tablename Christoph A.
@ 2009-08-13 13:49 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2009-08-13 13:49 UTC (permalink / raw)
  To: Christoph A.; +Cc: Netfilter Developer Mailing List

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-13 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 21:52 [nft] numeric ip protocol values and omitting filter tablename Christoph A.
2009-08-13 13:49 ` Patrick McHardy

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.