Can you provide an example? For instance, if I have the following rule-set:
$ sudo nft list ruleset table ip filter { counter c { packets 85081 bytes 125160849 } quota q { 1048576 mbytes used 125160849 bytes } chain input { type filter hook input priority filter; policy accept; counter name "c" counter packets 85083 bytes 125160851 quota name "q" quota 1048576 mbytes used 125160849 bytes } } With the `-s` flag, I get the following: $ sudo nft -s list ruleset table ip filter { counter c { packets 0 bytes 0 } quota q { 1048576 mbytes } chain input { type filter hook input priority filter; policy accept; counter name "c" counter quota name "q" quota 1048576 mbytes } } The state for named quotas and counter and quota rules are suppressed, and the state for named counters is replaced with zeroes. J.
signature.asc
Description: PGP signature