Skip to main content
GWFortinet
Staff
Staff
March 23, 2026

Troubleshooting Tip: Solving the error of invalid dst-port range

  • March 23, 2026
  • 0 replies
  • 138 views
Description This article describes a solution to address the 'invalid dst-port range' error encountered while pushing the policy.
Scope FortiManager/FortiGate v7.4+.
Solution

From FortiGate v7.4, it's allowed to configure the destination port for the Central SNAT table. 


When configuring the Central SNAT from FortiManager, if a protocol is defined in the firewall central SNAT map configuration, but no destination port is specified (as shown in the example below).

 

config firewall central-snat-map   edit x     set protocol 6     set dst-port    next end

 

An error will appear when pushing the policy from FortiManager to FortiGate:

 

lsrv_trad_err.png

 

To resolve this issue, create a script to unset the protocol and run the script on the Policy Package or ADOM database.

 

config firewall central-snat-map   edit x     unset protocol   next end

 

After running the script, the change is applied to the Policy Package/ADOM database.

 

Run the install wizard again, and the policy will be successfully pushed to the FortiGate.

    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.