Skip to main content
johnathan
Staff
Staff
November 20, 2024

Technical Tip: Unable to connect to the iPerf server hosted by the FortiGate on v7.4.2+

  • November 20, 2024
  • 0 replies
  • 4016 views
Description This article describes why regular iPerf clients cannot connect to the FortiGate when using a version above v7.4.2.
Scope FortiGate v7.4.2+.
Solution

In v7.4.2, there was a change made that requires authorization for each iPerf client when a test is attempted. This authorization check is proprietary and not currently supported by any iPerf client. More details on the authorization check can be seen here: SD-WAN hub and spoke speed test improvements 7.4.2

This is still possible to run between FortiGates, as the authorization check can be fulfilled. For instructions, see 
Technical Tip: Solving authorization issue in speed-tests for SD-WAN BGP on loopback design 'free/no license' option.

 

The FortiGate below is on a version above 7.4.2. When taking a 'speedtestd' debug, the error 'test failed: unauthorized test(142)' is visible.

 

Mz_FortiGate-60F # diagnose debug application speedtestd -1

Mz_FortiGate-60F # diagnose debug enable

Mz_FortiGate-60F # [speedtest(315)::serv(0054)] auth result: 3, uuid=74693337-3277-6877-7872-6e376761666a, peerv4=0.0.0.0
[speedtest(315)::serv(0192)] test failed: unauthorized test(142)
[speedtest(315)] server listening on 5201 (fd=5)

 

diagnose debug application speedtestd -1.png

 

The test on the client side fails with 'error - control socket has closed unexpectedly':

 

.\iperf3.exe -c 100.64.0.1 --debug
Reading new State from the Server - current state is 0-Test reset
All threads stopped
iperf3: error - control socket has closed unexpectedly

 

woah.PNG


The FortiGate below is on v7.4.1. The 'speedtestd' debug shows the test succeeds, and the same is seen on the client side. 

 

success.PNG

 

Related article:

Troubleshooting Tip: Configure FortiGate as speed test (iperf) server

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!