can I somehow reload firewall rules using iptables-save definition, without clearing the current runtime version counters? I want some way to only add and remove different rules and keep the old ones in place with counters intact. iptables-restore -n is not clever enough.
has anyone solved this issue before?
my monitoring is bound to firewall rules and counters and clearing them makes big spike in rrdtool charts, because rrdtool thinks it is integer overflow, not firewall update.
There are many options, you just need to change how to manage the firewall.
A couple ideas
-c
option to restore them during a reload.