Script: OpenSpeedTest Installer for NGINX on GL.iNet Routers

:satellite_antenna: Easily deploy OpenSpeedTest with NGINX on OpenWRT-based routers (GL.iNet, etc.)

Features

:package: Installs and configures NGINX to run OpenSpeedTest
:wrench: Custom NGINX configuration that avoids conflicts with the GL.iNet web UI
:file_folder: Installs to /www2, with automatic detection of available storage space
:link: Supports symlinking to external drives (e.g. SD cards or USB) if internal space is insufficient
:repeat_button: Creates startup and kill scripts for boot-time operation
:broom: Clean uninstall that removes configs, startup scripts, and any symlinked orage
:stethoscope: Includes diagnostics to verify NGINX is running and reachable
:technologist: Interactive CLI with confirmations and safe prompts
:free_button: Licensed under GPLv3
:test_tube: Tested on GL-BE3600, GL-MT3000, and GL-MT1300 (with SD card) routers

Visit my GitHub page for more details

5 Likes

Really cool script :wink:

I created an issue on GitHub already - guess it's an easy fix :slight_smile:

I changed the default port to 8888. Hopefully that doesn't conflict with anything :slight_smile:

1 Like

I'm a little old school. What's the benefit of this over running iperf3 --daemon --server --format m --port 5201 --pidfile /var/run/iperf3.pid &? Does it support a responsive web design for mobile/tablets?

Yep, openspeedtest supports responsive web page.

3 Likes

Thank you for providing this @phantasm22 – but does your script also work for GL.iNet routers running plain OpenWrt.org, e.g. version 24.0.3? Your README.md does not tell.

Can you try it out and let me know? If it fails, just use the integrated uninstall. The only thing I can think is if nginx isn’t running, you may need to install that as a prerequisite.

I’m running OpenWrt 24.10.2 and the speedtest is working

2 Likes

I’m running OpenWrt 24.10.2 and the speedtest is working

I can confirm the same for OpenWrt 24.10.3 on a GL.iNet GL-MT6000 “Flint 2”; the only thing I had to do before running ./install_openspeedtest.sh was an opkg install nginx-ssl unzip.

I only came across OpenSpeedTest and this fine installation help yesterday, and now I’ve got a very well looking and incredibly useful tool for assessing WiFi speeds directly on my router that I couldn’t have dreamed of. Thank you very much @phantasm22! :+1::+1:

1 Like

Apparently this functionality was lost when I refactored the code. I’ve re-added the check for nginx and it will install it if it does not find it. Thanks @Net.Weight for testing and uncovering this for me.

1 Like

Thank you for your work on the install script in the meantime since your last posting above @phantasm22! Your automated dependency management is a great addition – even though everything needed was already there when I just installed OpenSpeedTestServer on my GL-X3000 “Spitz AX” running GL.iNet’s 4.0 0803snapshots1 firmware. It just worked.

It is so cool to be able to run a speed test right from the browser right against the router! Hey guys, listen up, you all want this! :index_pointing_up::smiling_face_with_sunglasses::+1:

1 Like

I’m excited to announce an updated version of the script that includes a couple key new features:

  • :up_arrow: Supports optional persistence after firmware updates
  • :right_arrow_curving_down: Automatic download and installation of the most up-to-date version of the script (beta)

Please let me know if you find any bugs

3 Likes