_____ _ _ _ _ _
/ ____| | (_) \\ | | | |
| | __| | ______ _| \\| | ___| |_
| | |_ | | |______| | . \` |/ _ \\ __|
| |__| | |____ | | |\\ | __/ |_
\\_____|______| |_|_| \\_|\\___|\\__|
OpenSpeedTest for GL-iNet
📡 Easily deploy OpenSpeedTest with NGINX on OpenWRT-based routers (GL.iNet, etc.)
- 📦 Installs and configures NGINX to run OpenSpeedTest
- 🔧 Custom NGINX configuration that avoids conflicts with the GL.iNet web UI
- 📁 Installs to
/www2, with automatic detection of available storage space - 🔗 Supports symlinking to external drives (e.g. SD cards or USB) if internal space is insufficient
- ⬆️ Supports persistence after firmware updates
- 🔁 Creates startup and kill scripts for boot-time operation
- 🧹 Clean uninstall that removes configs, startup scripts, and any symlinked storage
- 🩺 Includes diagnostics to verify NGINX is running and reachable
⤵️ Automatic download of the most up-to-date version of the script (beta)- 🧑💻 Interactive CLI with confirmations and safe prompts
- 🆓 Licensed under GPLv3
- 🧪 Tested on GL-BE9300, GL-BE3600, GL-MT3000, GL-MT1300 (with SD card), and GL-X3000/GL-XE3000 (Cellular Models) routers
- SSH into your router:
ssh root@192.168.8.1
- Download the script:
wget -O install_openspeedtest.sh https://raw.githubusercontent.com/phantasm22/OpenSpeedTestServer/main/install_openspeedtest.sh && chmod +x install_openspeedtest.sh
- Run the script:
./install_openspeedtest.sh
- Follow the interactive menu to install, diagnose, or uninstall.
🌐 Access the Speed Test
After installation, open:
http://<router-ip>:8888
Example:
http://192.168.8.1:8888
🔍 Script Options
When running the script, choose from:
- Install OpenSpeedTest – Installs NGINX, configures it, downloads OpenSpeedTest
- Run diagnostics – Checks if NGINX is running and listening on the correct port
- Uninstall everything – Removes all config, scripts, and files
- Exit – Ends the script
🧹 Uninstallation
Re-run the script and choose option 3: Uninstall everything.
Or manually:
killall nginx
rm -f /etc/nginx/nginx_openspeedtest.conf
/etc/init.d/nginx_speedtest disable
rm -f /etc/init.d/nginx_speedtest
rm -rf /www2/Speed-Test-main
🧑 Author
phantasm22
Contributions, suggestions, and PRs welcome!
📜 License
This project is licensed under the GNU GPL v3.0 License - see the LICENSE file for details.