Sometimes when you are trying to diagnose an internet speed or performance issue, it’s helpful to be able to run a speedtest from the router itself. We use Barracuda NextGen F Series Firewalls a lot, and the following command works like a charm. Simply login in via SSH into the router and run this command.
wget -O – –no-check-certificate https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py| python
You should get a response that looks like this..
Hope this helps. Thanks to Guido for the tip.