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
Untrusted binarys 8)
Yes. But that was not the question ;)
There's a FreeBSD port, BTW.
Nice, thanks !
@mimugmail I've just realised you have a plug-in: should i instasll your plug-in or from the official site?
It's not mine, I just host it. And both is not official :)
https://github.com/mimugmail/opn-repo
Ummm... The speedtest plugin is mine... :-)
It installs either Ookla or Ports CLI version if you have none on the router already.
M
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.
@mihak
any update for your plugin for FreeBSD13?
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),
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
possible to be able to select which connection? to test?
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***
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%
@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?
@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.
Its not my plugin, you can open an issue at the repo
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.