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.
This article describes the default ports used for SNMP traffic on the FortiGate platforms and how to change them.

Further information on SNMP can be found here.

The FortiGate SNMP traffic is by default configured to use ports 161 (for queries) and 162 (for traps). Use the following commands to change these default ports:
# config system snmp community
    edit <index_number>
        set query-v1-port <port_number>        <---- port that the FortiGate should open for queries
        set trap-v1-lport <port_number>        <---- local port for traps
        set trap-v1-rport <port_number>        <---- remote port for traps
        set query-v2c-port <port_number>
        set trap-v2c-lport <port_number>
        set trap-v2c-rport <port_number>
The option is also available on the GUI, as shown below:

Related Articles

Note for configuring SNMP when using it with VDOM enabled.