Connectez-vous en SSH à votre NAS (en tant que root) en lancez :
# Déterminez l'architecture de votre NAS
uname -m
# Créez un dossier pour les binaires personnalisés
mkdir -p /usr/local/bin
# Téléchargez le package approprié selon votre architecture
# Pour x86_64 (la plupart des NAS plus récents/puissants) :
wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz -O speedtest.tgz
# Pour ARM64 (certains modèles comme DS918+, RS1221+) :
# wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-aarch64.tgz -O speedtest.tgz
# Pour ARM 32-bit (modèles plus anciens) :
# wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-armhf.tgz -O speedtest.tgz
# Extrayez l'archive
tar -xzf speedtest.tgz
# Rendez le binaire exécutable
chmod +x speedtest
# Déplacez-le dans un répertoire du PATH
mv speedtest /usr/local/bin/
# Supprimez l'archive téléchargée
rm speedtest.tgz
# Exécutez le test (nécessite d'accepter la licence et la GDPR la première fois)
speedtest --accept-license --accept-gdpr
==============================================================================
You may only use this Speedtest software and information generated
from it for personal, non-commercial use, through a command line
interface on a personal computer. Your use of this software is subject
to the End User License Agreement, Terms of Use and Privacy Policy at
these URLs:
https://www.speedtest.net/about/eula
https://www.speedtest.net/about/terms
https://www.speedtest.net/about/privacy
==============================================================================
License acceptance recorded. Continuing.
Speedtest by Ookla
Server: Infomaniak - Geneva (id: 42082)
ISP: Infomaniak Network
Idle Latency: 0.46 ms (jitter: 0.02ms, low: 0.43ms, high: 0.48ms)
Download: 931.54 Mbps (data used: 419.9 MB)
6.96 ms (jitter: 0.62ms, low: 0.69ms, high: 7.99ms)
Upload: 921.59 Mbps (data used: 416.9 MB)
5.20 ms (jitter: 0.50ms, low: 0.81ms, high: 8.04ms)
Packet Loss: 0.0%
Result URL: https://www.speedtest.net/result/c/6847221c-53e2-4699-879e-4f954acca49f
Pour obtenir une liste des serveurs d’Ookla
Les serveurs proches de soi :
speedtest -L
Closest servers:
ID Name Location Country
==============================================================================
62493 ORANGE FRANCE Paris France
27984 SFR Mitry France
45202 Appliwave Croissy-Beaubourg France
38334 OOPAYA SAS Émerainville France
49781 Hivane NetWork Cubic Ivry-sur-Seine France
52534 Virtual Technologies and Solutions Paris France
10676 Asthriona Paris France
41840 Telerys Communication Paris France
33869 Nextmap - LeKloud Paris France
24130 Sewan Paris France
49027 SERVERD Paris France
Obtenir les serveurs dans d’autres pays
# Se connecter en SSH à votre NAS en tant que root
# Créer un script pour récupérer les serveurs par pays
cat > get_servers_by_country.sh << 'EOF'
#!/bin/bash
# Fonction pour télécharger et filtrer les serveurs par pays
get_servers() {
country="$1"
echo "Recherche de serveurs pour: $country"
echo "=================================================="
# Télécharger la liste de serveurs
curl -s "https://www.speedtest.net/api/js/servers?search=$country" |
sed 's/\[{/{/g; s/}\]/}/g; s/},{/}\n{/g' |
while read -r line; do
id=$(echo "$line" | grep -o '"id":"[0-9]*"' | cut -d'"' -f4)
name=$(echo "$line" | grep -o '"name":"[^"]*"' | cut -d'"' -f4)
city=$(echo "$line" | grep -o '"city":"[^"]*"' | cut -d'"' -f4)
country=$(echo "$line" | grep -o '"country":"[^"]*"' | cut -d'"' -f4)
sponsor=$(echo "$line" | grep -o '"sponsor":"[^"]*"' | cut -d'"' -f4)
if [ ! -z "$id" ]; then
echo "ID: $id | Sponsor: $sponsor | Ville: $city | Pays: $country | Nom: $name"
fi
done
echo ""
}
# Vérifier si un pays a été spécifié en argument
if [ $# -eq 0 ]; then
echo "Usage: $0 <country_name> [country_name2] ..."
echo "Exemple: $0 France Germany \"United States\""
exit 1
fi
# Traiter chaque pays spécifié en argument
for country in "$@"; do
get_servers "$country"
done
EOF
# Rendre le script exécutable
chmod +x get_servers_by_country.sh
# Exécuter le script pour différents pays
./get_servers_by_country.sh France
./get_servers_by_country.sh Germany
./get_servers_by_country.sh "United Kingdom"
./get_servers_by_country.sh "United States"
./get_servers_by_country.sh Italy
./get_servers_by_country.sh Spain
./get_servers_by_country.sh Japan
chmod +x get_servers_by_country.sh
./get_servers_by_country.sh Mauritius
Recherche de serveurs pour: Mauritius
==================================================
ID: 22558 | Sponsor: Mauritius Telecom Ltd | Ville: | Pays: United Kingdom | Nom: London
ID: 13766 | Sponsor: Emtel Ltd | Ville: | Pays: Mauritius | Nom: Arsenal
ID: 31511 | Sponsor: Mauritius Telecom Ltd | Ville: | Pays: Mauritius | Nom: Port Louis
ID: 22557 | Sponsor: Mauritius Telecom Ltd | Ville: | Pays: Mauritius | Nom: Floreal
ID: 22559 | Sponsor: Mauritius Telecom Ltd | Ville: | Pays: Mauritius | Nom: Rose Hill
ID: 24020 | Sponsor: Emtel Ltd | Ville: | Pays: Mauritius | Nom: Quatre Bornes
Pour faire une requête vers un serveur spécifique au lieu du serveur le plus proche choisit par Ookla :
speedtest -s 31511
Speedtest by Ookla
Server: Mauritius Telecom Ltd - Port Louis (id: 31511)
ISP: Orange
Idle Latency: 171.05 ms (jitter: 0.13ms, low: 170.88ms, high: 171.15ms)
Download: 5.48 Mbps (data used: 6.8 MB)
332.51 ms (jitter: 79.38ms, low: 211.06ms, high: 1143.56ms)
Upload: 5.79 Mbps (data used: 9.0 MB)
341.31 ms (jitter: 79.06ms, low: 215.57ms, high: 1248.86ms)
Packet Loss: 1.3%
Result URL: https://www.speedtest.net/result/c/d36bb065-d696-4402-b51b-fc19d65b5244