Problem in Bandwidth Monitoring using iptables
My RHEL 4 linux system is configured as transparent proxy server using squid and iptables. The Lan interface is eth0 and internet interface is eth1.
I configured the system to monitor Bandwidth Usage using iptables.
I used the following configuration for iptables :
iptables -N prolog
iptables -A FORWARD
iptables -A FORWARD -d 192.168.10.0/24 -j prolog
iptables -A FORWARD -s 192.168.10.0/24 -j prolog
iptables -A prolog -d 192.168.10.80
iptables -A prolog -s 192.168.10.80
I uses command iptables -L -v -n to see the bandwidth usages by the hosts i.e. 192.168.10.80. The problem is that iptables is not capturing total upload or download bandwidth usage. It is only showing about half of the traffic. Downloading traffics are totaly ignored.
Can any one help me what i need to do.
Thanks in advance.