RSS

Tag Archives: Fortigate

Clearing DNS cache on a FortiGate

Open terminal and run this code. diag test app dnsproxy 1

Other options.

  • 1. Clear DNS cache
  • 2. Show stats
  • 3. Dump DNS setting
  • 4. Reload FQDN
  • 5. Requery FQDN
  • 6. Dump FQDN
  • 7. Dump DNS cache
  • 8. Dump DNS DB
  • 9. Reload DNS DB
  • 10. Dump secure DNS policy/profile
  • 11. Dump Botnet domain
  • 12. Reload Secure DNS setting
  • 13. Show Hostname cache
  • 14. Clear Hostname cache
  • 15. Show SDNS rating cache
  • 16. Clear SDNS rating cache
  • 17. DNS debug bit mask
  • 18. DNS debug obj mem
  • 99. Restart dnsproxy worker
 
Leave a comment

Posted by on July 17, 2022 in Fortigate

 

Tags: , , , ,

FortiGate: Upgrading the firmware via CLI

To use the following procedure, you must have a TFTP or FTP server that FortiDB can connect to. You must also log in using the “admin” administrator account.

  1. Start the FTP or TFTP server.
  2. Copy the new firmware image file to the FTP or TFTP server.
  3. Log into the CLI.
  4. Verify that FortiDB can connect to the FTP or TFTP server. For example, if the IP address of the TFTP server is 192.168.1.168, enter the CLI command:
    execute ping 192.168.1.168
    
  5. Enter the following command to copy the firmware image from the TFTP server to FortiDB:
    execute restore image ftp  
    execute restore image tftp  
    

    Where is the name and location of the firmware image file and or is the IP address of the FTP or TFTP server. For example, if the firmware image file name is image.out and the IP address of the FTP or TFTP server is 192.168.1.168, enter:

    execute restore image tftp image.out 192.168.1.168
    

    FortiDB responds with the message:

    This operation will replace the current firmware version!
    Do you want to continue? (y/n)
    
  6. Type y. FortiDB downloads the firmware image file, upgrades to the new firmware version, and restarts. This process takes a few minutes.
  7. Reconnect to the CLI.
  8. To confirm the new firmware image is successfully installed, enter:
    get system status
 
Leave a comment

Posted by on January 17, 2018 in Fortigate

 

Tags: , ,