Built in speedtest

i prepare built in speedtest like in asus router than cli im just newbie and not in a command

speedtest that have option for diffirent wan and combine wan by loadbalancing

4 Likes

Create a file called rc.local within the /cfg directory of the router and paste this.

#!/bin/ash

# === Persistent Installation Path ===
SPEEDTEST_BIN="/usr/bin/speedtest"
SPEEDTEST_DIR="/cfg/speedtest"
SPEEDTEST_URL="https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-$(uname -m).tgz"

# === Check if speedtest is already installed ===
if [ ! -f "$SPEEDTEST_BIN" ]; then
    echo "Speedtest not found, downloading..."
    mkdir -p "$SPEEDTEST_DIR"
    cd "$SPEEDTEST_DIR"
    wget -q "$SPEEDTEST_URL"
    tar -xvzf ookla-speedtest-*.tgz
    if [ -f "$SPEEDTEST_DIR/speedtest" ]; then
        mv "$SPEEDTEST_DIR/speedtest" "$SPEEDTEST_BIN"
        chmod +x "$SPEEDTEST_BIN"
        echo "Speedtest installed successfully."
    else
        echo "Error: Speedtest binary not found after extraction!"
    fi
else
    echo "Speedtest already installed."
fi

Once you have that reboot your router and you should be able to run the command speedtest in the cli.

1 Like

i already did this.. what i mean its much better if it has in gui like tools option were you can have speedtest,tracert and ping without going to cli

@havocrecasa I would recommend keeping topics to one issue or question if possible. It makes following topics/searching a bit easier and avoids confusion.

To answer your load balancing question, we have “Sticky Sessions” enabled. Sticky Sessions ensure that a specific device on your network consistently uses the same internet connection (WAN) for a set period rather than switching back and forth. This prevents security-sensitive websites, like banking or streaming services, from logging you out due to a sudden change in your public IP address. It essentially “glues” your device to one path to maintain connection stability across multiple internet lines.

See if you can abandon this one for the load balancing issue and create a new topic for that. And leave this one for the request. :slightly_smiling_face: