Re: [nftables] counter not working on kernel 5.6

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

 



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.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux