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.
haljawhari
Staff
Staff

Article


This article describes how to download and install firmware from a local TFTP server via the BIOS, under CLI control.

Caution: Installing firmware from a local TFTP server under console control will reset the FortiGate unit to factory default settings.
If possible, consider backing up the configuration before starting the TFTP server firmware upgrade.

Component:
- A null modem, or RJ-45 to DB9 console cable, supplied with the FortiGate unit.
- An Ethernet RJ45 cable
- A terminal client, such as a PC running HyperTerminal (Windows)
- A TFTP server (see below the recommended software)

Recommended TFTP software:

Winagents.
https://www.winagents.com/en/products/tftp-server/
Download the FortiGate firmware and verify MD5 checksum:

1) Download the required firmware from the Download Firmware Images page.
ighita_0-1645102672381.png

 


 


2) Make a note of the name of the downloaded file, for example FGT_100F-v6-build1911-FORTINET.

3) On the support site use the Download -> Firmware Image Checksums link, enter the filename with a .out extension. For example FGT_100F-v6-build1911-FORTINET.out

4) Select get checksum code and the system will generate MD5 Checksum Code (for example: 9b1e345711a95d9fe05481e9f2b8bdb0) and SHA-512 Checksum Code.
Steps to load the firmware image:
 
1) Connect the computer to the FortiGate unit using the null modem cable.

2) Restart the FortiGate.


3) When the console displays "Please wait for OS to boot, or press any key to display configuration menu.." press the space bar or any other key.
 
4) When a list of choices with letter of Alphabet comes up. Press F to format the device.

5) The below confirmation message will appear. Type 'yes' and press Enter:
It will erase data in boot device. Continue? [yes/no]:yes

6) After the unit is formatted, a list of choices with letter of Alphabets come up again. Press G to continue to firmware installation.

7) Connect the computer running TFTP server to the FortiGate unit. The port is prompted in the console output as below:
Please connect TFTP server to Ethernet port "MGMT" / other port

8) Type the IP address of the computer running the TFTP server and press Enter.
The console displays:
Enter TFTP server address [192.168.1.168]:

9) Type the IP address of the FortiGate port that is on the same subnet as the TFTP server and press Enter.
The console displays:
Enter Local Address [192.168.1.188]:

10) Type the firmware image file name and press Enter.
The console displays:
Enter File Name [image.out]:

The console periodically displays a "#" (pound or hash symbol) to show the download progress.

11) When the download completes, the console displays a message similar as below, Press D.
Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?D

The FortiGate unit installs the new firmware image and restarts. The installation may take a few minutes to complete.
Troubleshooting:
Once entering the firmware image name and pressing enter, the FortiGate unit MAC address appears and the "#" symbols indicate the progress of the install.
If the MAC address does not show up, check the network cable and connector to ensure they are firmly attached to the FortiGate unit.

If MAC address shows up and no "#" signs appear, check which port the network cable is in. Use the table above in step 2 to ensure it is in the right port.

Sample Console Output:
The following is an example of what the output from the console can look like. Depending on the FortiGate unit, this may vary slightly.

FortiGate-100F (23:49-05.21.2019)

Ver:05000008

Serial number: FG100FTK19002451

CPU: 1400MHz

Total RAM: 4 GB

Initializing boot device...

Initializing MAC... nplite#0

Please wait for OS to boot, or press any key to display configuration menu...

 

[C]: Configure TFTP parameters.

[R]: Review TFTP parameters.

[T]: Initiate TFTP firmware transfer.

[F]: Format boot device.

[I]: System information.

[B]: Boot with backup firmware and set as default.

[Q]: Quit menu and continue to boot.

[H]: Display this list of options.


Enter G,F,I,B,Q,or H:

It will erase data in boot device. Continue? [yes/no]:yes
Formatting......... Done.


[G]:  Get firmware image from TFTP server.
[F]:  Format boot device.
[I]:  Configuration and information.
[B]:  Boot with backup firmware and set as default.
[Q]:  Quit menu and continue to boot.
[H]:  Display this list of options.

Enter G,F,I,B,Q,or H:

Please connect TFTP server to Ethernet port 'MGMT'.

Enter TFTP server address [192.168.1.168]: 192.168.0.5
Enter local address [192.168.1.188]: 192.168.0.6
Enter firmware image file name [image.out]: FGT_100F-v6-build1911-FORTINET.out

Connect to tftp 192.168.0.5 server  ...

######################################################################################################################################################

Image Received.

Checking image... OK

This firmware image is certified!

Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?D

 

Programming the boot device now... OK

Verifying... OK
FortiGate-100F login:

More info:

  1. Make sure that the TFPT server firewall is disabled or allows TFTP connection.
  2. The location of the FortiOS file on the TFTP server: C:\ProgramData\WinAgents\TFTP Server 4\TFTPRootighita_1-1645100406266.png