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

    Speedtest CLI. Run speedtest on pfSense box

    Scheduled Pinned Locked Moved pfSense Packages
    167 Posts 52 Posters 137.6k 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.
    • A
      aln @adamoutler
      last edited by

      @adamoutler reboot should not be needed

      1 Reply Last reply Reply Quote 0
      • A
        adamoutler @aln
        last edited by

        @aln not sure how to activate it.
        !Screenshot_20200520-205021.png

        A 1 Reply Last reply Reply Quote 0
        • J
          J24 @aln
          last edited by

          @aln Maginficent!!! Thank you!

          Screen Shot 2020-05-20 at 7.13.29 PM.png image url)

          1 Reply Last reply Reply Quote 1
          • A
            aln @adamoutler
            last edited by

            @adamoutler I committed a fix. try the latest version.

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

              @aln said in Speedtest CLI. Run speedtest on pfSense box:

              only reason to run speedtest on pfSense is to test your ISP without speed drops of other elements in your network.

              And what might those be? While I hear you, the problem is running speedtest on your router doesn't always show you full speed of your connection.. Router meant to route, not but be a client... There are many thread here with people asking why when run speed test on pfsense do I not see my full isp speed..

              Such any tool that makes it easy to do the test, it for sure going to bring more and more of those questions.
              See @jimp post from above https://forum.netgate.com/post/675198

              example just ran, to same server
              example.jpg

              Not saying not good work.. Problem is there is rarely a time you need to run such a test from the edge.. If you think something in your network is slowing down your connection, then connect direct to the router with your client.

              2nd test.. same thing connection from router is showing slower than thru router
              example2.jpg

              This is to be expected.. Nothing wrong with the router.. Its just not really a place to test if your getting full speed from your isp. Since the router is not meant to be a client in such tests, its meant to route packets..

              Same thing comes up all the time over on the unifi forums about their routers doing speed tests.

              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.7.2, 24.11

              M 1 Reply Last reply Reply Quote 1
              • M
                MoonKnight @johnpoz
                last edited by

                @johnpoz
                Hi, I don't see so much different in the speedtest from pfsense or form my computer. Only different is the ping, but not much 2-5 ms different. :)

                --- 24.11 ---
                Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz
                Kingston DDR4 2666MHz 16GB ECC
                2 x HyperX Fury SSD 120GB (ZFS-mirror)
                2 x Intel i210 (ports)
                4 x Intel i350 (ports)

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

                  And what is your internet speed?

                  Intel(R) Core(TM) i5-7400 CPU

                  That is a pretty hefty "router" cpu ;)

                  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.7.2, 24.11

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    MoonKnight @johnpoz
                    last edited by

                    @johnpoz
                    I have 500/500 Mbps

                    test1.jpg

                    test2.jpg

                    Yeah, i do have an overkill pfsense. But right now i'm running my backup pfsense, so only Intel (R) Core(TM) i5-6400 CPU, hehe :)

                    --- 24.11 ---
                    Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz
                    Kingston DDR4 2666MHz 16GB ECC
                    2 x HyperX Fury SSD 120GB (ZFS-mirror)
                    2 x Intel i210 (ports)
                    4 x Intel i350 (ports)

                    luckman212L A 2 Replies Last reply Reply Quote 0
                    • luckman212L
                      luckman212 LAYER 8 @MoonKnight
                      last edited by

                      @johnpoz makes a good point, many pfSense installs on low power CPUs such as ARM or Atom will fail to measure the speed accurately. I've experienced this many times.

                      BUT, it's still very useful to have this as a "grain of salt" measurement, esp. when access to the LAN is limited or degraded. This has helped me confirm for example, that a remote site's ISP connection (300Mbps) was running fine, and that the slowness they were experiencing was due to a poor WiFi connection. Up to around 300Mbps the speeds can usually be measured reasonably well - even on devices like the SG2440 or SG3100.

                      1 Reply Last reply Reply Quote 2
                      • A
                        aln @MoonKnight
                        last edited by

                        @CiscoX I guess my pfSense also falls in the overkill category i5, 8GB, 60GB :)

                        1 Reply Last reply Reply Quote 2
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator
                          last edited by

                          @CiscoX nice connection! Love to have that, while get 500 down, my upload is only 50... Would just love for it to be symmetrical..

                          @luckman212 is right on target for the point trying to make.. I agree it can be a useful tool to have available.. My only concern is make it so available to your not so experienced users could cause of flood on "why" pfsense isn't showing my full speed..

                          I think this is the point jimp was trying to make way back in 2017 ;)

                          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.7.2, 24.11

                          1 Reply Last reply Reply Quote 1
                          • A
                            aln @getrav
                            last edited by

                            For those who downloaded my dashboard widget. Please get the latest update, I did some bug fixing.

                            1 Reply Last reply Reply Quote 0
                            • N
                              netblues
                              last edited by netblues

                              Its cool, and if you ran pf on virtual then probably you do have the muscles.....
                              How about a disclaimer explaining that on a mouseover on the widget (so we can keep everybody happy?)

                              And for the installer, please make a pf version check. If it runs on previous versions it will create problems.

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

                                @netblues said in Speedtest CLI. Run speedtest on pfSense box:

                                How about a disclaimer explaining that on a mouseover on the widget

                                Good idea, but the users I am talking about don't pay attention to stuff like that, or read the docs, or even know how to search a forum, or read even stickies.. etc ;)

                                You could make it screen they have to acknowledge, force them to do a captcha to acknowledge, etc.. Before the widget would even work. And they still won't get it and be asking - why does my pfsense box not get full speed with speed test.. Then will come the "is it a bug" posts ;)

                                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.7.2, 24.11

                                N A 2 Replies Last reply Reply Quote 0
                                • N
                                  netblues @johnpoz
                                  last edited by netblues

                                  @johnpoz But you DO give them root access after all :P 🙏

                                  When this happens, you only have to post the disclaimer..
                                  (not that you aren't right...)

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    aln @johnpoz
                                    last edited by

                                    @johnpoz you made a point regarding speedtest on the router. I still say the the most accurate ISP speedtest is on the router itself, eliminating the rest of the network hops.
                                    I found the best explanation on this post so I did a little test myself. My i5 CPU usually sits on 1% usage (yes, overkill pfSense box). While running speedtest it peaks to 6%.
                                    So I guess that the "problem" is indeed CPU utilisation on inferior hardware and not that speedtest shouldn't be run on the router as a rule of thumb.
                                    It is perfectly ok to run a router on a lesser CPU, routing is not CPU intensive task, but for those who have it then it is great to be able to use your machine to do some more for you.

                                    And if anyone will be looking for this information in the future then it is here. There is no need for disclaimers, popups or anything else to explain it.

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

                                      @aln said in Speedtest CLI. Run speedtest on pfSense box:

                                      still say the the most accurate ISP speedtest is on the router itself, eliminating the rest of the network hops.

                                      Logic is flawed... I just showed where the router is not showing the full speed of the connection, yet a client routing through said firewall router is..

                                      The problem with doing such tests on a "router" is the router normally is not designed to do such testing - its a router.. not a client... It routes packets, it firewalls traffic. It not meant to be a client doing speed test. Now if you have some low speed connection or a BEAST of router then sure you might not have a problem.. As per the example in this thread.. JFC I5-7600 cpu for a "router" That is nuts for any sort of soho network... That cpu has a tdp of 65W.. Why would anyone want such beast to firewall/route.. Just sucking juice!

                                      If your switches are hindering your speed, you got ISSUES! If your wifi is reaching your max isp speed... That is normal for any decent speed connection.. Since wireless is just not really capable of full gig speeds - be it the AP capabilities, or quite often just the client not able to do it..

                                      Testing isp speed via a wifi client is normally never a "good" test.. What you should be testing is if your wifi client can do what your wifi network should be able to do.. Normally something lower than your isp speed.. Unless you got some low speed connection.

                                      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.7.2, 24.11

                                      A M A 3 Replies Last reply Reply Quote 0
                                      • A
                                        aln @johnpoz
                                        last edited by

                                        @johnpoz I don't know how your logic works, but if I want to test my ISP then I want to exclude switches and wifi APs from the test.
                                        Your explanation on how a router (yes, pfSense is basically a router, no need to use parentheses) is not a client is completely wrong. A router is first of all a client, it connects to a network and being served an IP address. Therefor it's a client!
                                        Your test on the router shows slower results because your CPU doesn't have the juice to run the test, that's all. For many others it works perfectly. And why do we use those over sized hardware? Because we can afford it, we don't care about the electricity bill, we like playing with it and ... we can run speedtest on it :)

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          netblues
                                          last edited by

                                          Also, in some cases, especially in remote support, it is not practical to have access to internal resources to run browser based speed test or cli over unix terminals.
                                          So, yes, if we are optimizing things, probably it won't cut it.
                                          But if we need a broad estimate if things are more or less within expected performance, this comes handy.
                                          A problematic wan connection will be revealed immediately if there is packet loss, errors etc., before even touching any access cpe.

                                          Certainly, there is no one size fits all answer to this :)

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            adamoutler @aln
                                            last edited by

                                            @aln please start a new thread. This needs a new thread.

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