os-vnstat: Interface?

Started by defaultuserfoo, September 03, 2026, 07:20:20 PM

Previous topic - Next topic
Installing the os-vnstat plugin tells you to put your default interface into it's configuration file before starting the service.  So I looked at what 'vnstat --iflist' said and put pppoe0 as interface.

Then when I looked at the GUI to start the service, I could pick the interfaces, so I picked the WAN interface.  There is no pppoe0 interface in that list.  Now the configuration has a bunch of entries and still starts with 'Interface pppoe0'.  I didn't find any other 'interface' lines in the file.

Is it supposed to be like this or is this now a misconfiguration?
PowerEdge R210II

Look at Interfaces > Assignments. Probably WAN is assigned to pppoe0. So they are one and the same. It's a bit unfortunate different subsystems and/or plugins use different identifiers. Since OPNsense introduced that WAN, LAN, ... abstraction layer above the device names IMHO all fuctions should explicitly use these only.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

September 04, 2026, 02:22:05 AM #2 Last Edit: September 04, 2026, 02:24:10 AM by defaultuserfoo
Well, it says Identifier wan for the WAN interface, and Device is pppoe0.  That's already three different designations.  It's not any better at other places but even worse because I have an interface titled Interfaces: [FORPPPOE] which turns into forPPPoE when I copy and paste the title --- while the interface is actually named forPPPoE.  But that interface has an identifier of opt5 (what is that for??), and at the same time, the device is bce0.  Why the hell does that have to be made so confusing?

And I'm just noticing that that interface is not enabled, which is probably bad because IIUC, it means that the interface settings are not being applied.  But I don't remember why I didn't enable it and what exactly it is for.  There must have been some reason that I didn't enable the interface when I set things up.

So pppoe0 is bce0.  Should that interface be enabled or not?  How is it even possible to use an interface that is disabled?

And how do I tell if vnstat is configured right?
PowerEdge R210II

No, pppoe0 is pppoe0. bce0 is probably the physical port on which PPPoE runs. That should be neither enabled nor even assigned. You can remove the assignment and get rid of part of the confusion. You want to run vnstat on pppoe0 if your Internet uplink is via PPPoE.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

September 05, 2026, 09:15:59 PM #4 Last Edit: September 05, 2026, 09:29:00 PM by defaultuserfoo
Thanks!  I don't think it can be unassigned, see pictures.

It seems to be working fine --- but is/was it a good idea to change the configuration file from the console first?

It seems that the instruction to do so may be a remnant from when there was no way to configure vnstat through the GUI.  Perhaps it interferes?
PowerEdge R210II