Skip to content

Instantly share code, notes, and snippets.

@fionn
Last active September 18, 2021 15:33
Show Gist options
  • Save fionn/47e7d7c20eea858dc87c36196dd93f70 to your computer and use it in GitHub Desktop.
Save fionn/47e7d7c20eea858dc87c36196dd93f70 to your computer and use it in GitHub Desktop.
iperf server and client
[Unit]
Description=iperf3 server
After=network.target
[Service]
User=nobody
ExecStart=/usr/bin/iperf3 -s --rsa-private-key-path /etc/iperf3/private_not_protected.pem --authorized-users-path /etc/iperf3/iperf.auth
[Install]
WantedBy=multi-user.target
#!/bin/bash
host=some.host
user=username
public_key=/path/to/public.key
t=timelimit
iperf3 -c $host --rsa-public-key-path $public_key --username $user -t $t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment