10

When are iptables byte counters reset? On reboot or other rotation?

2 Answers 2

22

On reboot, or whenever you ask them to be cleared with the -Z option to iptables.

1
  • 3
    Also if the entry is changed in any way, iptables -R INPUT 5 -j LOG ... line 5's counters will be reset so as to properly reflect that it is a counter of what matches the function of the line. Mar 7, 2012 at 15:02
7

On reboot, when -Z is called or when a table is flushed (-F). Counters are also reset if you run "/etc/init.d/iptables stop" on RHEL or CentOS (because it flushes all default chains).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .