Configuring geo-redundant HA with VRRP failover with NAT
In the following scenario, HA with VRRP failover is configured for two FortiManager devices in different geographic areas for geo-redundancy using Layer 3.
In this example, FortiManager-A is on the 192.0.2.160/28
subnet and FortiManager-B is on the 192.0.2.176/28
subnet. FortiManager-A has a static NAT to public IP 198.51.100.1
, and FortiManager-B has static NAT to public IP 203.0.113.1
.
The internal FortiGates have internal routing to both FortiManagers using the private IPs 192.0.2.161
and 192.0.2.117
for FortiManager-A and FortiManager-B respectively. External FortiGates can reach the public IPs 198.51.100.1
and 203.0.113.1
for FortiManager-A and FortiManager-B respectively.
This topic includes the following sections:
Configure geo-redundant FortiManager HA with VRRP failover
To configure geo-redundant HA with VRRP failover:
-
Configure the HA settings on FortiManager-A.
-
On FortiManager-A, go to System Settings > HA.
-
Configure the Cluster Settings as follows, and click Apply.
Failover Mode VRRP Peer IP and Peer SN Choose the following:
-
IP Type:
IPv4
-
Peer IP: Enter the IP address of FortiManager-B (example,
192.0.2.177
) -
Peer SN: Enter the serial number of the peer device.
VIP Enter the VIP address for the cluster (example,
192.0.2.1
).This is a dummy IP and will not be used for deployment or management.
The VIP MUST be identical in all peers.
VRRP Interface
Choose the VRRP interface (example,
port1
).Priority
200
Unicast
On.
In Geo-HA it is mandatory to use Unicast as peers will not be in the same Layer2.
-
-
-
Configure the HA settings on FortiManager-B.
-
On FortiManager-B device, go to System Settings > HA.
-
Configure the Cluster Settings as follows, and click Apply.
Failover Mode VRRP Peer IP and Peer SN Choose the following:
-
IP Type:
IPv4
-
Peer IP: Enter the IP address of FortiManager-A (example,
192.0.2.161
). -
Peer SN: Enter the serial number of the peer device.
VIP Enter the VIP address for the cluster (example,
192.0.2.1
).This is a dummy IP and will not be used for deployment or management.
The VIP MUST be identical in all peers.
VRRP Interface
Choose the VRRP interface (example,
port1)
.Priority
100
Unicast
On.
In Geo-HA it is mandatory to use Unicast as peers will not be in the same Layer2.
-
-
Verifying the HA status
To verify the HA status:
-
Access both FortiManager-A and FortiManager-B.
-
Using the GUI, you can view the HA Status on the top-right corner of each FortiManager and from System Settings > HA.
-
Using the CLI, you can run the following commands to get additional information about the HA status:
Command
Description
get system ha-status
Print the HA status. diagnose ha stats
Diagnose the HA status. diagnose sniffer packet <interface> "vrrp"
Perform a packet sniffer on the port used by the VRRP protocol using "vrrp" as a filter.
This command can be used to verify that the advertisements are sent using the preferred method when Unicast mode is disabled/enabled.
Additional FortiManager configuration
Depending on the scenario, FortiManager can be using either 2 or 4 IP addresses (192.0.2.161
and 192.0.2.177
for internal FortiGates and 198.51.100.1
and 203.0.133.1
for external FortiGates). It is a best practice to define all FortiManager IPs that will be used to manage FortiGates so that it is reflected in the FortiGate config system central-management
settings if FortiGate is added from FortiManager.
Defining FortiManager IPs:
-
Using the FortiManager CLI, you can run the following configuration:
config system admin setting
set mgmt-fqdn <FQDN_1 | IP_1> <FQDN_2 | IP_2> ... <FQDN_N | IP_N>
end
You can add up to a total of 10 IP addresses or FQDNs to the
mgmt-fqdn
attribute.
-
For example, in this scenario it will be as follows:
config system admin setting
set mgmt-fqdn 192.0.2.161 192.0.2.177 198.51.100.1 203.0.113.1
end
Adding a managed FortiGate to the FortiManager cluster
To onboard using the FortiManager Device Manager:
-
On FortiManager-A, go to Device Manager > Device & Groups > Managed FortiGate.
-
Click Add Device > Discover Device.
-
Enable Use Legacy Device Login and enter the device IP Address, User Name, and Password.
-
Click Next, Next, and Import Later.
-
Run the
show system central-management
command in the FortiGate CLI to check the management IP addresses:
show system central-management
config system central-management
set type fortimanager
set fmg "192.0.2.161" "192.0.2.177" "198.51.100.1" "203.0.113.1"
end
The IP addresses shown should reflect the IP addresses and FQDNs configured in FortiManager under config system admin setting
as explained in the previous section.
In case of failover, FortiGate will try to reach out to all IP addresses configured under |
To onboard using the Central Management connector on FortiGate:
-
On FortiGate, go to Security Fabric > Fabric Connectors > Central Management.
-
Under IP/Domain, click the + button to add more IP addresses.
-
Enter all of the FortiManager IP addresses and click OK.
For example, in this scenario the external FortiGate devices will use the public IPs198.51.100.1
and203.0.113.1
. -
You can authorize the device using the dialog from the FortiGate or from the Device Manager on the Primary FortiManager in the root ADOM.
-
Run
show system central-management
in the FortiGate CLI to check the management IP addresses. For example:show system central-management
config system central-management
set type fortimanager
set fmg "198.51.100.1" "203.0.113.1"
end
The IP addresses displayed should match those configured in step 2.
Testing VRRP failover
To test the failover configuration:
- On the FortiGate, run the following command in the CLI:
get system central-management
In the serial-number field, the serial numbers for both FortiManager-A and FortiManager-B are listed. FortiManager-A is listed first because it is currently acting as the Primary device.
-
In the CLI for FortiManager-A, run
diagnose ha force-vrrp-election
which will trigger failover to the FortiManager with the next highest priority. -
Refresh the page and you will notice that the HA status of FortiManager-A becomes Secondary.
-
Go to FortiManager-B, and confirm that the HA status has changed to Primary.
-
Enter the following command in the CLI to confirm the status of FortiManager-A. FortiManager-A continues to act as the Secondary device until the next VRRP election occurs.
diagnose ha stats
-
On the FortiGate, run the following command in the CLI.
get system central-management
In the serial-number field, the serial numbers for both FortiManager-A and FortiManager-B are listed. FortiManager-B will be listed first because it is now acting as the Primary device.