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

    Bandwidthd in pfSense 2.4.5

    Scheduled Pinned Locked Moved Traffic Monitoring
    13 Posts 4 Posters 4.5k Views
    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.
    • S
      SteveITS Galactic Empire
      last edited by

      https://redmine.pfsense.org/issues/10439 has another report, although Jim Pingle says it works for him. I don't know the answer, does deleting the package delete its data on disk?

      https://docs.netgate.com/pfsense/en/latest/monitoring/monitoring-bandwidth-usage.html has a few other packages, which I haven't tried.

      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
      Upvote 👍 helpful posts!

      P 1 Reply Last reply Reply Quote 0
      • P
        pbnet @SteveITS
        last edited by

        @teamits Probably not, since if you reinstall the package, you will get the same settings as before the reinstall.
        So settings are kept somehow.
        Would there be a way to ask Jim Pingle on this?

        Also: https://docs.netgate.com/pfsense/en/latest/monitoring/monitoring-bandwidth-usage.html talks about Netflow and VNStat which don't show-up in my available packages.

        alt text

        alt text

        M 1 Reply Last reply Reply Quote 0
        • M
          mmiller7
          last edited by

          I will say Bandwidthd is working for my default/native VLAN on the LAN interface - but it only shows if I click to view outside the frame. Other subnets show nothing and I was fairly sure they used to show something (but hard to be 100% sure).

          The frame not being sized right is the current most frustrating thing (to me).

          For context in my screenshot:
          192.168.1.x is my "default" untagged VLAN on the LAN interface most of my trusted personal stuff
          192.168.2.x is my guest VLAN id=2 on the LAN interface (which my work laptop is busily routing data onn)
          Maybe this will better illustrate what I'm seeing...it used to be quite usable without opening it in a separate window.

          562b7ee9-14c5-4fd4-9d55-f5d1e8dfb155-image.png

          1 Reply Last reply Reply Quote 1
          • M
            mmiller7 @pbnet
            last edited by mmiller7

            @pbnet I don't see either by name, but found some stuff mentioning those in my packages...

            For vnstat, it sounds like the command line tool I've used on Linux. Gives a total "thru the one pipe" but I don't think it would break out to tell me, for example, my HTPC is sucking up 50GB today, my Verizon Network Extender microcell used up 20GB, my NAS used 100GB...the description sounds like it would just say "you shoveled 170GB today total" and that's it.

            83871884-95eb-41ec-8455-c01419562aa4-image.png

            I see 2 packages on mine that sound like they can send "something" to Netflow but it sounds like some 3rd party (maybe Cisco?) product that you'd have to run separately? That doesn't sound like it would be a replacement/equivalent.

            f8382c9b-e717-44b0-b9bf-3f6daaeb2466-image.png

            Neither sounds like what we've had.

            EDIT: I'd also point out, when I just tried installing the traffic-monitor package with vnstat it mentions that too is not maintained...

            P 1 Reply Last reply Reply Quote 0
            • P
              pbnet @mmiller7
              last edited by

              @mmiller7 I use Bandwidthd the same as you are:

              alt text

              I've also installed DarkStat, but doesn't really do what BandwidthD did....

              1 Reply Last reply Reply Quote 1
              • H
                hedrinbc
                last edited by

                Hi all, did you find a fix?

                I noticed that is you click "Framed View [click to remove frame]" you can see the report but the framed view truncates the display as the original posted showed.

                Not a huge deal but annoying.

                BTW, this is on Chrome, Linux if it might be a browser issue.

                S 1 Reply Last reply Reply Quote 0
                • S
                  SteveITS Galactic Empire @hedrinbc
                  last edited by

                  @hedrinbc Windows/Firefox as well. If I play with the HTML a bit, if I specify a height on the iframe container, <div class="panel panel-body">, of say 1000px, the iframe will expand, since the iframe has a height of 100%.

                  Looking at a router on 2.4.4 the iframe tag is:
                  <iframe id="bandwidthd" src="/bandwidthd/index.html" scrolling="no" style="overflow: hidden; width: 100%; height: 15882px; max-width: 100%;"></iframe>

                  On 2.4.5 it is:
                  <iframe id="bandwidthd" src="/bandwidthd/index.html" scrolling="no" style="overflow:hidden; width: 100%; height: 100%; max-width: 100%;"></iframe>

                  So it would appear something was calculating the correct iframe height and is no longer doing so?

                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                  Upvote 👍 helpful posts!

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @SteveITS
                    last edited by SteveITS

                    Per https://github.com/pfsense/FreeBSD-ports/commit/183cabc59ca0b65368d1a8f6ffe967f80a46a6d2#diff-24986f02c41aa576cbf334c961135ee3 this is at the bottom of the page:

                    <?php include("foot.inc"); ?>
                    <script>
                    $('#bandwidthd').load(function() {
                    /* Find height of iframe contnet and then add 20px for padding */
                    $(this).height( $(this).contents().find("body").height() + 20 );
                    });
                    </script>

                    It renders as:
                    <script type="text/javascript">CsrfMagic.end();</script></body>
                    </html>
                    <script>
                    $('#bandwidthd').load(function() {
                    /* Find height of iframe contnet and then add 20px for padding */
                    $(this).height( $(this).contents().find("body").height() + 20 );
                    });
                    </script>

                    ...with the script after the </html>. Firefox marks this as "stray start tag 'script'" under View Page Source. Wild guess, the include("foot.inc") is now generating the </html> before the script tag.

                    @jimp are you the jim-p that edited the package? :) (edit: Just because I figured you might know if something changed and be able to edit it quickly. Also if my guess is correct it might affect other packages/pages.)

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote 👍 helpful posts!

                    1 Reply Last reply Reply Quote 0
                    • S
                      SteveITS Galactic Empire
                      last edited by

                      Dug into this a bit more today and created https://redmine.pfsense.org/issues/10911

                      The script tag after </html> was rendered that way in 2.4.4. However Firefox is logging JavaScript error "e.indexOf is not a function" in the frame-resize script after the 2.4.5 upgrade.

                      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                      Upvote 👍 helpful posts!

                      1 Reply Last reply Reply Quote 0
                      • S
                        SteveITS Galactic Empire
                        last edited by

                        Good news, it was a jQuery issue [.load() removed in favor of .on( "load", handler )]: https://redmine.pfsense.org/issues/10911#change-48604
                        The package has been updated.

                        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                        Upvote 👍 helpful posts!

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