Skip to main content
johnathan
Staff
Staff
February 18, 2025

Technical Tip: Specifying a source IP while doing an iPerf test from the FortiGate

  • February 18, 2025
  • 0 replies
  • 1089 views
Description This article describes how to specify a source IP while doing an iPerf test from the FortiGate.
Scope FortiGate.
Solution

When doing an iPerf test from the FortiGate, by default it will use the IP of the egress interface as the source IP.

In some cases (especially when over a VPN tunnel doing BGP), this source IP will not be routable and the iPerf test will not connect.

Here is an example of the command in the default state:

 

fail_iperf.PNG
fail_sniffer.PNG

 

It uses the default address of the configured interface, in this case, port9:

 

port9-1.PNG

 

To specify a source IP, use the '-B' flag when running the iPerf command. For example:


diag traffictest run -c x.x.x.x -B y.y.y.y

 

good_iperf.PNG

 

It is also possible to see this source IP in the sniffer:

 

good_sniff.PNG

 

Note:
Refer to the iPerf CLI Reference for more granular controls over the iPerf test.

 

    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.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!