Re: [nft] numeric ip protocol values and omitting filter tablename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux