Can we install Speedtest CLI on OPNsense ?

Started by hushcoden, April 03, 2021, 09:14:37 PM

Previous topic - Next topic
April 03, 2021, 09:14:37 PM Last Edit: April 03, 2021, 09:20:09 PM by hushcoden
I found the following details on how to install Speedtest on FreeBSD, is there a way to install it on OPNsense?

$ sudo pkg update && sudo pkg install -g libidn2 ca_root_nss
$ sudo pkg add "https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-freebsd.pkg"


https://www.speedtest.net/apps/cli

Tia.

root@opnsense:~ # pkg add "https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-freebsd.pkg"
Fetching download_file?file_path=ookla-speedtest-1.0.0-freebsd.pkg: 100%  520 KiB 532.1kB/s    00:01   
Installing speedtest-1.0.0.2-1.5ae238b...
Extracting speedtest-1.0.0.2-1.5ae238b: 100%
root@opnsense:~ # speedtest
[...]
   Speedtest by Ookla

     Server: TMP-SYSTEM-SERVICE GmbH - Bebra (id = 41142)
        ISP: Deutsche Telekom AG
    Latency:    22.43 ms   (1.03 ms jitter)
   Download:    56.78 Mbps (data used: 50.2 MB)                               
     Upload:     9.38 Mbps (data used: 8.8 MB)                               
Packet Loss:     0.0%
Result URL: https://www.speedtest.net/result/c/6c887988-4b8a-4ab9-978b-47fe498110fc
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


Yes. But that was not the question ;)
There's a FreeBSD port, BTW.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


@mimugmail I've just realised you have a plug-in: should i instasll your plug-in or from the official site?


Ummm... The speedtest plugin is mine... :-)
It installs either Ookla or Ports CLI version if you have none on the router already.


M

April 24, 2021, 03:39:59 PM #8 Last Edit: April 24, 2021, 03:44:33 PM by hushcoden
Quote from: mihak on April 19, 2021, 10:24:25 PM
Ummm... The speedtest plugin is mine... :-)
It installs either Ookla or Ports CLI version if you have none on the router already.


M
Thanks mihak - just installed your plug-in and noticed it also adds a new widget.

I tried sppedtest-cli and now want to try Ookla: do I have to uninstall it and re-install it again in order to select Ookla??

You can ˋpkg deleteˋ just the speedtes-cli, but not the plugin. Then the plugin will let you chose again in the UI.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

@mihak
any update for your plugin for FreeBSD13?

October 20, 2022, 08:08:58 PM #11 Last Edit: October 20, 2022, 08:13:34 PM by RamSense
I'm wondering about this also: is there an update coming? I just installed the speedtest plugin and it doesn't seem to work with speedtest-cli, the ookla does work. (OPNsense 22.7.6-amd64 - FreeBSD 13.1-RELEASE-p2),
Deciso DEC850v2

it does work for and oakla update for freebsd13...

is it possible to select which wan to test, can the UI be updated for WAN selection
may it be by gateway or by gateway group to test it speed test directly via firewall

FYI...I tried installing the plugin and it does not install the speedtest cli for either OOKLA or Ports.

There is already a PR here for fixing this, need a few days to build a pkg