When the following iptables command is executed
iptables -L -nvx | head
Chain INPUT (policy ACCEPT 283388 packets, 43757672 bytes)
pkts bytes target prot opt in out source destination
614539 67414385 INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
We get the bytes transmitted over the particular rule in the iptables chain. Is there any log files, we fetch this data, just like we fetch the bytes transmitted over an interface ens33 from /sys/class/net/ens33/statistics/rx_bytes file.