OPNsense Forum

English Forums => General Discussion => Topic started by: hushcoden on April 03, 2021, 09:14:37 PM

Title: Can we install Speedtest CLI on OPNsense ?
Post by: hushcoden on April 03, 2021, 09:14:37 PM
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.
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: Patrick M. Hausen on April 03, 2021, 09:25:36 PM
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
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: mimugmail on April 03, 2021, 09:35:29 PM
Untrusted binarys  8)
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: Patrick M. Hausen on April 03, 2021, 09:37:34 PM
Yes. But that was not the question ;)
There's a FreeBSD port, BTW.
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: hushcoden on April 04, 2021, 02:01:39 PM
Nice, thanks !
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: hushcoden on April 08, 2021, 10:19:48 PM
@mimugmail I've just realised you have a plug-in: should i instasll your plug-in or from the official site?
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: mimugmail on April 09, 2021, 03:30:54 PM
It's not mine, I just host it. And both is not official :)

https://github.com/mimugmail/opn-repo
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: 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
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: hushcoden on April 24, 2021, 03:39:59 PM
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??
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: Patrick M. Hausen on April 24, 2021, 07:22:29 PM
You can ˋpkg deleteˋ just the speedtes-cli, but not the plugin. Then the plugin will let you chose again in the UI.
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: tong2x on August 20, 2022, 11:17:55 AM
@mihak
any update for your plugin for FreeBSD13?
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: RamSense on October 20, 2022, 08:08:58 PM
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),
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: tong2x on October 31, 2022, 02:54:25 AM
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
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: spetrillo on July 17, 2023, 04:11:27 PM
FYI...I tried installing the plugin and it does not install the speedtest cli for either OOKLA or Ports.
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: mimugmail on July 17, 2023, 07:39:14 PM
There is already a PR here for fixing this, need a few days to build a pkg
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: tong2x on August 12, 2023, 03:10:35 AM
possible to be able to select which connection? to test?
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: bcookatpcsd on August 16, 2023, 06:46:52 PM
Sorry to duplicate.. but is this the error message?

***GOT REQUEST TO INSTALL***
Currently running OPNsense 23.7.1_3 at Wed Aug 16 12:44:43 EDT 2023
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
Updating mimugmail repository catalogue...
mimugmail repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
os-speedtest-community: 0.9_3 [mimugmail]

Number of packages to be installed: 1

8 KiB to be downloaded.
[1/1] Fetching os-speedtest-community-0.9_3.pkg: .. done
Checking integrity... done (0 conflicting)
[1/1] Installing os-speedtest-community-0.9_3...
[1/1] Extracting os-speedtest-community-0.9_3: .......... done
Stopping configd...done
Starting configd.
Reloading plugin configuration
Configuring system logging...Error opening plugin module; module='examples', error='/usr/local/lib/syslog-ng/libexamples.so: Undefined symbol "random_choice_generator_parser"'
done.
Checking integrity... done (0 conflicting)
Nothing to do.
***DONE***
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: iorx on September 08, 2023, 10:05:58 PM
I got really wonky results from mimugmail speedtest. So, found this:
https://forum.opnsense.org/index.php?topic=35731.msg173764#msg173764

I got like 20-30MB/s with the speedtest-cli from the firewall, but almost 1GB/s speed through the firewall from a host. The speedtest above gave me more accurate results of in and out directly from the firewall.

root@fw:~ # speedtest

   Speedtest by Ookla

      Server: Telia Sweden AB - Stockholm (id: 45936)
         ISP: Ownit Broadband
Idle Latency:     0.58 ms   (jitter: 0.19ms, low: 0.54ms, high: 1.29ms)
    Download:   936.40 Mbps (data used: 433.9 MB)
                  3.18 ms   (jitter: 6.11ms, low: 0.89ms, high: 207.00ms)
      Upload:   937.42 Mbps (data used: 421.8 MB)
                 14.21 ms   (jitter: 3.47ms, low: 1.35ms, high: 22.77ms)
Packet Loss:     0.0%
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: 0zzy on November 12, 2023, 03:28:27 PM
@mimugmail isn't it possible to use only one specified speedtest server?
from my side it's only possible to get servers which are far away from my location.
The nearest one for me is normally "Contabo - Dusseldorf (id: 35154)".
But it's not possible to use it in the webui either in the ssh terminal.

Are the Servers Hardcoded?
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: hushcoden on November 12, 2023, 04:10:44 PM
@0zzy check with -h or --help what the options are, I believe you can get the list of the nearest servers and you can also specify a server ID to test against.
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: mimugmail on November 12, 2023, 04:54:32 PM
Its not my plugin, you can open an issue at the repo
Title: Re: Can we install Speedtest CLI on OPNsense ?
Post by: 0zzy on November 14, 2023, 04:17:41 PM
Quote from: hushcoden on November 12, 2023, 04:10:44 PM
@0zzy check with -h or --help what the options are, I believe you can get the list of the nearest servers and you can also specify a server ID to test against.
done it already the options are still there, but its not possible to get these I prefer.