IPerf Server
Install an iperf3 server on fedora to test your network
On the box you are going to use as a server
sudo dnf install iperf3
open port on firewalld:
sudo firewall-cmd --add-port=5201/tcp --permanent sudo firewall-cmd --reload
run a test to make sure this works by starting iperf on the server
sudo iperf3 -s
Now – run iperf3 on a client machine to make sure it connects
iperf3 -c ip.address.of.server
Now we are going to set up iperf3 as a service that will automatically start when the server is booted
Create user for service without login permissions
sudo adduser iperf -s /sbin/nologin
Make sure /sbin/nologin is in /etc/shells
sudo vim /etc/shells (if the line /sbin/nologin is not in this file - add it)
Create the service file
sudo vim /usr/lib/systemd/system/iperf3.service
Insert the following into the file
[Unit] Description=iperf3 Service After=network.target [Service] Type=simple User=iperf ExecStart=/usr/bin/iperf3 -s Restart=on-abort [Install] WantedBy=multi-user.target
Reload systemctl
sudo systemctl daemon-reload
Start and enable the service
sudo systemctl enable --now iperf3
Confirm it is running
sudo systemctl status iperf3
You should see something like this:
● iperf3.service – iperf3 Service Loaded: loaded (/usr/lib/systemd/system/iperf3.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2016-04-21 16:51:47 EDT; 14min ago Main PID: 27450 (iperf3) Memory: 100.0K CPU: 499ms CGroup: /system.slice/iperf3.service └─27450 /usr/bin/iperf3 -s Apr 21 16:51:47 duncan.local systemd[1]: Started iperf3 Service. Apr 21 16:51:47 duncan.local systemd[1]: Starting iperf3 Service…
Tested on Fedora 42