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.
nnair
Staff
Staff
Article Id 366700
Description This article explains how to check the changes done on the GUI and can be seen on the CLI, this can be helpful during the configuration changes as well as for the audit.
Scope FortiGate.
Solution

Run the below command on the FortiGate CLI:

 

diag debug cli 6 

diag debug en 

 

After running the above commands on the FortiGate CLI and then the changes can be done on the FortiGate GUI.

 

image.png

 

Make the change in primary DNS to any other public DNS by specifying the IP address in primary DNS.

 

image.png

 

The changes can be seen in the CLI: 

 

image.png

 

When configuration is pushed from FortiManager it can be recorded in CLI with the same debug commands.

 

Related article: 

Technical Tip: How to capture configuration push from FortiManager on FortiGate CLI