* [nftables] counter not working on kernel 5.6
@ 2020-09-28 7:18 Gopal Yadav
2020-09-28 8:41 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Gopal Yadav @ 2020-09-28 7:18 UTC (permalink / raw)
To: netfilter-devel
Running the below commands:
nft add table inet dev
nft add set inet dev ports_udp { type inet_service\; size 65536\;
flags dynamic, timeout\; timeout 30d\; }
nft add element inet dev ports_udp { 53 timeout 30d counter }
nft list ruleset
Output:
table inet dev {
set ports_udp {
type inet_service
size 65536
flags dynamic,timeout
timeout 30d
elements = { 53 expires 29d23h59m56s184ms }
}
}
Expected Output:
table inet dev {
set ports_udp {
type inet_service
size 65536
flags dynamic,timeout
timeout 30d
elements = { 53 expires 29d23h59m56s184ms counter packets 0 bytes 0 }
}
}
Am I doing something wrong?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [nftables] counter not working on kernel 5.6
2020-09-28 7:18 [nftables] counter not working on kernel 5.6 Gopal Yadav
@ 2020-09-28 8:41 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2020-09-28 8:41 UTC (permalink / raw)
To: Gopal Yadav; +Cc: netfilter-devel
On Mon, Sep 28, 2020 at 12:48:39PM +0530, Gopal Yadav wrote:
> Running the below commands:
>
> nft add table inet dev
> nft add set inet dev ports_udp { type inet_service\; size 65536\;
> flags dynamic, timeout\; timeout 30d\; }
> nft add element inet dev ports_udp { 53 timeout 30d counter }
> nft list ruleset
>
> Output:
> table inet dev {
> set ports_udp {
> type inet_service
> size 65536
> flags dynamic,timeout
> timeout 30d
> elements = { 53 expires 29d23h59m56s184ms }
> }
> }
>
> Expected Output:
> table inet dev {
> set ports_udp {
> type inet_service
> size 65536
> flags dynamic,timeout
> timeout 30d
> elements = { 53 expires 29d23h59m56s184ms counter packets 0 bytes 0 }
> }
> }
>
> Am I doing something wrong?
You need a 5.7 kernel.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-28 8:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-28 7:18 [nftables] counter not working on kernel 5.6 Gopal Yadav
2020-09-28 8:41 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).