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.
hlngan
Staff
Staff
Article Id 369689
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.