When are iptables byte counters reset? On reboot or other rotation?
2 Answers
On reboot, or whenever you ask them to be cleared with the -Z
option to iptables.
-
3Also 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
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).