jow- / nlbwmon

Simple conntrack based traffic accounting
ISC License
147 stars 33 forks source link

ipv6 issues #9

Closed hub2git closed 4 years ago

hub2git commented 6 years ago

Dear @jow-

A few people who have installed nlbwmon have reported issues with the tracking of ipv6 on a thread in the Lede forums.

A user named hnyman

And another user named philjohn

And a third user named moeller0

philjohn commented 6 years ago

Yep, I was seeing this, I did have the Qualcomm FastPath patch enabled, which could be a possible issue.

jow- commented 6 years ago

Yes. The software relies on conntrack accounting which in turn needs the ability to see each packet in order to properly count transmit volume. Anything that bypasses conntrack (NOTRACK rules, fastpath, hardware NAT accelleration) will lead to skewed results.

hub2git commented 6 years ago

@jow-

Was your reply to @philjohn or to me?

Are you saying that ipv6 bypasses conntrack? Are you saying that a 100% of ipv4 goes through conntrack?

What can/should I do to get accurate accounting?

Would disabling ipv6 on my router help?

hub2git commented 6 years ago

@jow-, @philjohn

Anything that bypasses conntrack (NOTRACK rules, fastpath, hardware NAT accelleration) will lead to skewed results.

I don't want skewed results. Can I block everything that bypasses conntrack? If so, how?

Schabram commented 6 years ago

Hi I have no fw rules & SFE, HWNAT that bypass conntrack. Problem is dynamic PD change the LAN prefix and nlbwmon dont noice it. I started a clean nlbwmon session ipv6 count with 10GB down 1 GB upload accurate 11GB displayed but after prefix change no traffic count anymore or on router reboot if nlbwmon start before lan PD prefix is set also no traffic count.

My setup is easy br-lan with ULA and default IPV4 (eth0.1 + wlan 2G + 5G AC) 64 prefix from wan / use only Stateless setup odhcpd, dns get ULA router address for DNS wan with pppoe + ipv6 '1' over vlan 7 (get fe80::128) and public IPv4 wan6 '@ wan' dhcpv6 PD get 56 dynamic prefix & lan get the address everything work nice out of the box

jow- commented 4 years ago

Should have been addressed by https://github.com/openwrt/packages/commit/662d3f16d2702fe55116c852f5d456e90891ee89

naseef commented 3 years ago

Should have been addressed by openwrt/packages@662d3f1

My WAN interface is configured as PPPoE. IPV6 stats of nlbwmon is not correctly reported until I do nlbwmon service stop and start