#810628 Saving and restoring packet counters

Package:
ferm
Source:
ferm
Submitter:
martin f krafft
Date:
2025-06-04 21:05:02 UTC
Severity:
wishlist
Tags:
#810628#5
Date:
2016-01-10 18:53:37 UTC
From:
To:
iptables keeps packet and byte counters for each rule, and these can
be quite useful for various purposes. Unfortunately, when ferm
applies its ruleset, all the counters get zeroed.

iptables does allow counters to be restored for each rule.
Mightn't it be possible then that ferm upon flushing the rules saves
all the counters and then tries to restore them for each rule for
which a counter was previously known? I could imagine this to be as
simple as hashing the rule, storing the counters against this hash,
and upon restore, setting counters for all rules for which a hash
can be found.

Thanks for your consideration,

#810628#10
Date:
2025-05-28 14:27:53 UTC
From:
To:
Control: tags -1 help
thanks

With ferm's upstream development having slowed down, it is unlikely that
Upstream would implement this. And I don't want to flood the upstream
issue tracker with wishlist requests.

If this is still important for you, please consider filing an upstream
request yourself.

A patch implementing this would be appreciated. Therefore tagging this
bug "help".

Greetings
Marc

#810628#15
Date:
2025-05-28 14:27:53 UTC
From:
To:
Control: tags -1 help
thanks

With ferm's upstream development having slowed down, it is unlikely that
Upstream would implement this. And I don't want to flood the upstream
issue tracker with wishlist requests.

If this is still important for you, please consider filing an upstream
request yourself.

A patch implementing this would be appreciated. Therefore tagging this
bug "help".

Greetings
Marc

#810628#20
Date:
2025-06-04 20:39:41 UTC
From:
To:
Regarding the following, written by "Marc Haber" on 2025-05-28 at 16:27 Uhr +0200:

I've moved to nft, and while I would love to have continued using ferm,
it doesn't seem like that will happen.

#810628#23
Date:
2025-06-04 20:39:41 UTC
From:
To:
Regarding the following, written by "Marc Haber" on 2025-05-28 at 16:27 Uhr +0200:

I've moved to nft, and while I would love to have continued using ferm,
it doesn't seem like that will happen.