Technical Tip: HA management interface connectivity setup for Active-Passive mode
Description
This article explains and provides a configuration example pertaining to HA management interface setup.
Typical example of HA Active-Passive setup with HA reserved management interface setup.

For example, if a default route is configured in System -> Network -> Route, then it is not allowed to configure another default route in HA route settings.
Thus, connectivity to the HA management interface often breaks due to route configuration. More information about how HA static routes and policy routes behave. Refer to this document: HA static route and policy route.
Scope
FortiWeb.
Solution
Based on a typical HA active-passive setup topology, with below 2 use-cases solution should meet the case requirement to route HA management traffic via the expected path.
Refer to below 2 possible solutions below:
Scenario 1:
The client (Admin Users) network comes from an unknown network:
The unknown network means client connections may come from 10.10.10.x and the internet.
From the CLI:
config system ha-mgmt-router-policy
edit 1
set src 172.10.10.2/32
set gateway 172.10.10.254
set oif port1
next
end
Note: Ensure the incoming interface is set to 'any' for the policy route to function correctly.
From the GUI:
Access System -> High Availability -> Settings, then select HA Policy Route. After that, select Create New:

In the HA Policy Route configuration, set up the configuration as appropriate for the scenario:
The following example sniffer capture indicates HA management traffic returns appropriately to the HA policy route.
diagnose network sniffer any 'host 172.10.10.1' 4
filters=[host 172.10.10.1]
interface=[port1]
9.374762 10.10.10.7.51131 -> 172.10.10.1.443: syn 1836135939
interface=[port1]
9.374775 172.10.10.1.443 -> 10.10.10.7.51131: syn 171024616 ack 1836135940
interface=[port1]
9.376389 10.10.10.7.51131 -> 172.10.10.1.443: ack 171024617
The known network means that the client connection will only come from 10.10.10.x: either option will work, depending on the environment setup.
Option A:
edit 1
set src 172.10.10.2/32
set dst 10.10.10.0/24
set gateway 172.10.10.254
set oif port1
next
end
In the HA Policy Route configuration, set up the configuration as appropriate:

Option B:
From the CLI:
edit 1
set dst 10.10.10.0/24
set gateway 172.10.10.254
set device port1
next
end
In the HA Static Route configuration, set up the configuration as appropriate:
Replace the source address, destination address, outgoing interface, and gateway address according to the necessary environment setup.
The following example sniffer capture indicates HA management traffic returns accordingly to the HA policy or HA static route.
diagnose network sniffer any 'host 172.10.10.2' 4
filters=[host 172.10.10.2]
interface=[port1]
3.373251 10.10.10.7.51211 -> 172.10.10.2.443: syn 560192458
interface=[port1]
3.373261 172.10.10.2.443 -> 10.10.10.7.51211: syn 2110820095 ack 560192459
interface=[port1]
3.374993 10.10.10.7.51211 -> 172.10.10.2.443: ack 2110820096
