installing iperf3 and make it start at boot on a ubuntu server.
install iperf3:
sudo apt-get install iperf3
start iperf3 server at startup
sudo touch /etc/init.d/iperf3
sudo chmod +x /etc/init.d/iperf3
edit script:
sudo vim /etc/init.d/iperf3
#!/bin/bash
### BEGIN INIT INFO
# Provides: iperf3
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: starts iperf3 server on boot
### END INIT INFO
/usr/bin/iperf3 -s &
enable / tell iperf3 to start during boot:
sudo update-rc.d iperf3 enable
sudo update-rc.d iperf3 defaults
https://xbmcnut.blogspot.com/2017/03/building-automated-iperf3-server-with.html