Skip to content

phantasm22/OpenSpeedTestServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

59 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenSpeedTest Installer for NGINX on GL.iNet Routers

   _____ _          _ _   _      _   
  / ____| |        (_) \\ | |    | |  
 | |  __| |  ______ _|  \\| | ___| |_ 
 | | |_ | | |______| | . \` |/ _ \\ __|
 | |__| | |____    | | |\\  |  __/ |_ 
 \\_____|______|   |_|_| \\_|\\___|\\__|

         OpenSpeedTest for GL-iNet

πŸ“‘ Easily deploy OpenSpeedTest with NGINX on OpenWRT-based routers (GL.iNet, etc.)


Features

  • πŸ“¦ 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

πŸš€ Installation

  1. SSH into your router:
ssh root@192.168.8.1
  1. Download the script:
wget -O install_openspeedtest.sh https://raw.githubusercontent.com/phantasm22/OpenSpeedTestServer/main/install_openspeedtest.sh && chmod +x install_openspeedtest.sh
  1. Run the script:
./install_openspeedtest.sh
  1. 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:

  1. Install OpenSpeedTest – Installs NGINX, configures it, downloads OpenSpeedTest
  2. Run diagnostics – Checks if NGINX is running and listening on the correct port
  3. Uninstall everything – Removes all config, scripts, and files
  4. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages