Description |
This article describes how to set up iPerf server and client on both Windows and Linux machines. |
Scope |
FortiGate, Windows 10, and CentOS have been used. |
Solution |
Installing iPerf on a Windows machine.
Download the iPerf3 installer from the iPerf download page and extract it to a folder.
Installing iPerf in a Linux Machine.
Execute the yum install iperf3 command:
Windows as an iPerf Server.
In order to receive the output above, another device should be configured as iPerf client. For a FortiGate configured as an iPerf client, the commands that should be run on the FortiGate are provided at the section in the end of this document titled 'FortiGate as an iPerf client'.
Note: Sometimes, the local Windows firewall blocks the connection to port 5201. In these cases, it is necessary to disable the local firewall or create a rule to allow the connection.
Windows as an iPerf client.
Where the IP address set is the iperf server's.
Linux as an iPerf server. Open a terminal and run the command: iperf3 -s
Linux as an iPerf client. Open a terminal and run the command: iperf3 -c 192.168.100.253
It is possible to change protocol, ports, among other settings of iPerf.
For more information and other functionalities of iPerf: https://iperf.fr/iperf-doc.php
Note: FortiGate can be both the iPerf server and the client. However, only FortiGate running FortiOS 7.0.0 and above can be the iPerf server. To set up the FortiGate as an iPerf server, see Troubleshooting Tip: Configure FortiGate as speed test (iperf) server. FortiGate running as an iPerf server only listens on TCP port 5201.
Related articles: Technical Tip: Use cases for the diagnose traffictest command Technical Tip: Explaining 'diagnose traffictest' command limitation on FortiOS
FortiGate as an iPerf client:
External Resources: Publicly Available iPerf3 Servers: IPERF3 Server List.
Note: The iPerf/iPerf3 servers are external services and are not operated or endorsed by Fortinet. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.