Linux Netfilter discussions
 help / color / mirror / Atom feed
* Metering is not working with dynamic sets on nft v0.9.2
@ 2020-02-06 22:42 darius
  2020-02-07  9:48 ` ѽ҉ᶬḳ℠
  0 siblings, 1 reply; 8+ messages in thread
From: darius @ 2020-02-06 22:42 UTC (permalink / raw)
  To: netfilter@vger.kernel.org


[-- Attachment #1.1: Type: text/plain, Size: 1097 bytes --]

Hello,
I was using meters by using 'meter' keyword, but apparently it is now
obsolete. So, I have decided to update rules and use dynamic sets
instead. For some reason I'm getting an error stating that rule is not
supported. Here is what was working before and still works:

ct state new meter mymeter { ip saddr timeout 30s limit rate over
50/second burst 50 packets } counter drop

Then I have tried to update this rule to the following:

...
set mymeter{
    type ipv4_addr; flags timeout, dynamic;
}
...
ct state new add @mymeter { ip saddr timeout 30s limit rate over
50/second burst 50 packets } counter drop

In this case nft throws fault message:

root@HOMEROUTER:/etc/config# /etc/init.d/firewall reload
/etc/config/ruleset.nft:416:9-187: Error: Could not process rule: Not
supported
        ct state new add @mymeter { ip saddr timeout 30s limit rate over
50/second burst 50 packets } counter drop

I'm running OpenWRT, kernel v4.14.167, nft v.0.9.2
Could anyone help to find out what I'm doing wrong? It seems that I did
it according to wiki.

Regards


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

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

end of thread, other threads:[~2020-02-08 22:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-06 22:42 Metering is not working with dynamic sets on nft v0.9.2 darius
2020-02-07  9:48 ` ѽ҉ᶬḳ℠
2020-02-07 10:17   ` Florian Westphal
2020-02-07 11:00     ` Darius
2020-02-07 11:06       ` Florian Westphal
2020-02-07 11:08         ` Darius
2020-02-08 21:49         ` darius
2020-02-08 22:15           ` Florian Westphal

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