Detailed statistics from iptables

Once you had configured “iptables”. Like you have learned in your RHCE level training.

You might want to check how much traffic is coming for each rule.

You can use “iptables -L -n -v” command to see the detailed packet transmission statistics.


-n – is used for no name resolution.
-v – is used for getting detailed information. This option shows the interface name, the rule option, and the TOS masks. The packet and byte counters are also listed.

Below is the screenshot of my machine. (not much traffic statistics though)

PS: You can also view this post on Network NUTS Facebook Page.

Detailed statistics from iptables command

Detailed statistics from iptables command