Technical Tip: Sending messages (logs, SNMP) directly from the HA management interface
Description
Scope
Solution
set ha-mgmt-status enable
config ha-mgmt-interface
edit <x>
set interface <interface name>
set gateway <xxx.xxx.xxx.xxx>
next
end
diagnose debug enable
The default value of the 'ha-direct' is set to 'disable' under the HA system configuration in the CLI. In many cases, HA-direct can also be enabled only for appropriate features. For example, in SNMPv3:
Notes:
- This setting alters the traffic flow. Enabling it may cause timeouts to occur due to an unresponsive FortiGate. This occurs because the response to a request is sent on a different interface, where the packet may not be routed back to the requester, resulting in a request timeout.
- If the ha-direct is enabled for the Syslogs Server, the FortiGate will use the MGMT interface to communicate with the Syslog Server, and in the FortiGate, it is not possible to specify the Source IP in the Syslog configuration.
- When ha-direct is disabled, FortiGate uses the routing table to determine the source interface and source IP to send log to FortiAnalyzer; when ha-direct is enabled, FortiGate uses the reserved management interface and associated IP to send the log. For this to work after changing the setting from 'disable' to 'enable', it requires both routes to the firewall policy to be in place.
See this article: Technical Tip: When 'ha-direct' is enabled, the 'source-ip' setting will not work on the syslog configuration.
If the Firewall is set to run SNMP from the MGMT interface but should also send logs to the Syslog server, HA-direct must be enabled under the SNMP community configuration, but disabled under the HA settings. Otherwise, syslog traffic might not work.
