Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    vnstat makes weird stats on my pppoe0 interface

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 667 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gamienator 0G Offline
      Gamienator 0
      last edited by

      Hello everybody,

      I fount an interesting "Bug" on my pfSense 2.5.2:
      Running here on a dual-WAN Setup I have igb0 --> Which uses DHCP and gets WAN and then I have PPPoE0 which logically dials in.

      Since I'm a monitoring freak I setup a grafana board and I'm finally able to export my traffic stats to an influxdb (asked this question on this board aswell, solution will be posted shortly.)

      But now here is the funny part: My ISP of my PPPoE disconnects me forcefully every 24h. Therefore I setup my pfsense to forcefully disconnect at 4am every morning. Here is the strange part: vnStat thinks, that when I'm reconnecting I have a traffic of 4 GB:

      19350bda-6f0e-4f5d-af86-9f5b1f9c56a2-grafik.png

      Does anybody has an idea why? I mean, that shouldn't be normal.

      Cheers,
      Gamie

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        Hmm, never seen that. Not something I would ever normally have running though.
        Feels like a 32bit integer overrun....

        Gamienator 0G 1 Reply Last reply Reply Quote 0
        • Gamienator 0G Offline
          Gamienator 0 @stephenw10
          last edited by

          @stephenw10

          I'm debugging it with the vnstat developer too. The only problem I got atm ist: where are the config files? I only find

          /usr/local/etc/vnstat.conf
          

          But there looks like are not all information needed :/

          1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            What info are you looking for besides that?

            Gamienator 0G 1 Reply Last reply Reply Quote 0
            • Gamienator 0G Offline
              Gamienator 0 @stephenw10
              last edited by

              @stephenw10

              See the Github Issue what he needs for information:

              Could you list the values for the following options from the configuration file:
              
                  BandwidthDetection
                  MaxBandwidth
                  MaxBWpppoe0 (or that may also be MaxBWppp0 depending on how the interface is really named)
                  UpdateInterval
                  PollInterval
              
              + the information how fast the actual connection for that PPPoE interface is.
              
              stephenw10S 1 Reply Last reply Reply Quote 0
              • stephenw10S Offline
                stephenw10 Netgate Administrator @Gamienator 0
                last edited by

                Mmm, those are not specifically defined. That is the correct file though, you can see where the process is started here: /usr/local/etc/rc.d/vnstatd.sh

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.