Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage is too low compared to the real usage #37

Open
rockrevenchy opened this issue Feb 19, 2020 · 5 comments
Open

Usage is too low compared to the real usage #37

rockrevenchy opened this issue Feb 19, 2020 · 5 comments

Comments

@rockrevenchy
Copy link

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.

@assofour
Copy link

assofour commented Mar 7, 2020

I have exactly same issue on my new compiled openwrt.

@facboy
Copy link

facboy commented Mar 19, 2020

unfortunately i see the same on OpenWRT master...have downloaded 500M+ in the last couple of minutes and it only shows 27MB downloaded total.

@pyrovski
Copy link
Owner

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.

@pyrovski
Copy link
Owner

There's a similar discussion at Kiougar/luci-wrtbwmon#20; wrtbwmon was not designed to work in bridge mode.

@facboy
Copy link

facboy commented Apr 13, 2020

i think in my case the issue is that i have software offloading enabled so the traffic is not going through iptables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants