Speedtest CLI. Run speedtest on pfSense box
-
-
Thank you very much, @aln!
I don't know why this isn't a stock package. Speed test on a router is a must. Thank you ever so much. This is by far my most needed package and you have just made my dreams come true.
To show my appreciation, I'd like to contribute some easy-install instructions. This short script does what you said to do. It won't install the widget if the pkg install fails. This can be run from the Diagnostics> Command Prompt > Execute Shell Command
pkg update ; pkg install -y py37-speedtest-cli && curl -o /usr/local/www/widgets/widgets/speedtest.widget.php https://raw.githubusercontent.com/aln-1/pfsense-speedtest-widget/master/speedtest.widget.php
Please consider further development, making this an official pFSense package. I'm very happy this is now a thing and thank you ever so much.
After hitting the refresh button, it comes up blank and never shows my results. I have to refresh the page to see the results. Any ideas?
-
@adamoutler when hitting the refresh button did it finish spinning? Can you see if there are any warning or errors in the browser's developer tools?
The widget will show an empty image initially and will cache the last speedtest results. You will be able to see them for as long as Ookla is caching them, as far as I can say this is forever. -
FWIW, when I ran it the second time, I also got an empty box, but every subsequent run it went fine. I just hit the chasing arrows again.
-
I get some positive feedbacks and that's nice.
This was really quick and dirty widget. Maybe I'll take it a step further.
I'll keep you posted. -
@aln maybe a reboot is required to reload the PHP system? It just stopped spinning and went blank.
-
@aln new and improved version is now available
-
@adamoutler reboot should not be needed
-
@aln not sure how to activate it.
! -
@aln Maginficent!!! Thank you!
image url)
-
@adamoutler I committed a fix. try the latest version.
-
@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/675198example just ran, to same server
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
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.
-
@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. :) -
And what is your internet speed?
Intel(R) Core(TM) i5-7400 CPU
That is a pretty hefty "router" cpu ;)
-
@johnpoz
I have 500/500 MbpsYeah, 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 :)
-
@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.
-
@CiscoX I guess my pfSense also falls in the overkill category i5, 8GB, 60GB :)
-
@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 ;)
-
For those who downloaded my dashboard widget. Please get the latest update, I did some bug fixing.
-
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.