Linux Netfilter discussions
 help / color / mirror / Atom feed
* meter directive
@ 2020-09-04  8:38 Devin Bayer
  2020-09-27 12:27 ` Devin Bayer
  0 siblings, 1 reply; 11+ messages in thread
From: Devin Bayer @ 2020-09-04  8:38 UTC (permalink / raw)
  To: netfilter

Hello,

I am looking for some docs on the `meter` directive. Should it still be 
used instead of `map` or `set` and what are the arguments?

I see it's used in examples in the man page and also on this page:

    https://wiki.nftables.org/wiki-nftables/index.php/Meters

However the example does not work as described. When I do

     nft list map my_filter_table my_ssh_meter

I don't get the output like is described. First, it's a "set", not a 
"map", so I just see "Error: No such file or directory". But when 
changing to "list set", I don't see the counters:

table ip my_filter_table {
	set my_ssh_meter {
		type ipv4_addr . inet_service
		size 1000
		flags dynamic,timeout
		elements = {
	3.10.95.11 . 22 expires 14s492ms limit rate 10/second,
	3.123.217.208 . 22 expires 38s596ms limit rate 10/second,
	...}
     }
}

1) I wondering if someone can clarify.
2) If meter is obsolete, as the wiki suggests, can the examples in the 
man page be updated?
3) If meter isn't obsolete, can it's usage be added to the man page?

I am using nftables v0.9.6 on kernel 5.7.0.


Thanks,
Devin

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: meter directive
@ 2020-09-28 20:17 Eric Peterson
  0 siblings, 0 replies; 11+ messages in thread
From: Eric Peterson @ 2020-09-28 20:17 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: Devin Bayer, duncan_roe, netfilter

Gentlemen: 

While I appreciate being cc’d on all of these emails, none of this has anything to do with me and I have only a vague idea of what you’re discussing. You can take me off the list.

Regards,

Eric Peterson
netminder@gmail.com

Sent from my iPhone

> On Sep 28, 2020, at 11:40 AM, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> 

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

end of thread, other threads:[~2020-09-28 20:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-04  8:38 meter directive Devin Bayer
2020-09-27 12:27 ` Devin Bayer
     [not found]   ` <20200928021034.GB20886@dimstar.local.net>
2020-09-28 10:01     ` Devin Bayer
2020-09-28 12:32       ` Duncan Roe
2020-09-28 13:00         ` Devin Bayer
2020-09-28 16:08           ` Pablo Neira Ayuso
2020-09-28 16:12             ` Devin Bayer
2020-09-28 16:21               ` Pablo Neira Ayuso
2020-09-28 16:26                 ` Devin Bayer
2020-09-28 16:40                   ` Pablo Neira Ayuso
  -- strict thread matches above, loose matches on Subject: below --
2020-09-28 20:17 Eric Peterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox