Open rockrevenchy opened 4 years ago
I have exactly same issue on my new compiled openwrt.
unfortunately i see the same on OpenWRT master...have downloaded 500M+ in the last couple of minutes and it only shows 27MB downloaded total.
I suspect this is due to wrtbwmon selecting the wrong network interface or the device not performing any routing.
We can start debugging by inspecting output of the following commands:
iptables -nvL
iptables -nvL -t mangle
ifconfig
route -n
If your device running wrtbwmon is not doing any routing (i.e., is in bridge-only mode), the iptables counters will not be updated by default because your bridge traffic is not going through the iptables chains.
It sounds like running the following command will send bridge traffic through the iptables chains (disclaimer: I have not tested this):
echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables
You may need to adjust your iptables rules prior to running the command if you want your bridge to continue to work.
There's a similar discussion at https://github.com/Kiougar/luci-wrtbwmon/issues/20; wrtbwmon was not designed to work in bridge mode.
i think in my case the issue is that i have software offloading enabled so the traffic is not going through iptables.
in very short, after I installed wrtbwmon as well as the luci addon, I tried it by mass downloading stuff just to see how it would react, weirdly enough I could not get more than about 300KB/s download speed to show and a total download of 3MB was noted which is inaccurate considering I've been downloading about 1GB of stuff during my tests at a speed of around 2MBps.
I off course kept the page running during the whole process to keep an eye out, I also noted that it sometimes would even go as far as to say I had 0 B/s on each refresh while I was downloading.