sudo adduser iperf -s /sbin/nologin
git clone https://github.com/esnet/iperf.git
cd iperf
** yum groupinstall “Development Tools”
./configure
make
make install
/usr/local/bin/iperf3 -v
vim /etc/systemd/system/iperf3.service
[Unit]
Description=iperf3 Service
After=network.target
[Service]
Type=simple
User=iperf
ExecStart=/usr/local/bin/iperf3 -s -p XXXX
Restart=on-abort
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start iperf3
sudo systemctl status iperf3
sudo firewall-cmd –permanent –zone=public –add-port=XXXX/udp
sudo firewall-cmd –permanent –zone=public –add-port=XXXX/tcp
sudo systemctl reload firewalld