Scenario: Both FortiGateA and FortiGateB use the same Web Filter Security Profile name (Example: TestWebFilter Web Filter Security Profile) FortiGateA's TestWebFilter Web Filter Security Profile is configured to block Games, monitor Shopping. FortiGateB's TestWebFilter Web Filter Security Profile is configured to block Shopping, monitor Games.
When performing Import Configuration for FortiGateA at FortiManager, then inside FortiManager's TestWebFilter, the Web Filter Security Profile will be updated to block Games, monitor Shopping. Afterwards, perform policy package installation for FortiGateB; the install preview will show TestWebFilter Web Filter Security Profile as block Games, monitor Shopping. If performing the Import Configuration for FortiGateB at FortiManager now, then inside FortiManager's TestWebFilter, the Web Filter Security Profile will be updated as block Shopping, monitor Games. Then perform policy package installation for FortiGateA; the install preview will show TestWebFilter Web Filter Security Profile as block Shopping, monitor Games.
Since the Web Filter Profile is under the ADOM database, it is shared among all the managed FortiGates inside the ADOM. Therefore, in this scenario, it is suggested to use a different Web Filter Security Profile name.
For example: FortiGateA's "TestWebFilterFortiGateA" Web Filter Security Profile, configured to block Games, monitor Shopping. FortiGateB's "TestWebFilterFortiGateB" Web Filter Security Profile, configured to block Shopping, monitor Games.
Solution steps: Log into FortiGateA, rename as "TestWebFilterFortiGateA" Web Filter Security Profile. Log into FortiGateB, rename as "TestWebFilterFortiGateB" Web Filter Security Profile. Log into FortiManager, perform import configuration for FortiGateA, then perform import configuration for FortiGateB. After that, FortiManager will have both "TestWebFilterFortiGateA" and "TestWebFilterFortiGateB" Web Filter Security Profiles, and will no longer conflict with each other during the import configuration.
Verification (after import configuration): Log in to the FortiManager CLI and check the device status:
diagnose dvm device list
Confirm that both FortiGateA and FortiGateB are shown with the expected configuration status and connection status. Check the ADOM database integrity:
diagnose cdb check policy-packages <adom_name>
diagnose cdb check objcfg-integrity
On the FortiManager GUI, go to Policy & Objects -> Security Profiles -> Web Filter and confirm that both "TestWebFilterFortiGateA" and "TestWebFilterFortiGateB" are present. Then perform an Install Preview for each FortiGate (Policy Package -> Install Wizard -> Install Preview) and confirm that no unexpected Web Filter Security Profile changes are shown.
Troubleshooting (if the conflict or unexpected install changes still occur):
Enable the debug on the FortiManager CLI:
diagnose debug reset
diagnose debug timestamp enable
diagnose debug application securityconsole 255
diagnose debug application depmanager 255
diagnose debug enable
Perform the import configuration or policy package installation again, then disable the debug:
diagnose debug disable
diagnose debug reset
To check the exact configuration pushed from FortiManager, run the following on the FortiGate CLI, then perform the policy package installation:
diagnose debug application fgfmd -1
diagnose debug cli 8
diagnose debug enable
Disable the debug after the test:
diagnose debug disable
diagnose debug reset
The output will show the CLI commands applied in the FortiGate, including the Web Filter Security Profile values being changed. Additionally, the installation can be reviewed on the FortiManager GUI under System Settings -> Task Monitor, and the changes can be compared under Device Manager -> Revision History. |