Changing VnStatd max bandwidth limits for specific interfaces in 2.4.5-RELEASE-p1
-
Is there anyway to increase the max bandwidth for specific interfaces in vnstatd config ?
I get a lot of :
Traffic rate for "bxe0" higher than set maximum 1000 Mbit (20s->2673868800, r7997004 t18446744069875518448, 64bit:0), syncing
this interface is running at 2.5gbps...
I see that editing /usr/local/etc/vnstat.conf to add the following is useless since the files gets recreated when the process restart but how or where shoud I specify these options ?
MaxBandwidth 0
or
MaxBWBxe0 0
-
@tlex going to bump this for visibility, same thing here with Intel x710l running 2.5gbps to modem
Traffic rate for "ixl1" higher than set maximum 1000 Mbit Monitoring (32): pfsync0 (1000 Mbit) pflog0 (1000 Mbit) ovpns4 (1000 Mbit) ovpnc7 (1000 Mbit) ovpnc6 (1000 Mbit) ovpnc5 (1000 Mbit) ovpnc3 (1000 Mbit) ovpnc2 (1000 Mbit) ovpnc1 (1000 Mbit) ixl3 (1000 Mbit) ixl2 (1000 Mbit) ixl1 (1000 Mbit) ixl0.90 (1000 Mbit) ixl0.80 (1000 Mbit) ixl0.70 (1000 Mbit) ixl0.60 (1000 Mbit) ixl0.50 (1000 Mbit) ixl0.40 (1000 Mbit) ixl0.30 (1000 Mbit) ixl0.20 (1000 Mbit) ixl0.14 (1000 Mbit) ixl0.120 (1000 Mbit) ixl0.12 (1000 Mbit) ixl0.11 (1000 Mbit) ixl0.10 (1000 Mbit) ixl0 (1000 Mbit) igb3 (1000 Mbit) igb2.13 (1000 Mbit) igb2 (1000 Mbit) igb1 (1000 Mbit) igb0 (1000 Mbit) enc0 (1000 Mbit)
-
While looking for something else I found that I also have similar messages in my syslog. Looking further I found this recommendation for the vnStat package:
"Every NIC is added on install. So if a NIC is added (or removed) on the firewall, remove the package and install again. If the firewall has data for a NIC vnStat will report the data even if the NIC has been removed.
A reinstall of the package will not change this as the firewall has data pertaining to the non existent data and thus other packages such as vnstat2 will report the data it has or has found."Link: https://docs.netgate.com/pfsense/en/latest/packages/traffic-totals.html
Indeed I changed my hardware and restored the configuration from the old one. Some NICs changed from 1Gb to 10Gb.
However, after removing and installing the package I see this in the log:
Monitoring (10): tun_wg0 (1000 Mbit) pppoe1 (1000 Mbit) pfsync0 (1000 Mbit) pflog0 (1000 Mbit) ix1 (10000 Mbit) ix0 (10000 Mbit) igb1 (10 Mbit) igb0 (10 Mbit) enc0 (1000 Mbit) em0 (1000 Mbit)
And it's incorrect. My pppoe1 sits on ix0 and my fiber speed is 3/3Gbps, so higher than 1000Mbit vnStat thinks. Also igb0 and igb1 are 1000Mbit, not 10Mbit (they are not assigned yet, though).
I suppose the log messages we see are no more than a minor nuisance but is there a way to assign correct interface speeds for vnStat or disable these messages?