Friday, 13 March 2026

Fortigate iPerf test via CLI

 How to run iperf test via CLI, tested on 7.6.6

 

 # Set the interface that will reach the internet (e.g., wan1)
diagnose traffictest client-intf wan1
diagnose traffictest server-intf wan1

# Set the port (iperf3 default is 5201)
diagnose traffictest port 5201

# Set protocol: 0 for TCP (default), 1 for UDP
diagnose traffictest proto 0

# Test the upload (FG -> SRV)
diagnose traffictest run -c ping.online.net

# Test Download (SRV -> FG)
diagnose traffictest run -c ping.online.net -R