_____ _ _ _ _ _
/ ____| | (_) \\ | | | |
| | __| | ______ _| \\| | ___| |_
| | |_ | | |______| | . \` |/ _ \\ __|
| |__| | |____ | | |\\ | __/ |_
\\_____|______| |_|_| \\_|\\___|\\__|
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, and GL-MT1300 (with SD card) 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.