#!/bin/sh
echo
IPT_ext_tracking=`/sbin/iptables -L ext_tracking -n -x -v`
echo $IPT_ext_tracking
echo
This is a run with -v as part of iptables commands:
[root@XXXX test]# bw_mon
Chain ext_tracking (2 references) pkts bytes target prot opt in out source destination 11105 2458750 all -- test test1 test12 test123 test2 eth0 0.0.0.0/0 0.0.0.0/0 1129 354913 all -- eth0 test test1 test12 test123 test2 0.0.0.0/0 0.0.0.0/0
#!/bin/sh
echo
IPT_ext_tracking=`/sbin/iptables -L ext_tracking -n -x`
echo $IPT_ext_tracking
echo
This is a run without -v as part of iptables commands:
[root@XXXX test]# bw_mon
Chain ext_tracking (2 references) target prot opt source destination all -- 0.0.0.0/0 0.0.0.0/0 all -- 0.0.0.0/0 0.0.0.0/0