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.
Many administrators use the CLI to complete configurations as more options may be available compared to the GUI,  and it can be simpler to configure and paste configuration commands in bulk.

However, the “tab key” should not be used when writing a script that is to be pasted later on in the FortiGate configuration as it will not be treated as a tab key and has a different function in the FortiGate.  Errors will be generated and the configurations will not be saved.

First example

In this script only spaces are used, these are shown as dots.  When this is copied from a text editor such as Notepad++ and pasted into the command line, it will work correctly.


Second example

2 tab spaces have been used in this script as shown with double arrows.  If this complete section is now copied from the text editor and pasted into the command line, it will throw an error and the configuration will not be saved.