Skip to content

Instantly share code, notes, and snippets.

@joshschmelzle
Last active October 6, 2020 14:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshschmelzle/6dab05a0ca8aa07c1b6fe28a97dae12e to your computer and use it in GitHub Desktop.
Save joshschmelzle/6dab05a0ca8aa07c1b6fe28a97dae12e to your computer and use it in GitHub Desktop.
iperf3 server install

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

add following:

#!/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

thanks

https://xbmcnut.blogspot.com/2017/03/building-automated-iperf3-server-with.html

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