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

    Traffic graph not shown for local ips

    Scheduled Pinned Locked Moved General pfSense Questions
    45 Posts 5 Posters 6.8k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @stephenw10
      last edited by johnpoz

      @stephenw10 something is not quite right with 2.7... I just fired up my 2.7 vm, and not showing Ips.. I even created a large constant ping to my pfsense 2.7 lan IP.. You can see the graph go up - but no listing of IPs

      27.jpg

      My graph before showing was on my 23.05.1 pfsense.

      edit:
      Well that is odd, if change to "remote" then it shows the local IPs ;)

      remote.jpg

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

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

        When you select local and use rate it should not show traffic to the LAN IP dircetly, rat specifically excludes that. However that seems at best unexpected to me. Patch incoming....

        And yeah the remote filter is definitely wrong!

        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @stephenw10
          last edited by johnpoz

          @stephenw10 if you flip some stuff about, ie all/remote rate/iftop - and then back to local - it then seems to work..

          trafficshowing.jpg

          The rates change - so I don't think its just showing old data.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

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

            Try attached diff: 1092.diff

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @stephenw10
              last edited by

              @stephenw10 I tried to upload that diff, and get

              The uploaded file must be in unified diff format.

              I could prob manually paste it in?

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

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

                Hmm, odd. Yeah pasted it in. Let me test....

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

                  Uploads OK for me. Weird.

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

                    Still something funky about switching between rate and iftop but at least what is shows is correct with that.

                    https://redmine.pfsense.org/issues/14892

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @stephenw10
                      last edited by johnpoz

                      @stephenw10 I pasted in - and way better

                      looksmuchbetter.jpg

                      So could/should this be applied to 23.05.1 ?? This seems to show more stuff - like the broadcast IP, etc.

                      I don't normally use the traffic graphs for anything I would truly need - so I could wait til 24.03 drops for sure for my main system.. But prob would want to add such a patch to the manager for users to easy find and apply.

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

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

                        Yeah it's petty basic and not much has changed on that page in a while. It seems to apply to everything I've tried.

                        Yeah, without the -l switch rate excludes traffic between hosts inside the considered subnet so that includes the interface address itself which is unexpected in this context IMO.

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          scorpoin @stephenw10
                          last edited by

                          @stephenw10
                          @johnpoz
                          Finally you guys figure it out this bug in 2.7 :) . I will other features are well if those are working fine with out a bug :) . @johnpoz is there any patch to fix this issue.

                          Regards

                          johnpozJ 1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator @scorpoin
                            last edited by johnpoz

                            @scorpoin said in Traffic graph not shown for local ips:

                            s there any patch to fix this issue.

                            yeah @stephenw10 posted a link to it.. Just download that diff, copy and past its stuff into the patches package (you have to install that)..

                            See here.. I just called it traffic..

                            patch.jpg

                            The link to the dif steve posted

                            https://forum.netgate.com/assets/uploads/files/1697639190805-1092.diff

                            Sure seems to have fixed it on my 2.7 VM..

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            S 1 Reply Last reply Reply Quote 1
                            • S
                              scorpoin @johnpoz
                              last edited by scorpoin

                              @johnpoz
                              @stephenw10

                              I have applied the given patch but yet not change , I'm using Pfsense CE 2.7 or do I need to reboot machine ? I have tried with patch file upload as well as paste the content into patch content box.

                              Regards

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

                                Did you apply the patch after creating it?

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  scorpoin @stephenw10
                                  last edited by scorpoin

                                  @stephenw10

                                  Correct me if I'm wrong , below is for ipv6

                                  (($filter == "local") && ((ip_in_subnet($infoarray[0], $intsubnet)) || (ip_in_subnet($infoarray[0], $intsubnet6)))) 
                                  

                                  If it is can I change that variable from 6 to 4 using ipv4

                                  (($filter == "local") && ((ip_in_subnet($infoarray[0], $intsubnet)) || (ip_in_subnet($infoarray[0], $intsubnet4)))) 
                                  

                                  yes I did create patch and just copied that content and paste it into patch text area and save /apply .

                                  When doing ssh to pfsense according to patch path /src/usr .... it does not exist but below path is there.

                                  /usr/local/pfSense/include/www/bandwidth_by_ip.inc
                                  

                                  that path having the actual file , I guess some how patch does not applied , changes are not reflect into above file .

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

                                    If the patch has the wrong path or the path strip count it wrong etc you would not be able to apply and the 'apply' button will not show. If it showed and you were able to click it it should have applied.

                                    The variable $intsubnet contains the interface IPv4 subnet. $instsubnet6 holds the interface IPv6 subnet. That line checks that the IP is in one of them before displayinbg it if 'local' is set.

                                    Steve

                                    S J 2 Replies Last reply Reply Quote 0
                                    • S
                                      scorpoin @stephenw10
                                      last edited by

                                      @stephenw10

                                      Patch applied but didnt work for me :/ .

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jrey @stephenw10
                                        last edited by jrey

                                        @stephenw10

                                        Observation from 23.09.b.20231023.1701

                                        if the selection is "rate (standard)" the IP list will populate and then clear immediately with each refresh (so the list mostly appears empty)

                                        if the selection is "iftop (experimental)" the IP list will populate and then just refresh with the update (so there is always IP addresses in the list)

                                        Edit: and the selection for WAN does the same thing. "rate" standard shows the IP updates periodically and clears list. "iftop" the ip stays in the list and the bandwidths just refresh.

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

                                          Yes, that's true. The output from rate is filtered every time it refreshes and the list is rewritten each time.

                                          One thing I have seen is that if you change from rate to iftop (or the other way) you may need to switch interfaces in order to see that.

                                          J 1 Reply Last reply Reply Quote 0
                                          • J
                                            jrey @stephenw10
                                            last edited by

                                            @stephenw10

                                            when on rate it always clears immediately after a refresh, and when on iftop is does not. Doesn't matter what else you flip back and forth. Able to reproduce 100%

                                            rate = refresh, clear list (you only see the IPs momentarily)
                                            iftop = refresh, list not cleared. (likely more correctly stated as clear, refresh)

                                            but the end result is you can see the IP list on iftop and not on rate
                                            at least with 23.09.b.20231023.1701 that is my observation.

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