Re: named vmaps

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

 



On Mon, Nov 24, 2014 at 08:03:16PM +0100, Bjørnar Ness wrote:
> 2014-11-24 12:55 GMT+01:00 Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>:
> > On Fri, Nov 21, 2014 at 09:22:00AM +0100, Bjørnar Ness wrote:
> >> Is support for named vmaps removed from nft? Running kernel 3.18.0-rc5
> >> [ ... ]
> >
> > I have updated the documentation:
> >
> > http://wiki.nftables.org/wiki-nftables/index.php/Dictionaries
> >
> > Please, let me know if you find any mistake on it. Thanks.
> 
> This works, thanks Pablo!
> 
> A few comments, tho:
> 
> Is it possible/planned to make counters work with sets/vmaps?
> 
> nft add rule filter input ip saddr vmap @my_vmap counter
>
> will not work since it counts too late (never)

vmap is terminal, nft should spot an error with that rule.

What would you like to achieve with that 'counter'? Count packets that
are look up in the set/vmap?

> Is the following planned:
> 1) individual element counters
> 2) comments for elements
> 3) element timeout

Those can be implemented, yes.

> Also, negative set/vmap lookup does not seem to work, I would like the
> following functionality
> 
> nft insert rule filter forward ip saddr !@ignorelist ip saddr @blocklist drop

Negative set lookup is relatively easy to implement, we'll have this
soon.

Negative vmap lookup, I don't see at this moment how this can be
useful.

Thanks for testing.
--
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