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

    speedtest-cli 403 forbidden error

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 4 Posters 12.4k 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.
    • G
      gstlouis
      last edited by

      Hello

      Every once in a while I get this error when trying to do a speed test. Any reason why this is happening? It goes away if I try it later or tomorrow...

      [2.7.0-RELEASE][root@pfSense.home]/root: speedtest-cli
      Retrieving speedtest.net configuration...
      Cannot retrieve speedtest configuration
      ERROR: HTTP Error 403: Forbidden

      johnpozJ fireodoF 3 Replies Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @gstlouis
        last edited by

        @gstlouis That seems like an error from where it talks to get info about the different servers it could talk to for a test.

        403 is a specific permissions denied error that a server can send back.. Most likely an issue on their end.

        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
        • fireodoF
          fireodo @gstlouis
          last edited by

          @gstlouis said in speedtest-cli 403 forbidden error:

          speedtest-cli

          Try: speedtest-cli --secure

          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
          pfsense 2.7.2 CE
          Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

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

            @gstlouis I just got around to testing and not seeing any problem talking to them.

            [23.05.1-RELEASE][admin@sg4860.local.lan]/root: speedtest-cli
            Retrieving speedtest.net configuration...
            Testing from RCN (209.122.x.x)...
            Retrieving speedtest.net server list...
            Selecting best server based on ping...
            Hosted by Urban Communications (Oak Forest, IL) [962.14 km]: 17.316 ms
            Testing download speed................................................................................
            Download: 536.68 Mbit/s
            Testing upload speed......................................................................................................
            Upload: 41.11 Mbit/s
            [23.05.1-RELEASE][admin@sg4860.local.lan]/root: 
            

            Not exactly sure what --secure option does. But just to see if you can talk to their servers I would use the --list option, my guess to secure would be it talks to their server via ssl vs just 80?

            [23.05.1-RELEASE][admin@sg4860.local.lan]/root: speedtest-cli --list
            Retrieving speedtest.net configuration...
            47532) Urban Communications (Oak Forest, IL, United States) [962.14 km]
            47744) AT&T (Cicero, IL, United States) [972.30 km]
            55506) Deft (Chicago, IL, United States) [977.12 km]
             7193) Sharktech Inc. (Chicago, IL, United States) [977.12 km]
            34707) Hivelocity (Chicago, IL, United States) [977.12 km]
            48338) DialConnection, LLC (Chicago, IL, United States) [977.12 km]
            51366) Jasper County REMC (Rensselaer, IN, United States) [982.81 km]
            50463) KamaTera, Inc. (Chicago, IL, United States) [983.15 km]
            48528) Kosciusko Connect (Warsaw, IN, United States) [1096.63 km]
             2036) Bloomingdale Communications (Bloomingdale, MI, United States) [1131.87 km]
            [23.05.1-RELEASE][admin@sg4860.local.lan]/root:  
            

            edit: on a side note, wonder how the cli figures out distance, because those for sure are no where near correct ;) The web site or app shows better distance info... That actually makes sense

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

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

              Yup works fine in either mode for me too.

              1 Reply Last reply Reply Quote 0
              • fireodoF
                fireodo @johnpoz
                last edited by fireodo

                @johnpoz said in speedtest-cli 403 forbidden error:

                Not exactly sure what --secure option does.

                speedtest-cli --help
                

                and you'll find out what it does :-)

                  --secure              Use HTTPS instead of HTTP when communicating with speedtest.net operated
                                        servers
                
                

                Nice weekend,
                fireodo

                Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                pfsense 2.7.2 CE
                Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

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