Skip to main content
hlngan
Staff
Staff
January 13, 2025

Troubleshooting Tip: ZTNA unable to added mappedport on Access proxy setting

  • January 13, 2025
  • 0 replies
  • 496 views
Description This article how to troubleshoot the error 'Can not set port ranges over 16' when editing mappedport on Access proxy setting.
Scope FortiGate.
Solution

When trying to edit the mappedport on the current setting of access proxy with mappedport will encounter:

 

config firewall access-proxy

    edit "Server"

        config api-gateway

            edit 1

                config realservers

                    edit 1

                        set mappedport 1 2 3 4 5 6 7 8 9 10 11 12 13 

end

 

Can not set port ranges over 16
Command fail. Return code -1

 

Even if the number of mappedport is under 16, the error 'Can not set port ranges over 16' can still be seen. The system only accepts 8 mappedport ranges when using CLI.

 

The issue is aware of, and the current workaround is:

  • Making the change on the GUI instead of the CLI.
  • Delete the object and create a new one with a new mappedport.

 

The issue is resolved on FortiOS v7.6.3 above.

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!