Fortinet white logo
Fortinet white logo

Administration Guide

Updating the firmware

Updating the firmware

Your FortiWeb comes with the latest operating system (firmware) when shipped. However, if a new version is released since your appliance is shipped, you should install it before you continue the installation.

Fortinet periodically releases FortiWeb firmware updates to include enhancements and address security issues. Once you register your FortiWeb, firmware is available for download through Fortinet Customer Service & Support at:

https://support.fortinet.com

Installing new firmware can overwrite attack signature packages using the versions of the packages that were current at the time that the firmware image was built. To avoid repeat updates, update the firmware before updating your FortiGuard packages.

New firmware can also introduce new features which you must configure for the first time.

For information about a particular firmware release, see the Release Notes for that release at:

http://docs.fortinet.com/fortiweb/release-information

In addition to major releases that contain new features, Fortinet releases patch releases that resolve specific issues without containing new features and/or changes to existing features. It is recommended to download and install patch releases as soon as they are available.
See also

Testing new firmware before installing it

You can test a new firmware image by temporarily running it from memory, without saving it to disk. By keeping your existing firmware on disk, if the evaluation fails, you do not have to re-install your previous firmware. Instead, you can quickly revert to your existing firmware by simply rebooting the FortiWeb appliance.

To test a new firmware image
  1. Download the firmware file from the Fortinet Technical Support website:
  2. https://support.fortinet.com/

  3. Connect your management computer to the FortiWeb console port using a RJ-45-to-DB-9 serial cable or a null-modem cable.
  4. Initiate a connection from your management computer to the CLI of the FortiWeb appliance.
    For details, see Connecting to the web UI or CLI.
  5. Connect port1 of the FortiWeb appliance directly or to the same subnet as a TFTP server.
  6. Copy the new firmware image file to the root directory of the TFTP server.
  7. If necessary, start your TFTP server. If you do not have one, you can temporarily install and run one such as tftpd on your management computer:
  8. Windows: http://tftpd32.jounin.net

    Mac OS X: From the Terminal, enter the man tftp command.

    Linux: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-netboot-tftp.html

    Because TFTP is not secure, and because it does not support authentication and could allow anyone to have read and write access, you should only run it on trusted administrator-only networks, never on computers directly connected to the Internet. If possible, immediately turn off tftpd off when you are done.
  9. Verify that the TFTP server is currently running, and that the FortiWeb appliance can reach the TFTP server.
  10. To use the FortiWeb CLI to verify connectivity, enter the following command:

    execute ping 192.168.1.168

    where 192.168.1.168 is the IP address of the TFTP server.

  11. Enter the following command to restart the FortiWeb appliance:
  12. execute reboot

  13. As the FortiWeb appliances starts, a series of system startup messages appear.
  14. Press any key to display configuration menu........

  15. Immediately press a key to interrupt the system startup.
  16. You have only three seconds to press a key. If you do not press a key soon enough, the FortiWeb appliance reboots and you must log in and repeat the execute reboot command.

    If you successfully interrupt the startup process, the following messages appears:

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

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

    Please connect TFTP server to Ethernet port "1".

  17. Type G to get the firmware image from the TFTP server.
  18. The following message appears:

    Enter TFTP server address [192.168.1.168]:

  19. Type the IP address of the TFTP server and press Enter.
  20. The following message appears:

    Enter local address [192.168.1.188]:

  21. Type a temporary IP address that can be used by the FortiWeb appliance to connect to the TFTP server.
  22. The following message appears:

    Enter firmware image file name [image.out]:

  23. Type the firmware image file name and press Enter.
  24. The FortiWeb appliance downloads the firmware image file from the TFTP server and displays a message similar to the following:

    MAC:00219B8F0D94

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

    Total 28385179 bytes data downloaded.

    Verifying the integrity of the firmware image..

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

    If the download fails after the integrity check with the error message:

    invalid compressed format (err=1)

    but the firmware matches the integrity checksum on the Fortinet Technical Support website, try a different TFTP server.
  25. Type R.
  26. The FortiWeb image is loaded into memory and uses the current configuration, without saving the new firmware image to disk.

  27. To verify that the new firmware image was loaded, log in to the CLI and type:
  28. get system status

  29. Test the new firmware image.
  • If the new firmware image operates successfully, you can install it to disk, overwriting the existing firmware, using the procedure Installing firmware.
  • If the new firmware image does not operate successfully, reboot the FortiWeb appliance to discard the temporary firmware and resume operation using the existing firmware.
See also

Installing firmware

You can use either the web UI or the CLI to upgrade or downgrade the appliance’s operating system.

If you are installing a firmware version that requires a different size of system partition, you may be required to format the boot device before installing the firmware by re-imaging the boot device. Consult the Release Notes. In that case, do not install the firmware using this procedure. Instead, see Restoring firmware (“clean install”).

Firmware changes are either:

  • an update to a newer version
  • a reversion to an earlier version

To determine if you are updating or reverting the firmware, go to System > Status > Status and in the System Information widget, see the Firmware Version row. (Alternatively, in the CLI, enter the command get system status.)

For example, if your current firmware version is:

FortiWeb-VM 4.32,build0531,111031

changing to

FortiWeb-VM 4.32,build0530,110929

an earlier build number (530) and date (110929 means September 29, 2011), indicates that you are reverting.

Back up all parts of your configuration before beginning this procedure. Some backup types do not include the full configuration. For full backup instructions, see Backup & restore.

Reverting to an earlier firmware version could reset settings that are not compatible with the new firmware. For example, FortiWeb 5.0 configuration files are not compatible with previous firmware versions. If you later decide to downgrade to FortiWeb 4.4.6 or earlier, your FortiWeb appliance will lose its configuration. To restore the configuration, you will need a backup that is compatible with the older firmware.

For details about reconnecting to a FortiWeb appliance whose network interface configuration was reset, see Connecting to the web UI or CLI.
To install firmware via the web UI
  1. Download the firmware file from the Fortinet Technical Support website:
    https://support.fortinet.com/
  2. Log in to the web UI of the FortiWeb appliance as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category.
  3. Updating firmware on an HA pair requires some additions to the usual steps for a standalone appliance. For details, see Updating firmware on an HA pair.
  4. Go to System > Status > Status.
  5. In the System Information widget, in the Firmware Version row, click Update.
    The Firmware Upgrade/Downgrade dialog appears.
  6. Click Choose File to locate and select the firmware file that you want to install.
  7. Click OK.
  8. Your management computer uploads the firmware image to FortiWeb. FortiWeb installs the firmware and restarts. The time required varies by the size of the file and the speed of your network connection.

    If you are downgrading the firmware to a previous version, and the settings are not fully backwards compatible, the FortiWeb appliance may either remove incompatible settings, or use the feature’s default values for that version of the firmware. You may need to reconfigure some settings.
  9. Clear the cache of your web browser and restart it to ensure that it reloads the web UI and correctly displays all interface changes. For details, see your browser's documentation.
  10. To verify that the firmware was successfully installed, log in to the web UI and go to System > Status > Status.
    In the System Information widget, the Firmware Version row indicates the currently installed firmware version.
  11. If you want to install alternate firmware on the secondary partition, follow Installing alternate firmware.
  12. Continue with Changing the “admin” account password.
Installing firmware replaces the current attack definitions with those included in the firmware release that you're installing. If you are updating or rearranging an existing deployment, after you install new firmware, make sure that your attack definitions are up-to-date. For details, see Manually initiating update requests.
To install firmware via the CLI
  1. Download the firmware file from the Fortinet Customer Service & Support website:
    https://support.fortinet.com/
  2. If you are downgrading the firmware to a previous version, FortiWeb reverts the configuration to default values for that version of the firmware. You will need to reconfigure FortiWeb or restore the configuration file from a backup. For details, see Connecting to the web UI or CLI and, if you opt to restore the configuration, Restoring a previous configuration.

  3. Connect your management computer to the FortiWeb console port using a RJ-45-to-DB-9 serial cable or a null-modem cable.
  4. Updating firmware on an HA pair requires some additions to the usual steps for a standalone appliance. For details, see Updating firmware on an HA pair.
  5. Initiate a connection from your management computer to the CLI of the FortiWeb appliance, and log in as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category. For details, see Permissions.
  6. Connect port1 of the FortiWeb appliance directly or to the same subnet as a TFTP server.
  7. Copy the new firmware image file to the root directory of the TFTP server.
  8. If necessary, start your TFTP server. If you do not have one, you can temporarily install and run one such as tftpd on your management computer:
  9. Windows: http://tftpd32.jounin.net

    Mac OS X: From the Terminal, enter the man tftp command.

    Linux: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-netboot-tftp.html

    Because TFTP is not secure, and because it does not support authentication and could allow anyone to have read and write access, you should only run it on trusted administrator-only networks, never on computers directly connected to the Internet. If possible, immediately turn off tftpd off when you are done.
  10. Verify that the TFTP server is currently running, and that the FortiWeb appliance can reach the TFTP server.
  11. To use the FortiWeb CLI to verify connectivity, enter the following command:

    execute ping 192.168.1.168

    where 192.168.1.168 is the IP address of the TFTP server.

  12. Enter the following command to download the firmware image from the TFTP server to FortiWeb:
  13. execute restore image tftp <name_str> <tftp_ipv4>

    where <name_str> is the name of the firmware image file and <tftp_ipv4> is the IP address of the TFTP server. For example, if the firmware image file name is image.out and the IP address of the TFTP server is 192.168.1.168, enter:

    execute restore image tftp image.out 192.168.1.168

    One of the following messages appears:

    This operation will replace the current firmware version!
    Do you want to continue? (y/n)

    or:

    Get image from tftp server OK.
    Check image OK.
    This operation will downgrade the current firmware version!
    Do you want to continue? (y/n)

  14. Type y.
  15. The FortiWeb appliance downloads the firmware image file from the TFTP server. The FortiWeb appliance installs the firmware and restarts:

    MAC:00219B8F0D94

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

    Total 28385179 bytes data downloaded.

    Verifying the integrity of the firmware image.

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

    The time required varies by the size of the file and the speed of your network connection.

    If the download fails after the integrity check with the error message:

    invalid compressed format (err=1)

    but the firmware matches the integrity checksum on the Fortinet Technical Support website, try a different TFTP server.
  16. To verify that the firmware was successfully installed, log in to the CLI and type:
  17. get system status

    The firmware version number is displayed.

  18. If you want to install alternate firmware on the secondary partition, follow Installing alternate firmware.
  19. Continue with Changing the “admin” account password.
Installing firmware replaces the current FortiGuard packages with those included with the firmware release that you are installing. If you are updating or rearranging an existing deployment, after you install new firmware, make sure that your attack definitions are up-to-date. For details, see Manually initiating update requests.
See also

Updating firmware on an HA pair

Installing firmware on an HA pair is similar to installing firmware on a single, standalone appliance.

If downgrading to a previous version, do not use this procedure. The HA daemon on the standby appliance might detect that the main appliance has older firmware, and attempt to upgrade it to bring it into sync, undoing your downgrade.

Instead, switch out of HA, downgrade each appliance individually, then switch them back into HA mode.

To ensure minimal interruption of service to clients, use the following steps.

This update procedure is only valid for upgrading from FortiWeb 4.0 MR4 or later.

If you are upgrading from FortiWeb 4.0 MR3 or earlier, the active appliance will not automatically send the new firmware to the standby appliance(s); you must quickly connect to the standby and manually install the new firmware while the originally active appliance is upgrading and rebooting. Alternatively, switch the appliances out of HA mode, upgrade them individually, then switch them back into HA mode.
To update the firmware of an HA pair
  1. Verify that both of the members in the HA pair are powered on and available on all of the network interfaces that you have configured. If required ports are not available, HA port monitoring could inadvertently trigger an additional failover and traffic interruption during the firmware update.
  2. Log in to the web UI of the primary appliance as the admin administrator.
  3. Alternatively, log on with an administrator account whose access profile contains Read and Write permissions in the Maintenance category. For details, see Permissions.

  4. Install the firmware on the primary appliance. For details, see Installing firmware. When installing via the web UI, a message will appear after your web browser has uploaded the file:

Sending the new firmware file to the standby. Please wait and keep the web GUI untouched...

Closing your browser window or using the back or forward buttons can interrupt the upgrade process, resulting in a split brain problem — both the upgrade of the initial master and HA will be interrupted, because both appliances will believe they are the main appliance.

The primary appliance will transmit the firmware file to the standby appliance over its HA link.The standby appliance will upgrade its firmware first; on the active appliance, this will be recorded in an event log message such as:

Member (FV-1KC3R11111111) left HA group

After the standby appliance reboots and indicates via the HA heartbeat that it is up again, the primary appliance will begin to update its own firmware. During that time, the standby appliance will temporarily become active and process your network’s traffic. After the original appliance reboots, it indicates via the HA heartbeat that it is up again. Which appliance will assume the active role of traffic processing depends on your configuration (see How HA chooses the active appliance):

  • If FortiWeb high availability (HA) is enabled, the cluster will consider your FortiWeb high availability (HA) setting. Therefore both appliances usually make a second failover in order to resume their original roles.
  • If FortiWeb high availability (HA) is disabled, the cluster will consider uptime first. The original primary appliance will have a smaller uptime due to the order of reboots during the firmware upgrade. Therefore it will not resume its active role; instead, the standby will remain the new primary appliance. A second failover will not occur.

Reboot times vary by the appliance model, and also by differences between the original firmware and the firmware you are installing, which may require the installer to convert the configuration and/or disk partitioning schemes to be compatible with the new firmware version.

See also

Installing alternate firmware

You can install alternate firmware which can be loaded from its separate partition if the primary firmware fails. This can be accomplished via the web UI or CLI.

To install alternate firmware via the web UI
  1. Download the firmware file from the Fortinet Customer Service & Support website:
    https://support.fortinet.com/
  2. Log in to the web UI of the FortiWeb appliance as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category.
  3. Updating firmware on an HA pair requires some additions to the usual steps for a standalone appliance. For details, see Updating firmware on an HA pair.
  4. Go to System > Maintenance > Firmware.
    To access this part of the web UI, your administrator account’s access profile must have Read and Writepermission to items in the Maintenancecategory. For details, see Permissions.
  5. In the row of the alternate partition, click Upload and Reboot.
    The Firmware Upgrade/Downgrade dialog appears.
  6. For From, select the hard disk from which you want to install the firmware file.
  7. Click Upload to locate and select the firmware file that you want to install.
  8. Click OK.
  9. Your management computer uploads the firmware image to FortiWeb. FortiWeb installs the firmware and restarts. The time required varies by the size of the file and the speed of your network connection.

    If you are downgrading the firmware to a previous version, and the settings are not fully backwards compatible, the FortiWeb appliance may either remove incompatible settings, or use the feature’s default values for that version of the firmware. You may need to reconfigure some settings.
  10. Clear the cache of your web browser and restart it to ensure that it reloads the web UI and correctly displays all interface changes. For details, see your browser's documentation.
  11. To verify that the firmware was successfully installed, log in to the web UI and go to System > Status > Status.

In the System Information widget, the Firmware Version row indicates the currently installed firmware version.

To install alternate firmware via the CLI
  1. Download the firmware file from the Fortinet Technical Support website:
    https://support.fortinet.com/
  2. Connect your management computer to the FortiWeb console port using a RJ-45-to-DB-9 serial cable or a null-modem cable.
  3. Initiate a connection from your management computer to the CLI of the FortiWeb appliance, and log in as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category. For details, see Permissions.
  4. Connect port1 of the FortiWeb appliance directly or to the same subnet as a TFTP server.
  5. Copy the new firmware image file to the root directory of the TFTP server.
  6. If necessary, start your TFTP server. If you do not have one, you can temporarily install and run one such as tftpd on your management computer:
  7. Windows: http://tftpd32.jounin.net

    Mac OS X: From the Terminal, enter the man tftp command.

    Linux: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-netboot-tftp.html

    Because TFTP is not secure, and because it does not support authentication and could allow anyone to have read and write access, you should only run it on trusted administrator-only networks, never on computers directly connected to the Internet. If possible, immediately turn off tftpd off when you are done.
  8. Verify that the TFTP server is currently running, and that the FortiWeb appliance can reach the TFTP server.
  9. To use the FortiWeb CLI to verify connectivity, enter the following command:

    execute ping 192.168.1.168

    where 192.168.1.168 is the IP address of the TFTP server.

  10. Enter the following command to restart the FortiWeb appliance:
  11. execute reboot

    As the FortiWeb appliances starts, a series of system startup messages appear.

    Press any key to display configuration menu........

  12. Immediately press a key to interrupt the system startup.
  13. You have only 3 seconds to press a key. If you do not press a key soon enough, the FortiWeb appliance reboots and you must log in and repeat the execute reboot command.

    If you successfully interrupt the startup process, the following messages appears:

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

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

    Please connect TFTP server to Ethernet port "1".

  14. Type G to get the firmware image from the TFTP server.
  15. The following message appears:

    Enter TFTP server address [192.168.1.168]:

  16. Type the IP address of the TFTP server and press Enter.
  17. The following message appears:

    Enter local address [192.168.1.188]:

  18. Type a temporary IP address that can be used by the FortiWeb appliance to connect to the TFTP server.
  19. The following message appears:

    Enter firmware image file name [image.out]:

  20. Type the firmware image file name and press Enter.
  21. The FortiWeb appliance downloads the firmware image file from the TFTP server and displays a message similar to the following:

    MAC:00219B8F0D94

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

    Total 28385179 bytes data downloaded.

    Verifying the integrity of the firmware image.

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

    If the download fails after the integrity check with the error message:

    invalid compressed format (err=1)

    but the firmware matches the integrity checksum on the Fortinet Technical Support website, try a different TFTP server.
  22. Type B.

The FortiWeb appliance saves the backup firmware image and restarts. When the FortiWeb appliance reboots, it is running the primary firmware.

See also

Booting from the alternate partition

System > Maintenance > Firmware lists the firmware versions currently installed on your FortiWeb appliance.

Each appliance can have up to two firmware versions installed. Each firmware version is stored in a separate partition. The partition whose firmware is currently running is noted with a white check mark in a green circle in the Active column.

To boot into alternate firmware via the web UI

Install firmware onto the alternate partition. For details, see Installing alternate firmware.

  1. Go to System > Maintenance > Firmware .
  2. To access this part of the web UI, your administrator's account access profile must have Read and Write permission to items in the Maintenance category. For details, see Permissions.

  3. Click Boot alternate firmware.
    A warning message appears.
  4. Click OK.
    A message appears instructing you to refresh your browser in a few minutes after the appliance has booted the other firmware.
To boot into alternate firmware via the local console CLI
  1. Install firmware onto the alternate partition. For details, see Installing alternate firmware.
  2. Connect your management computer to the FortiWeb console port using a RJ-45-to-DB-9 serial cable or a null-modem cable.
  3. Initiate a connection from your management computer to the CLI of the FortiWeb appliance, and log in as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category.
  4. For details, see Connecting to the web UI or CLI.

  5. Enter the following command to restart the FortiWeb appliance:
  6. execute reboot

  7. As the FortiWeb appliances starts, a series of system startup messages appear.
  8. Press any key to display configuration menu........

    Immediately press a key to interrupt the system startup.

    You have only 3 seconds to press a key. If you do not press a key soon enough, the FortiWeb appliance reboots and you must log in and repeat the execute reboot command.

    If you successfully interrupt the startup process, the following messages appears:

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

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

    Please connect TFTP server to Ethernet port "1".

  9. Type B to reboot and use the backup firmware.
See also

Updating the firmware

Updating the firmware

Your FortiWeb comes with the latest operating system (firmware) when shipped. However, if a new version is released since your appliance is shipped, you should install it before you continue the installation.

Fortinet periodically releases FortiWeb firmware updates to include enhancements and address security issues. Once you register your FortiWeb, firmware is available for download through Fortinet Customer Service & Support at:

https://support.fortinet.com

Installing new firmware can overwrite attack signature packages using the versions of the packages that were current at the time that the firmware image was built. To avoid repeat updates, update the firmware before updating your FortiGuard packages.

New firmware can also introduce new features which you must configure for the first time.

For information about a particular firmware release, see the Release Notes for that release at:

http://docs.fortinet.com/fortiweb/release-information

In addition to major releases that contain new features, Fortinet releases patch releases that resolve specific issues without containing new features and/or changes to existing features. It is recommended to download and install patch releases as soon as they are available.
See also

Testing new firmware before installing it

You can test a new firmware image by temporarily running it from memory, without saving it to disk. By keeping your existing firmware on disk, if the evaluation fails, you do not have to re-install your previous firmware. Instead, you can quickly revert to your existing firmware by simply rebooting the FortiWeb appliance.

To test a new firmware image
  1. Download the firmware file from the Fortinet Technical Support website:
  2. https://support.fortinet.com/

  3. Connect your management computer to the FortiWeb console port using a RJ-45-to-DB-9 serial cable or a null-modem cable.
  4. Initiate a connection from your management computer to the CLI of the FortiWeb appliance.
    For details, see Connecting to the web UI or CLI.
  5. Connect port1 of the FortiWeb appliance directly or to the same subnet as a TFTP server.
  6. Copy the new firmware image file to the root directory of the TFTP server.
  7. If necessary, start your TFTP server. If you do not have one, you can temporarily install and run one such as tftpd on your management computer:
  8. Windows: http://tftpd32.jounin.net

    Mac OS X: From the Terminal, enter the man tftp command.

    Linux: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-netboot-tftp.html

    Because TFTP is not secure, and because it does not support authentication and could allow anyone to have read and write access, you should only run it on trusted administrator-only networks, never on computers directly connected to the Internet. If possible, immediately turn off tftpd off when you are done.
  9. Verify that the TFTP server is currently running, and that the FortiWeb appliance can reach the TFTP server.
  10. To use the FortiWeb CLI to verify connectivity, enter the following command:

    execute ping 192.168.1.168

    where 192.168.1.168 is the IP address of the TFTP server.

  11. Enter the following command to restart the FortiWeb appliance:
  12. execute reboot

  13. As the FortiWeb appliances starts, a series of system startup messages appear.
  14. Press any key to display configuration menu........

  15. Immediately press a key to interrupt the system startup.
  16. You have only three seconds to press a key. If you do not press a key soon enough, the FortiWeb appliance reboots and you must log in and repeat the execute reboot command.

    If you successfully interrupt the startup process, the following messages appears:

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

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

    Please connect TFTP server to Ethernet port "1".

  17. Type G to get the firmware image from the TFTP server.
  18. The following message appears:

    Enter TFTP server address [192.168.1.168]:

  19. Type the IP address of the TFTP server and press Enter.
  20. The following message appears:

    Enter local address [192.168.1.188]:

  21. Type a temporary IP address that can be used by the FortiWeb appliance to connect to the TFTP server.
  22. The following message appears:

    Enter firmware image file name [image.out]:

  23. Type the firmware image file name and press Enter.
  24. The FortiWeb appliance downloads the firmware image file from the TFTP server and displays a message similar to the following:

    MAC:00219B8F0D94

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

    Total 28385179 bytes data downloaded.

    Verifying the integrity of the firmware image..

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

    If the download fails after the integrity check with the error message:

    invalid compressed format (err=1)

    but the firmware matches the integrity checksum on the Fortinet Technical Support website, try a different TFTP server.
  25. Type R.
  26. The FortiWeb image is loaded into memory and uses the current configuration, without saving the new firmware image to disk.

  27. To verify that the new firmware image was loaded, log in to the CLI and type:
  28. get system status

  29. Test the new firmware image.
  • If the new firmware image operates successfully, you can install it to disk, overwriting the existing firmware, using the procedure Installing firmware.
  • If the new firmware image does not operate successfully, reboot the FortiWeb appliance to discard the temporary firmware and resume operation using the existing firmware.
See also

Installing firmware

You can use either the web UI or the CLI to upgrade or downgrade the appliance’s operating system.

If you are installing a firmware version that requires a different size of system partition, you may be required to format the boot device before installing the firmware by re-imaging the boot device. Consult the Release Notes. In that case, do not install the firmware using this procedure. Instead, see Restoring firmware (“clean install”).

Firmware changes are either:

  • an update to a newer version
  • a reversion to an earlier version

To determine if you are updating or reverting the firmware, go to System > Status > Status and in the System Information widget, see the Firmware Version row. (Alternatively, in the CLI, enter the command get system status.)

For example, if your current firmware version is:

FortiWeb-VM 4.32,build0531,111031

changing to

FortiWeb-VM 4.32,build0530,110929

an earlier build number (530) and date (110929 means September 29, 2011), indicates that you are reverting.

Back up all parts of your configuration before beginning this procedure. Some backup types do not include the full configuration. For full backup instructions, see Backup & restore.

Reverting to an earlier firmware version could reset settings that are not compatible with the new firmware. For example, FortiWeb 5.0 configuration files are not compatible with previous firmware versions. If you later decide to downgrade to FortiWeb 4.4.6 or earlier, your FortiWeb appliance will lose its configuration. To restore the configuration, you will need a backup that is compatible with the older firmware.

For details about reconnecting to a FortiWeb appliance whose network interface configuration was reset, see Connecting to the web UI or CLI.
To install firmware via the web UI
  1. Download the firmware file from the Fortinet Technical Support website:
    https://support.fortinet.com/
  2. Log in to the web UI of the FortiWeb appliance as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category.
  3. Updating firmware on an HA pair requires some additions to the usual steps for a standalone appliance. For details, see Updating firmware on an HA pair.
  4. Go to System > Status > Status.
  5. In the System Information widget, in the Firmware Version row, click Update.
    The Firmware Upgrade/Downgrade dialog appears.
  6. Click Choose File to locate and select the firmware file that you want to install.
  7. Click OK.
  8. Your management computer uploads the firmware image to FortiWeb. FortiWeb installs the firmware and restarts. The time required varies by the size of the file and the speed of your network connection.

    If you are downgrading the firmware to a previous version, and the settings are not fully backwards compatible, the FortiWeb appliance may either remove incompatible settings, or use the feature’s default values for that version of the firmware. You may need to reconfigure some settings.
  9. Clear the cache of your web browser and restart it to ensure that it reloads the web UI and correctly displays all interface changes. For details, see your browser's documentation.
  10. To verify that the firmware was successfully installed, log in to the web UI and go to System > Status > Status.
    In the System Information widget, the Firmware Version row indicates the currently installed firmware version.
  11. If you want to install alternate firmware on the secondary partition, follow Installing alternate firmware.
  12. Continue with Changing the “admin” account password.
Installing firmware replaces the current attack definitions with those included in the firmware release that you're installing. If you are updating or rearranging an existing deployment, after you install new firmware, make sure that your attack definitions are up-to-date. For details, see Manually initiating update requests.
To install firmware via the CLI
  1. Download the firmware file from the Fortinet Customer Service & Support website:
    https://support.fortinet.com/
  2. If you are downgrading the firmware to a previous version, FortiWeb reverts the configuration to default values for that version of the firmware. You will need to reconfigure FortiWeb or restore the configuration file from a backup. For details, see Connecting to the web UI or CLI and, if you opt to restore the configuration, Restoring a previous configuration.

  3. Connect your management computer to the FortiWeb console port using a RJ-45-to-DB-9 serial cable or a null-modem cable.
  4. Updating firmware on an HA pair requires some additions to the usual steps for a standalone appliance. For details, see Updating firmware on an HA pair.
  5. Initiate a connection from your management computer to the CLI of the FortiWeb appliance, and log in as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category. For details, see Permissions.
  6. Connect port1 of the FortiWeb appliance directly or to the same subnet as a TFTP server.
  7. Copy the new firmware image file to the root directory of the TFTP server.
  8. If necessary, start your TFTP server. If you do not have one, you can temporarily install and run one such as tftpd on your management computer:
  9. Windows: http://tftpd32.jounin.net

    Mac OS X: From the Terminal, enter the man tftp command.

    Linux: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-netboot-tftp.html

    Because TFTP is not secure, and because it does not support authentication and could allow anyone to have read and write access, you should only run it on trusted administrator-only networks, never on computers directly connected to the Internet. If possible, immediately turn off tftpd off when you are done.
  10. Verify that the TFTP server is currently running, and that the FortiWeb appliance can reach the TFTP server.
  11. To use the FortiWeb CLI to verify connectivity, enter the following command:

    execute ping 192.168.1.168

    where 192.168.1.168 is the IP address of the TFTP server.

  12. Enter the following command to download the firmware image from the TFTP server to FortiWeb:
  13. execute restore image tftp <name_str> <tftp_ipv4>

    where <name_str> is the name of the firmware image file and <tftp_ipv4> is the IP address of the TFTP server. For example, if the firmware image file name is image.out and the IP address of the TFTP server is 192.168.1.168, enter:

    execute restore image tftp image.out 192.168.1.168

    One of the following messages appears:

    This operation will replace the current firmware version!
    Do you want to continue? (y/n)

    or:

    Get image from tftp server OK.
    Check image OK.
    This operation will downgrade the current firmware version!
    Do you want to continue? (y/n)

  14. Type y.
  15. The FortiWeb appliance downloads the firmware image file from the TFTP server. The FortiWeb appliance installs the firmware and restarts:

    MAC:00219B8F0D94

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

    Total 28385179 bytes data downloaded.

    Verifying the integrity of the firmware image.

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

    The time required varies by the size of the file and the speed of your network connection.

    If the download fails after the integrity check with the error message:

    invalid compressed format (err=1)

    but the firmware matches the integrity checksum on the Fortinet Technical Support website, try a different TFTP server.
  16. To verify that the firmware was successfully installed, log in to the CLI and type:
  17. get system status

    The firmware version number is displayed.

  18. If you want to install alternate firmware on the secondary partition, follow Installing alternate firmware.
  19. Continue with Changing the “admin” account password.
Installing firmware replaces the current FortiGuard packages with those included with the firmware release that you are installing. If you are updating or rearranging an existing deployment, after you install new firmware, make sure that your attack definitions are up-to-date. For details, see Manually initiating update requests.
See also

Updating firmware on an HA pair

Installing firmware on an HA pair is similar to installing firmware on a single, standalone appliance.

If downgrading to a previous version, do not use this procedure. The HA daemon on the standby appliance might detect that the main appliance has older firmware, and attempt to upgrade it to bring it into sync, undoing your downgrade.

Instead, switch out of HA, downgrade each appliance individually, then switch them back into HA mode.

To ensure minimal interruption of service to clients, use the following steps.

This update procedure is only valid for upgrading from FortiWeb 4.0 MR4 or later.

If you are upgrading from FortiWeb 4.0 MR3 or earlier, the active appliance will not automatically send the new firmware to the standby appliance(s); you must quickly connect to the standby and manually install the new firmware while the originally active appliance is upgrading and rebooting. Alternatively, switch the appliances out of HA mode, upgrade them individually, then switch them back into HA mode.
To update the firmware of an HA pair
  1. Verify that both of the members in the HA pair are powered on and available on all of the network interfaces that you have configured. If required ports are not available, HA port monitoring could inadvertently trigger an additional failover and traffic interruption during the firmware update.
  2. Log in to the web UI of the primary appliance as the admin administrator.
  3. Alternatively, log on with an administrator account whose access profile contains Read and Write permissions in the Maintenance category. For details, see Permissions.

  4. Install the firmware on the primary appliance. For details, see Installing firmware. When installing via the web UI, a message will appear after your web browser has uploaded the file:

Sending the new firmware file to the standby. Please wait and keep the web GUI untouched...

Closing your browser window or using the back or forward buttons can interrupt the upgrade process, resulting in a split brain problem — both the upgrade of the initial master and HA will be interrupted, because both appliances will believe they are the main appliance.

The primary appliance will transmit the firmware file to the standby appliance over its HA link.The standby appliance will upgrade its firmware first; on the active appliance, this will be recorded in an event log message such as:

Member (FV-1KC3R11111111) left HA group

After the standby appliance reboots and indicates via the HA heartbeat that it is up again, the primary appliance will begin to update its own firmware. During that time, the standby appliance will temporarily become active and process your network’s traffic. After the original appliance reboots, it indicates via the HA heartbeat that it is up again. Which appliance will assume the active role of traffic processing depends on your configuration (see How HA chooses the active appliance):

  • If FortiWeb high availability (HA) is enabled, the cluster will consider your FortiWeb high availability (HA) setting. Therefore both appliances usually make a second failover in order to resume their original roles.
  • If FortiWeb high availability (HA) is disabled, the cluster will consider uptime first. The original primary appliance will have a smaller uptime due to the order of reboots during the firmware upgrade. Therefore it will not resume its active role; instead, the standby will remain the new primary appliance. A second failover will not occur.

Reboot times vary by the appliance model, and also by differences between the original firmware and the firmware you are installing, which may require the installer to convert the configuration and/or disk partitioning schemes to be compatible with the new firmware version.

See also

Installing alternate firmware

You can install alternate firmware which can be loaded from its separate partition if the primary firmware fails. This can be accomplished via the web UI or CLI.

To install alternate firmware via the web UI
  1. Download the firmware file from the Fortinet Customer Service & Support website:
    https://support.fortinet.com/
  2. Log in to the web UI of the FortiWeb appliance as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category.
  3. Updating firmware on an HA pair requires some additions to the usual steps for a standalone appliance. For details, see Updating firmware on an HA pair.
  4. Go to System > Maintenance > Firmware.
    To access this part of the web UI, your administrator account’s access profile must have Read and Writepermission to items in the Maintenancecategory. For details, see Permissions.
  5. In the row of the alternate partition, click Upload and Reboot.
    The Firmware Upgrade/Downgrade dialog appears.
  6. For From, select the hard disk from which you want to install the firmware file.
  7. Click Upload to locate and select the firmware file that you want to install.
  8. Click OK.
  9. Your management computer uploads the firmware image to FortiWeb. FortiWeb installs the firmware and restarts. The time required varies by the size of the file and the speed of your network connection.

    If you are downgrading the firmware to a previous version, and the settings are not fully backwards compatible, the FortiWeb appliance may either remove incompatible settings, or use the feature’s default values for that version of the firmware. You may need to reconfigure some settings.
  10. Clear the cache of your web browser and restart it to ensure that it reloads the web UI and correctly displays all interface changes. For details, see your browser's documentation.
  11. To verify that the firmware was successfully installed, log in to the web UI and go to System > Status > Status.

In the System Information widget, the Firmware Version row indicates the currently installed firmware version.

To install alternate firmware via the CLI
  1. Download the firmware file from the Fortinet Technical Support website:
    https://support.fortinet.com/
  2. Connect your management computer to the FortiWeb console port using a RJ-45-to-DB-9 serial cable or a null-modem cable.
  3. Initiate a connection from your management computer to the CLI of the FortiWeb appliance, and log in as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category. For details, see Permissions.
  4. Connect port1 of the FortiWeb appliance directly or to the same subnet as a TFTP server.
  5. Copy the new firmware image file to the root directory of the TFTP server.
  6. If necessary, start your TFTP server. If you do not have one, you can temporarily install and run one such as tftpd on your management computer:
  7. Windows: http://tftpd32.jounin.net

    Mac OS X: From the Terminal, enter the man tftp command.

    Linux: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-netboot-tftp.html

    Because TFTP is not secure, and because it does not support authentication and could allow anyone to have read and write access, you should only run it on trusted administrator-only networks, never on computers directly connected to the Internet. If possible, immediately turn off tftpd off when you are done.
  8. Verify that the TFTP server is currently running, and that the FortiWeb appliance can reach the TFTP server.
  9. To use the FortiWeb CLI to verify connectivity, enter the following command:

    execute ping 192.168.1.168

    where 192.168.1.168 is the IP address of the TFTP server.

  10. Enter the following command to restart the FortiWeb appliance:
  11. execute reboot

    As the FortiWeb appliances starts, a series of system startup messages appear.

    Press any key to display configuration menu........

  12. Immediately press a key to interrupt the system startup.
  13. You have only 3 seconds to press a key. If you do not press a key soon enough, the FortiWeb appliance reboots and you must log in and repeat the execute reboot command.

    If you successfully interrupt the startup process, the following messages appears:

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

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

    Please connect TFTP server to Ethernet port "1".

  14. Type G to get the firmware image from the TFTP server.
  15. The following message appears:

    Enter TFTP server address [192.168.1.168]:

  16. Type the IP address of the TFTP server and press Enter.
  17. The following message appears:

    Enter local address [192.168.1.188]:

  18. Type a temporary IP address that can be used by the FortiWeb appliance to connect to the TFTP server.
  19. The following message appears:

    Enter firmware image file name [image.out]:

  20. Type the firmware image file name and press Enter.
  21. The FortiWeb appliance downloads the firmware image file from the TFTP server and displays a message similar to the following:

    MAC:00219B8F0D94

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

    Total 28385179 bytes data downloaded.

    Verifying the integrity of the firmware image.

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

    If the download fails after the integrity check with the error message:

    invalid compressed format (err=1)

    but the firmware matches the integrity checksum on the Fortinet Technical Support website, try a different TFTP server.
  22. Type B.

The FortiWeb appliance saves the backup firmware image and restarts. When the FortiWeb appliance reboots, it is running the primary firmware.

See also

Booting from the alternate partition

System > Maintenance > Firmware lists the firmware versions currently installed on your FortiWeb appliance.

Each appliance can have up to two firmware versions installed. Each firmware version is stored in a separate partition. The partition whose firmware is currently running is noted with a white check mark in a green circle in the Active column.

To boot into alternate firmware via the web UI

Install firmware onto the alternate partition. For details, see Installing alternate firmware.

  1. Go to System > Maintenance > Firmware .
  2. To access this part of the web UI, your administrator's account access profile must have Read and Write permission to items in the Maintenance category. For details, see Permissions.

  3. Click Boot alternate firmware.
    A warning message appears.
  4. Click OK.
    A message appears instructing you to refresh your browser in a few minutes after the appliance has booted the other firmware.
To boot into alternate firmware via the local console CLI
  1. Install firmware onto the alternate partition. For details, see Installing alternate firmware.
  2. Connect your management computer to the FortiWeb console port using a RJ-45-to-DB-9 serial cable or a null-modem cable.
  3. Initiate a connection from your management computer to the CLI of the FortiWeb appliance, and log in as the admin administrator, or an administrator account whose access profile contains Read and Write permissions in the Maintenance category.
  4. For details, see Connecting to the web UI or CLI.

  5. Enter the following command to restart the FortiWeb appliance:
  6. execute reboot

  7. As the FortiWeb appliances starts, a series of system startup messages appear.
  8. Press any key to display configuration menu........

    Immediately press a key to interrupt the system startup.

    You have only 3 seconds to press a key. If you do not press a key soon enough, the FortiWeb appliance reboots and you must log in and repeat the execute reboot command.

    If you successfully interrupt the startup process, the following messages appears:

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

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

    Please connect TFTP server to Ethernet port "1".

  9. Type B to reboot and use the backup firmware.
See also