Chapter 10 Install and System Administration for FortiOS 5.0 : Basic Administration : Administrators : Security Precautions : Administrative ports
  
Administrative ports
You can set the web-based manager access to use HTTP, HTTPS, SSH, and Telnet. In these cases, the default ports for these protocols are 80, 443, 22, and 23 respectively. You can change the ports used for network administration to a different, unused port to further limit potential hackers.
 
Ensure the port you select is not a port you will be using for other applications. For a list of assigned port numbers, see http://www.iana.org/assignments/port-numbers.
To change the administrative ports - web-based manager
1. Go to System > Admin > Settings.
2. In the Web Administration Ports section, change the port numbers.
3. Select Apply.
To change the administrative ports - CLI
config system global
set admin-port <http_port_number>
set admin-sport <https_port_number>
set admin-ssh-port <ssh_port_number>
set admin-telnet-port <telnet_port_number>
end
When logging into the FortiGate unit, by default FortiOS will automatically use the default ports. That is, when logging into the FortiGate IP address, you only need to enter the address, for example:
https://192.168.1.1
When you change the administrative port number, the port number must be added to the url. For example, if the port number for HTTPS access is 2112, the administrator must enter the following address:
https://192.168.1.1:2112