bugzilla-daemon at netfilter.org
2023-Oct-01 12:43 UTC
[Bug 1710] New: When called from nft -f, list counters outputs all zeros
https://bugzilla.netfilter.org/show_bug.cgi?id=1710 Bug ID: 1710 Summary: When called from nft -f, list counters outputs all zeros Product: nftables Version: 1.0.x Hardware: x86_64 OS: Debian GNU/Linux Status: NEW Severity: major Priority: P5 Component: nft Assignee: pablo at netfilter.org Reporter: jannh at selfnet.de Created attachment 722 --> https://bugzilla.netfilter.org/attachment.cgi?id=722&action=edit Example file When adding a counter to a ruleset, the statement "nft list counters" (or "nft reset counters") can be used to output the counter values. The list counters statement can also be included into a rule file. When run from a file via "nft -f", we experienced that all counters were always zero. The attached file aims to atomically list the counters and then load a new ruleset. Under Debian bullseye, this was working as expected. The bug appeared new after the Debian bookworm upgrade. Steps to reproduce: 1. Load attached file with "nft -f". It will create a simple ruleset with only one named counter counting all input traffic. It will not make output if the rules were empty before (list counters shows nothing if there are no counters). 2. Use nft list counters to display the current values. Verify, the counter values increase (probably send a ping or so to get the counter to increase). 3. Load the attached file again. The list counter statement outputs the counters, but the values are zero. -- You are receiving this mail because: You are watching all bug changes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20231001/97815573/attachment.html>
bugzilla-daemon at netfilter.org
2023-Oct-01 21:18 UTC
[Bug 1710] When called from nft -f, list counters outputs all zeros
https://bugzilla.netfilter.org/show_bug.cgi?id=1710 jannh at selfnet.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jannh at selfnet.de -- You are receiving this mail because: You are watching all bug changes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20231001/6824b234/attachment.html>
bugzilla-daemon at netfilter.org
2024-Nov-17 20:45 UTC
[Bug 1710] When called from nft -f, list counters outputs all zeros
https://bugzilla.netfilter.org/show_bug.cgi?id=1710 kfm at plushkava.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kfm at plushkava.net -- You are receiving this mail because: You are watching all bug changes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20241117/7aea8830/attachment-0001.html>
Possibly Parallel Threads
- [Bug 1706] New: Nft is slow when loading ruleset with lots of add element calls of different interval maps
- [Bug 1462] New: `nft -j list set` does not show counters
- [Bug 1336] New: "nft reset counters" does not respect -j option for JSON output
- [Bug 1735] New: Adding nftables interval sets progressively gets slower and makes the nft CLI less responsive with each added set
- [Bug 1195] New: 'list ruleset' of 'nft -f' outputs garbage while 'nft list ruleset' seems to work.