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

    Installing CLI speedtest client

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    10 Posts 6 Posters 13.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.
    • JKnottJ
      JKnott
      last edited by

      I'm trying to install the CLI speedtest client, as described here. I've been trying to install the FreeBSD version, according to the instructions, though it was necessary to remove the "sudo" commands. When I try to run the 2nd instruction, which downloads and installs the package, it fails with the error :

      "pkg: wrong architecture: FreeBSD:12:x86:64 instead of FreeBSD:11:amd64

      Failed to install the following 1 package(s): https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-freebsd.pkg"

      I thought x86_64 and amd64 were the same thing.

      Any idea how to get around this?

      Also, any chance of adding this to the available packages? Seems to me it might be useful.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @JKnott
        last edited by Gertjan

        @jknott said in Installing CLI speedtest client:

        I thought x86_64 and amd64 were the same thing.

        Before hitting that possible question, the "12" implies your using the upcoming 2.5.0. is that so ?
        remember 2.4.5-p1 is FreeBSD 11.3 based.

        I know it exists for 2.4.5-p1 as :

        [2.4.5-RELEASE][admin@pfsense.mylocallan.local]/root: speedtest-cli
        Retrieving speedtest.net configuration...
        Testing from Orange (82.126.44.254)...
        Retrieving speedtest.net server list...
        Selecting best server based on ping...
        Hosted by ORANGE FRANCE (Paris) [1.88 km]: 31.352 ms
        Testing download speed................................................................................
        Download: 15.59 Mbit/s
        Testing upload speed......................................................................................................
        Upload: 2.33 Mbit/s
        

        There is a big "speedtest-cli" forum thread. Also some one who made a GUI widget.

        edit : Pick any : https://forum.netgate.com/search?term=speedtest-cli&in=posts&matchWords=all&timeRange=31104000&timeFilter=newer&sortBy=relevance&sortDirection=desc&showAs=posts

        And there is also the "no-speedtest-on-a-router-as-it-makes-no-sense" association present on this forum ;)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        JKnottJ 1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @Gertjan
          last edited by

          @gertjan

          I'm running 2.4.5-p1. Where did you find it? I looked in the available packages and that command isn't available on my system.

          I was just curious to see how performance compares between pfsense and a computer behind it.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          GertjanG 1 Reply Last reply Reply Quote 1
          • GertjanG
            Gertjan @JKnott
            last edited by

            @jknott :

            Found it :

            [2.4.5-RELEASE][admin@pfsense.mylocallan.local]/root: pkg search speed
            py37-speedtest-cli-2.1.1       Command line interface for testing internet bandwidth
            

            So :

            pkg install py37-speedtest-cli-2.1.1
            

            will do.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            JKnottJ 1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @Gertjan
              last edited by

              @gertjan

              That did it. I'm not that familiar with the BSD way of doing things. I've been using rpm based Linux distros for many years.

              Anywho, it works and shows 669.04 Mb down on a 500 Mb connection and also that I'm 6.74 Km from the server. I had thought it was closer to 8. The browser based speedtest on my computer has shown as high as 720 Mb. Next, I'll have to see if it uses IPv6, as the browser version does.

              tnx

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              JKnottJ 1 Reply Last reply Reply Quote 0
              • JKnottJ
                JKnott @JKnott
                last edited by

                @jknott

                Hmmm... I just tried again and it selected a different site from my ISP.

                This one is the head end I'm connected to:
                Selecting best server based on ping...
                Hosted by Rogers (Mississauga, ON) [6.74 km]: 17.295 ms
                Testing download speed................................................................................
                Download: 669.04 Mbit/s

                And this one is just east of Toronto's Pearson airport, in the opposite direction:
                Hosted by Rogers (Etobicoke, ON) [17.59 km]: 13.581 ms
                Testing download speed................................................................................
                Download: 648.66 Mbit/s

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

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

                  At higher speeds (and I count that as high 😉 ) the speedtest cli client becomes less accurate in my experience. Also testing from the firewall itself will almost always give you a lower result.
                  But consistent though which is is nice.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • SebMS
                    SebM
                    last edited by

                    As per this page How To Install Speedtest-cli On a FreeBSD To Check Internet Speed, I simply ran these two commands in the GUI at Diagnostics / Command Prompt / Execute Shell Command:

                    pkg search speedtest
                    

                    This returned the following:
                    py38-speedtest-cli-2.1.3
                    Command line interface for testing internet bandwidth

                    so I ran this command:

                    pkg install -y py38-speedtest-cli-2.1.3
                    

                    Then from there I simply run speedtest

                    1 Reply Last reply Reply Quote 0
                    • A
                      ariyako
                      last edited by

                      ssh into pfsense box > shell >

                      pkg install -g libidn2 ca_root_nss
                      
                      pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-freebsd.pkg"
                      

                      then simple run speedtest

                      1 Reply Last reply Reply Quote 0
                      • W
                        wardrose
                        last edited by

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