Skip to content

Instantly share code, notes, and snippets.

@zupo
Last active January 18, 2024 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zupo/852c0aceeaeb9ba3fe68c7d58b413895 to your computer and use it in GitHub Desktop.
Save zupo/852c0aceeaeb9ba3fe68c7d58b413895 to your computer and use it in GitHub Desktop.
Synology NAS with DSM 7.1 that starts iperf3 at startup

Synology NAS with DSM 7.1 that starts iperf3 at startup

I wanted to run iperf3 on my Synology NAS to monitor WiFi speeds on different devices around my location.

Steps to install iperf3 are:

  1. Follow https://synocommunity.com/#easy-install to install SynoCommunity package repository.
  2. Log into DSM, Package Center -> Community -> SynoCli Monitor Tools -> Install.
  3. Temporarily enable SSH via Control Panel -> Terminal -> Enable SSH Service
  4. SSH into the NAS:
$ sudo vim /etc/systemd/system/iperf3.service
[Unit]
Description=Run iperf3 at startup
[Service]
Type=simple
ExecStart=/usr/local/bin/iperf3 -s

[Install]
WantedBy=multi-user.target

$ sudo systemctl start iperf3.service
$ sudo systemctl status iperf3.service
$ sudo systemctl enable iperf3.service
  1. Disable SSH via Control Panel -> Terminal -> uncheck Enable SSH Service

Now you can run the following on your local machine: iperf3 -c <NAS_IP>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment