larry axtell
Occasional Visitor
I am using a script which relies on the iptables command to obtain byte count usage from the forward chain to report totals by device. When I get the wan directly from the isp modem it works fine. Sometimes I need to get my internet service from a 3g/4g modem though. I have tried to use the usb modem directly on the router and it locks up occaisionally so I purchased a cradlepoint router for the network source. It works reliably for me. I still need to get data usage statistics. I plugged the asus router behind the cradlepoint router. The networking part works just as if I were plugged direct into the isp modem. It works great just like an access point. The problem is it only reports a small percent of the actual data usage from the eth0. The ifconfig command reports the right counts as does /proc/dev/net (/sys/.........) . I have tested extensively from the command line playing with the rules and cant figure it out. What am I missing here? I need iptables to work because I can get stats by device.