FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
edyrmishi
Staff
Staff
Article Id 373102
Description This article describes the error message encountered and the steps to resolve the issue.
Scope FortiGate.
Solution

The SD-WAN Network Monitor Service, as outlined in the Fortinet Administration Guide, is a tool designed to determine upload and download speeds. Speed tests can be conducted either on-demand or according to a predetermined schedule, measuring upload and download speeds of up to 1 Gbps.

 

Users may encounter the following error while attempting to run an interface speed test:

 

errno 142, error string - unauthorized test

 

This issue persists regardless of whether a specific server is selected, the server mode is set to auto, or particular interface options are specified.

 

Executing the speed-test from the CLI:

 

RTR_176 # execute speed-test auto FTNT_US_SanJose
Speed test quota for 1/28 is 8
current vdom=root
Run in uploading mode.
Connecting to host 38.21.192.220, port 5200
Run uploading client error, return -1
errno 142, error string - unauthorized test
Command fail. Return code -1

 

Executing the speed-test from the GUI:

 

image.png

 

The error is caused by a time synchronization discrepancy between the FortiGate device and the speed-test server. The time difference between these two systems must not exceed 10 seconds. If the time discrepancy exceeds this limit, the server will not authorize the test.

 

To resolve this issue:

  • Navigate to System -> Settings -> System Time on the FortiGate device.
  • If the Manual settings option is selected, ensure the date and time are accurate.

 

As a best practice, to avoid manual discrepancies, configure time synchronization using an NTP server:

  • Select Set Time -> NTP.
  • Choose 'FortiGuard' as the NTP Server.
  • Select Apply.

 

Confirm NTP Synchronization via CLI and ensure that 'ntpsync' setting is enabled. Use the following command in the CLI:

 

config system ntp
    set ntpsync enable
end

 

Related documents:

Technical Tip: Troubleshoot NTP synchronization issue