iptables counts packets and bytes of all network traffic that passes through it.
To list the packet and byte counters, execute the iptables -L command with the -v option.
By default, the iptables counters are reset after a system reboot, but you can also reset them manually using the -Z option and this note shows some examples how to do this. (more…)