Description
This article describes how to configure an encrypted IPSec connection between a FortiGate and a FortiAnalyzer.
Scope
FortiGate v4.2.x, v 4.3.x,v 5.0.x, v5.2.x.
Solution
Configure the following via the CLI on the FortiGate.
V4.2.x and below:
config log fortianalyzer setting
set status enable
set server 192.168.182.120
set encrypt enable
set psksecret 123456
set localid "FG300B3908606800"
end
set status enable
set server 192.168.182.120
set encrypt enable
set psksecret 123456
set localid "FG300B3908606800"
end
The 'localid' setting has to match the "Device Name" configured on the FortiAnalyzer for the IPSec tunnel to work. Its value is the peer ID that the FortiGate will present.
V4.3.x:
V4.3.x:
config log fortianalyzer setting
set status enable
set server 192.168.182.120
set encrypt enable
set psksecret 123456
set localid "FG300B3908606800"
set upload-option realtime
end
V5.0.x and above:
config log fortianalyzer setting
set status enable
set server 192.168.182.120
set encrypt enable
set psksecret 123456
set localid "FG300B3908606800"
set upload-option realtime
end
set status enable
set server 192.168.182.120
set encrypt enable
set psksecret 123456
set localid "FG300B3908606800"
set upload-option realtime
end
Configure the following via the CLI for FortiAnalyzer v4.2.x and v4.3.x:
config log device
edit FG300B3908606800 ----> device name, this must match the localid configured on the FortiGate.
set type fgt
set secure psk
set psk 123456
set id FG300B3908606800 ----{ device ID
end
edit FG300B3908606800 ----> device name, this must match the localid configured on the FortiGate.
set type fgt
set secure psk
set psk 123456
set id FG300B3908606800 ----{ device ID
end
To check the secure connection, connect to the web based manager and verify the Lock icon on the FortiAnalyzer under All Devices.
Configure the following via GUI for FortiAnalyzer v5.0.x, v5.2.x:
Check the box for Secure Connection and enter the device ID for FortiGate and the pre-shared key.
To check the secure connection, connect to the web-based manager and verify that the arrow is up and green on FortiAnalyzer under All Devices.

Check the box for Secure Connection and enter the device ID for FortiGate and the pre-shared key.
To check the secure connection, connect to the web-based manager and verify that the arrow is up and green on FortiAnalyzer under All Devices.
Note:
v5.0 up to v6.4 is out of engineering support. These commands might be different on higher versions. Consider upgrading the firmware level on the device to a supported version (7.0 up to 7.6). Here check the firmware path and compatibility depending on the hardware: Upgrade tool.