Ookla Speedtest Server Installation Guide
1.Minimum Recommended Server Configuration – Quad Core Processor, 8GB RAM, 256 GB SSD, 1GIG NIC. If you have a large network, invest in a good hardware with 10G NICs.
2.Bandwidth Availability should be high enough else server shall be rejected during review. Recommended is 500 mbps +
3.Server should be dual stacked. IPv6 is mandatory for Ookla Speedtest Server.
4.A domain name should be mapped with the IP address of the Speedtest Server for both A & AAAA Record. Example- speedtest-[location-short-code].[your-organisation-name].com
5.Before submitting the server for review, double check your IP Addresses are correctly marked in Maxmind Database for their Geo Location. I will write a seperate post on it.
- Download the latest stable version of Ubuntu Server from https://ubuntu.com/download/server. For this guide I will use Ubuntu Server
- Using the installation media boot the system, configure IPv4 & IPv6 Address, partitions and reboot the server.
wget https://install.speedtest.net/ooklaserver/ooklaserver.sh
chmod a+x ooklaserver.sh
./ooklaserver.sh install
http://Ookla-Speedtest-Server-IP:8080
sudo nano OoklaServer.properties
2.Edit the following values. To save a file in Nano text editor, press Ctrl+O, then press Enter to confirm. To exit the file, Press Ctrl+X
OoklaServer.useIPv6 = true
OoklaServer.allowedDomains = *.ookla.com, *.speedtest.net
OoklaServer.enableAutoUpdate = true
OoklaServer.ssl.useLetsEncrypt = true
-- Note: The above process (SSL) only begins after the server has been registered and reviewed by Ookla
sudo ./ooklaserver.sh restart
4.Now, test the server using Speedtest Server Tester – https://www.speedtest.net/host-tester
5.Enter the IP Address of your server or domain name followed by port 8080. Example: speedtest.domain.com:8080 or 100.64.100.1:8080. Click on Submit.
6.If your configuration is correct, west will pass and your server is ready for submission to Ookla. You may see errors on HTTPS part as this is enabled after server is accepted by Ookla.
1.Create an account at https://account.ookla.com/login
2.Then from https://account.ookla.com/servers Click Add Server
3.Enter server domain name, processor, memory, bandwidth (Recommended >1Gbps), Organization Name, Organization Website, Server City, Server State/Region, Server Country. Then click Create.
4.A new ticket will be created and once the server is reviewed by Ookla team, it will be listed online.
It is very essential for the Speedtest Server Daemon to start automatically after the server is rebooted for any reason either power issue or maintainance. For older versions of Ubuntu we could easily do it by the rc.local file but for new versions like Ubuntu Server 22.04 we need to manually create the service first and then configure auto start of Speedtest Server. Follow the instructions below and complete the process smoothly:
sudo nano /etc/systemd/system/rc-local.service
2.Then add the following content to it & Save and close the file. To save a file in Nano text editor, press Ctrl+O, then press Enter to confirm. To exit the file, Press Ctrl+X.
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
printf '%s\n' '#!/bin/bash' 'exit 0' | sudo tee -a /etc/rc.local
sudo chmod +x /etc/rc.local
sudo systemctl enable rc-local
sudo systemctl start rc-local.service
sudo systemctl status rc-local.service
sudo nano /etc/rc.local
8.Then add the Ookla Speedtest Server Script for auto start. To save a file in Nano text editor, press Ctrl+O, then press Enter to confirm. To exit the file, Press Ctrl+X
su root -c '/root/OoklaServer --daemon'
9.Now, reboot the server and check if the Speedtest Server Daemon has automatically started by opening
http://Ookla-Speedtest-Server-IP:8080.
Reference Links: