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.
mbaig_FTNT
Staff
Staff
Article Id 194915
Description
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.

Solution
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.

mbaig_FD40320_tn_FD40320-1.jpg

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.

mbaig_FD40320_tn_FD40320-2.jpg


Contributors